[debian-edu-commits] debian-edu/ 01/01: Add quotes around DNs when evoking kadmin.local in gosa-create and gosa-create-host. (Closes: #792042).
Mike Gabriel
sunweaver at debian.org
Wed Jul 15 12:38:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch squeeze
in repository debian-edu-config.
commit e182bc14f31b37c00d4474c77ea4c6146a7efa58
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 | 3 +++
share/debian-edu-config/tools/gosa-create | 2 +-
share/debian-edu-config/tools/gosa-create-host | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b37793a..61b13c4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,9 @@ debian-edu-config (1.457) UNRELEASED; urgency=low
Disable the cross-home-dir access for users in Samba. (So now we
deny that User A can access home of user B if not restricted by file
permissions).
+ * Adopt from d-e-c (jessie):
+ Add quotes around DNs when evoking kadmin.local in gosa-create and
+ gosa-create-host. (Closes: #792042).
-- Mike Gabriel <sunweaver at debian.org> Tue, 06 Aug 2013 09:25:40 +0200
diff --git a/share/debian-edu-config/tools/gosa-create b/share/debian-edu-config/tools/gosa-create
index 336ce81..f2502b9 100644
--- a/share/debian-edu-config/tools/gosa-create
+++ b/share/debian-edu-config/tools/gosa-create
@@ -37,7 +37,7 @@ while read KEY VALUE ; do
nscd -i group
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