From 9355f4f75268effccbee2b953caaed31d13e9090 Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Sun, 18 Aug 2024 15:10:53 -0500 Subject: [PATCH] shadowarch-ldap should auth root modify actions --- EtcFiles/profile.d/shadowarch-ldap.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EtcFiles/profile.d/shadowarch-ldap.sh b/EtcFiles/profile.d/shadowarch-ldap.sh index aa11739..0011174 100644 --- a/EtcFiles/profile.d/shadowarch-ldap.sh +++ b/EtcFiles/profile.d/shadowarch-ldap.sh @@ -11,6 +11,6 @@ if [ "$USER" == 'root' ]; then 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" fi -alias ldapmodify="/usr/bin/ldapmodify -H 'ldap://127.0.0.1/' ${searchopts} -D "cn=root,dc=aninix,dc=net"" -alias ldappasswd="/usr/bin/ldappasswd -H 'ldap://127.0.0.1/' ${searchopts} -D "cn=root,dc=aninix,dc=net"" -alias ldapadd="/usr/bin/ldapadd -H 'ldap://127.0.0.1/' ${searchopts} -D "cn=root,dc=aninix,dc=net"" +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'" +alias ldapadd="/usr/bin/ldapadd -H 'ldap://127.0.0.1/' -W -D 'cn=root,dc=aninix,dc=net'"