From 6ca38ba66597496da5ec58ac0784ac19d1ddfe7c Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 12 Jul 2015 12:35:48 -0400 Subject: [PATCH] Switch LDAP groups from groupOfUniqueNames to groupOfNames, to work with libpam-ldapd. --- actions/add-ldap-user-to-group | 8 ++++---- actions/delete-ldap-user | 4 ++-- actions/get-ldap-user-groups | 2 +- actions/remove-ldap-user-from-group | 4 ++-- actions/rename-ldap-user | 8 ++++---- plinth/modules/users/forms.py | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) 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 <