[debian-edu-commits] debian-edu/ 01/02: Add quotes around DNs when evoking kadmin.local in gosa-create and gosa-create-host. (Closes: #792042).

Mike Gabriel sunweaver at debian.org
Wed Oct 14 07:22:56 UTC 2015


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

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

commit 1c8fdc968057a9fe60cd6710444250eed6434399
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Jul 15 14:26:26 2015 +0200

    Add quotes around DNs when evoking kadmin.local in gosa-create and gosa-create-host. (Closes: #792042).
---
 debian/changelog                               | 9 +++++++--
 share/debian-edu-config/tools/gosa-create      | 2 +-
 share/debian-edu-config/tools/gosa-create-host | 2 +-
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4e593f4..0e0a487 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,15 @@
-debian-edu-config (1.819) UNRELEASED; urgency=low
+debian-edu-config (1.819+nmu1) UNRELEASED; urgency=low
 
+  [ Petter Reinholdtsen ]
   * Translation updates:
     - Updated Brazilian Portuguese translation for debconf questions
       (Closes: #785467).  Translated by Adriano Rafael Gomes.
 
- -- Petter Reinholdtsen <pere at debian.org>  Sat, 16 May 2015 23:12:06 +0200
+  [ Mike Gabriel ]
+  * Add quotes around DNs when evoking kadmin.local in gosa-create and
+    gosa-create-host. (Closes: #792042).
+
+ -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Wed, 15 Jul 2015 14:25:32 +0200
 
 debian-edu-config (1.818) unstable; urgency=high
 
diff --git a/share/debian-edu-config/tools/gosa-create b/share/debian-edu-config/tools/gosa-create
index 888bb0e..6161af8 100644
--- a/share/debian-edu-config/tools/gosa-create
+++ b/share/debian-edu-config/tools/gosa-create
@@ -39,7 +39,7 @@ while read KEY VALUE ; do
                 nscd -i group || true
             fi
     	    chown -R $USERID:$GROUPID $HOMEDIR
-	    kadmin.local -q "add_principal -policy users -randkey -x $USERDN $USERID"
+	    kadmin.local -q "add_principal -policy users -randkey -x \"$USERDN\" $USERID"
     	    logger -t gosa-create -p notice Home directory \'$HOMEDIR\' and principal \'$USERID\' created. 
 ## send a welcome-email: 
             cat << EOF | /usr/lib/sendmail $USERID
diff --git a/share/debian-edu-config/tools/gosa-create-host b/share/debian-edu-config/tools/gosa-create-host
index f138bcf..e778f60 100644
--- a/share/debian-edu-config/tools/gosa-create-host
+++ b/share/debian-edu-config/tools/gosa-create-host
@@ -44,7 +44,7 @@ while read KEY VALUE ; do
                 macAddress:) MAC="$VALUE"  ;;
                 "")
                         FQDN=`find_fqdn $HOSTNAME $IP`
-                        test -n $FQDN && kadmin.local -q "add_principal -policy hosts -randkey -x $HOSTDN host/$FQDN" && logger -t gosa-create-host -p notice Krb5 principal \'host/$FQDN\' created.
+                        test -n $FQDN && kadmin.local -q "add_principal -policy hosts -randkey -x \"$HOSTDN\" host/$FQDN" && logger -t gosa-create-host -p notice Krb5 principal \'host/$FQDN\' created.
                         ;;
                 esac 
 done

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