diff --git a/actions/add-ldap-user-to-group b/actions/add-ldap-user-to-group index 8c5fc2fee..448e5fd30 100755 --- a/actions/add-ldap-user-to-group +++ b/actions/add-ldap-user-to-group @@ -28,16 +28,16 @@ if [ -z "$results" ]; then # create group, with user as initial member cat </dev/null -Y EXTERNAL -H ldapi:/// -b 'ou=groups,dc=thisbox' -LLL "(uniqueMember=uid=$username,ou=users,dc=thisbox)" cn | awk '/cn:/ { print $2 }' +ldapsearch 2>/dev/null -Y EXTERNAL -H ldapi:/// -b 'ou=groups,dc=thisbox' -LLL "(member=uid=$username,ou=users,dc=thisbox)" cn | awk '/cn:/ { print $2 }' diff --git a/actions/remove-ldap-user-from-group b/actions/remove-ldap-user-from-group index 6992bcf63..e8d5bb8c6 100755 --- a/actions/remove-ldap-user-from-group +++ b/actions/remove-ldap-user-from-group @@ -24,8 +24,8 @@ groupname="$2" cat <