[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] Separate Samba account creation from password change. Closes: #986122
Wolfgang Schweer
gitlab at salsa.debian.org
Mon Mar 29 23:03:42 BST 2021
Wolfgang Schweer pushed to branch master at Debian Edu / debian-edu-config
Commits:
ba252dd9 by Wolfgang Schweer at 2021-03-30T00:02:44+02:00
Separate Samba account creation from password change. Closes: #986122
tools/gosa-create: Add code to create the user's Samba account
tools/gosa-sync: Adjust log message accordingly
Signed-off-by: Wolfgang Schweer <wschweer at arcor.de>
- - - - -
3 changed files:
- debian/changelog
- share/debian-edu-config/tools/gosa-create
- share/debian-edu-config/tools/gosa-sync
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+debian-edu-config (2.11.53) UNRELEASED; urgency=medium
+
+ * Separate Samba account creation from password change. Closes: #986122.
+ - tools/gosa-create: Add code to create the user's Samba account.
+ - tools/gosa-sync: Adjust log message accordingly.
+
+ -- Wolfgang Schweer <wschweer at arcor.de> Mon, 29 Mar 2021 23:02:53 +0200
+
debian-edu-config (2.11.52) unstable; urgency=medium
[ Wolfgang Schweer ]
=====================================
share/debian-edu-config/tools/gosa-create
=====================================
@@ -45,6 +45,8 @@ while read KEY VALUE ; do
chown -R $USERID:$GROUPID $HOMEDIR
kadmin.local -q "add_principal -policy users -randkey -x \"$USERDN\" $USERID"
logger -t gosa-create -p notice Home directory \'$HOMEDIR\' and principal \'$USERID\' created.
+ smbpasswd -a -n -s $USERID
+ logger -t gosa-sync -p notice "Samba account '$USERID' created."
## send a welcome-email:
cat << EOF | /usr/lib/sendmail $USERID
Subject: Welcome to the mail-system
=====================================
share/debian-edu-config/tools/gosa-sync
=====================================
@@ -48,7 +48,7 @@ EUSERPASSWORD="$(cat $TMPFILE | sed -e 's/\"/\\\"/g')"
if [ "$IAM" = "dn:$USERDN" ] ; then
(echo $EUSERPASSWORD; echo $EUSERPASSWORD) | smbpasswd -a -s $USERID
- logger -t gosa-sync -p notice "Sucessfully added / changed Samba acount for '$USERID'."
+ logger -t gosa-sync -p notice "Sucessfully changed Samba password for '$USERID'."
cat > "$TMPFILE" <<EOF
change_password -pw "$EUSERPASSWORD" $USERID
EOF
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/ba252dd91e9c62b99f2973168dfcaa2f6de7df2c
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/ba252dd91e9c62b99f2973168dfcaa2f6de7df2c
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/20210329/5a38f626/attachment-0001.htm>
More information about the debian-edu-commits
mailing list