79492420

Date: 2025-03-07 13:16:13
Score: 1
Natty:
Report link

I solve it

#!/bin/bash

function ls_sysacc {
  echo "-----------------------"
  echo "List of system accounts"
  echo "-----------------------"
  ldapsearch -x -H "$prefix""://""$ldapserver" -D "${binduser}" -w ${bindpass} -b "cn=sysaccounts,cn=etc,$ldapdomain" -s sub "(uid=*)" "dn" | grep 'dn: uid'
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Terentev Maksim