From f80c799ec918e7bb2340cb63c98a1cfcec2f28ca Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Wed, 11 Sep 2024 16:28:16 -0500 Subject: [PATCH] Adding subtree option & ldapwhoami for searches --- EtcFiles/profile.d/shadowarch-ldap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EtcFiles/profile.d/shadowarch-ldap.sh b/EtcFiles/profile.d/shadowarch-ldap.sh index 0011174..46fd004 100644 --- a/EtcFiles/profile.d/shadowarch-ldap.sh +++ b/EtcFiles/profile.d/shadowarch-ldap.sh @@ -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'"