[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] gosa-sync: Decode the user password which GOsa substitutes base64 encoded
Mike Gabriel (@sunweaver)
gitlab at salsa.debian.org
Fri Dec 1 15:02:36 GMT 2023
Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config
Commits:
17b6730c by Guido Berhoerster at 2023-12-01T14:20:47+01:00
gosa-sync: Decode the user password which GOsa substitutes base64 encoded
This fixes a bug where the user password could not be set or changed.
- - - - -
1 changed file:
- share/debian-edu-config/tools/gosa-sync
Changes:
=====================================
share/debian-edu-config/tools/gosa-sync
=====================================
@@ -33,13 +33,10 @@ fi
TMPFILE=$(mktemp)
trap "rm -f $TMPFILE" ERR SIGHUP SIGINT SIGTERM
-cat <<EOF | tr -d "\n" > "$TMPFILE"
+base64 -d - <<EOF > "$TMPFILE"
$USERPASSWORD
EOF
-# remove escapes from the password added by GOsa²...
-sed -i $TMPFILE -e 's/\\//g'
-
# check the password in $TMPfile against LDAP...
IAM=`ldapwhoami -x -Z -y "$TMPFILE" -D "$USERDN" 2>/dev/null || true`
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/17b6730c6e0ac27d72b73c7d029a1123f554d33e
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/17b6730c6e0ac27d72b73c7d029a1123f554d33e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20231201/128757f7/attachment-0001.htm>
More information about the debian-edu-commits
mailing list