From 31840a50546cdcc10e090057f568b9b74afddd90 Mon Sep 17 00:00:00 2001 From: rmahique-github <> Date: Mon, 28 Oct 2024 14:10:01 +0100 Subject: [PATCH] changes --- scripts/authentication/ds389.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/authentication/ds389.sh b/scripts/authentication/ds389.sh index 4a79805..8d6bedb 100644 --- a/scripts/authentication/ds389.sh +++ b/scripts/authentication/ds389.sh @@ -67,12 +67,12 @@ function ds389_ldap_user-user_private_read() { local _ldap_basedn="$2" local _admin_user="$3" local _admin_pwd="$4" - local username="$5" + local ldap_user="$5" ldapmodify -D "${_admin_user}" -w "${_admin_pwd}" -x -H "${_ldap_uri}" << EOL dn: cn=user_private_read,ou=permissions,${_ldap_basedn} changetype: modify add: member -member: uid=${1:-ldap_user},ou=people,${_ldap_basedn} +member: uid=${ldap_user},ou=people,${_ldap_basedn} EOL }