Adding subtree option & ldapwhoami for searches
This commit is contained in:
parent
1e4d4a806a
commit
f80c799ec9
@ -9,7 +9,8 @@ fi
|
||||
if [ "$USER" == 'root' ]; then
|
||||
alias ldapsearch="/usr/bin/ldapsearch -x -b 'dc=aninix,dc=net'"
|
||||
else
|
||||
alias ldapsearch="/usr/bin/ldapsearch -H 'ldap://127.0.0.1/' ${searchopts} -D 'uid=$USER,ou=People,dc=aninix,dc=net' -b dc=aninix,dc=net"
|
||||
alias ldapsearch="/usr/bin/ldapsearch -H 'ldap://127.0.0.1/' ${searchopts} -D 'uid=$USER,ou=People,dc=aninix,dc=net' -b dc=aninix,dc=net -s sub"
|
||||
alias ldapwhoami="/usr/bin/ldapwhoami -H 'ldap://127.0.0.1/' ${searchopts} -D 'uid=$USER,ou=People,dc=aninix,dc=net'"
|
||||
fi
|
||||
alias ldapmodify="/usr/bin/ldapmodify -H 'ldap://127.0.0.1/' -W -D 'cn=root,dc=aninix,dc=net'"
|
||||
alias ldappasswd="/usr/bin/ldappasswd -H 'ldap://127.0.0.1/' -W -D 'cn=root,dc=aninix,dc=net'"
|
||||
|
Loading…
Reference in New Issue
Block a user