[debian-edu-commits] debian-edu/ 01/01: Don't create home dir and Kerberos principal for GOsa user template account. (Closes: #815040).

Mike Gabriel sunweaver at debian.org
Thu Feb 18 06:39:04 UTC 2016


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 06144b5050293f4c4c38dd6174bfef9aa47e6240
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Thu Feb 18 07:34:28 2016 +0100

    Don't create home dir and Kerberos principal for GOsa user template account. (Closes: #815040).
---
 debian/changelog                          | 2 ++
 share/debian-edu-config/tools/gosa-create | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index a7e6f20..a5a5738 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -72,6 +72,8 @@ debian-edu-config (1.819) UNRELEASED; urgency=low
     CUPS server instead of to its IP address. (Closes: #805402).
   * Improve gosa-lock-user, gosa-unlock-user: When logging success/failure,
     differentiate between non-existent and non-kerberized accounts.
+  * Don't create home dir and Kerberos principal for GOsa user template
+    account. (Closes: #815040).
 
  -- Petter Reinholdtsen <pere at debian.org>  Sat, 16 May 2015 23:12:06 +0200
 
diff --git a/share/debian-edu-config/tools/gosa-create b/share/debian-edu-config/tools/gosa-create
index 6161af8..e8aba8e 100755
--- a/share/debian-edu-config/tools/gosa-create
+++ b/share/debian-edu-config/tools/gosa-create
@@ -19,7 +19,7 @@ USERID=$1
 # One ide might be to look for objects without the krbPasswordExpiration attributes.
 
 ## lookup user and create home directory and principal:
-ldapsearch -xLLL "(&(uid=$USERID)(objectClass=posixAccount))" \
+ldapsearch -xLLL "(&(uid=$USERID)(objectClass=posixAccount)(!(objectClass=gosaUserTemplate)))" \
     cn homeDirectory gidNumber 2>/dev/null | perl -p0e 's/\n //g' | \
 while read KEY VALUE ; do 
     case "$KEY" in 

-- 
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