[debian-edu-commits] debian-edu/ 01/01: etc/gosa/gosa.conf: Properly single-quote '%dn' in password hook scripts. This fixes failing password syncs / locks / unlocks if user DNs have blanks in the DN string. (Closes: #886749).

Mike Gabriel sunweaver at debian.org
Tue Jan 9 14:20:34 UTC 2018


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository debian-edu-config.

commit 5888926c216ee3a85ddb3cbab210756d2382c6aa
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Jan 9 15:20:27 2018 +0100

    etc/gosa/gosa.conf: Properly single-quote '%dn' in password hook scripts. This fixes failing password syncs / locks / unlocks if user DNs have blanks in the DN string. (Closes: #886749).
---
 debian/changelog   | 8 ++++++++
 etc/gosa/gosa.conf | 6 +++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0013833..1935168 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+debian-edu-config (1.945) UNRELEASED; urgency=medium
+
+  * etc/gosa/gosa.conf: Properly single-quote '%dn' in password hook scripts.
+    This fixes failing password syncs / locks / unlocks if user DNs have
+    blanks in the DN string. (Closes: #886749).
+
+ -- Mike Gabriel <sunweaver at debian.org>  Tue, 09 Jan 2018 15:19:15 +0100
+
 debian-edu-config (1.944) unstable; urgency=medium
 
   [ Wolfgang Schweer ]
diff --git a/etc/gosa/gosa.conf b/etc/gosa/gosa.conf
index 7c3a7df..ba624d7 100644
--- a/etc/gosa/gosa.conf
+++ b/etc/gosa/gosa.conf
@@ -76,9 +76,9 @@
   <pathMenu>
       <plugin acl="users/netatalk:self,users/environment:self,users/posixAccount:self,users/kolabAccount:self,users/phpscheduleitAccount:self,users/oxchangeAccount:self,users/proxyAccount:self,users/connectivity:self,users/pureftpdAccount:self,users/phpgwAccount:self,users/opengwAccount:self,users/pptpAccount:self,users/intranetAccount:self, users/webdavAccount:self,users/nagiosAccount:self,users/sambaAccount:self,users/mailAccount:self,users/groupware, users/user:self,users/scalixAccoun [...]
       <plugin acl="users/password:self" class="password" 
-              postmodify="USERPASSWORD=%new_password /usr/bin/sudo /usr/share/debian-edu-config/tools/gosa-sync %dn"
-              postlock="/usr/bin/sudo /usr/share/debian-edu-config/tools/gosa-lock-user %dn"
-              postunlock="/usr/bin/sudo /usr/share/debian-edu-config/tools/gosa-unlock-user %dn" />
+              postmodify="USERPASSWORD=%new_password /usr/bin/sudo /usr/share/debian-edu-config/tools/gosa-sync '%dn'"
+              postlock="/usr/bin/sudo /usr/share/debian-edu-config/tools/gosa-lock-user '%dn'"
+              postunlock="/usr/bin/sudo /usr/share/debian-edu-config/tools/gosa-unlock-user '%dn'" />
   </pathMenu>
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list