[Fedora-directory-commits] ldapserver/ldap/cm/newinst ns-update, 1.8, 1.9

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Thu Nov 17 17:34:47 UTC 2005


Author: rmeggins

Update of /cvs/dirsec/ldapserver/ldap/cm/newinst
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17550/ldapserver/ldap/cm/newinst

Modified Files:
	ns-update 
Log Message:
Fix the problem with the Admin Server console - error opening the encryption tab.  The solution is to chown the alias directory to the admin server uid so that the security CGI can create the key/cert dbs in that directory.



Index: ns-update
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/cm/newinst/ns-update,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ns-update	21 Oct 2005 19:21:18 -0000	1.8
+++ ns-update	17 Nov 2005 17:34:35 -0000	1.9
@@ -165,6 +165,33 @@
 
 cd `dirname $0`
 
+# we need to make sure the alias directory is owned by the server user/group
+# in order for the server to be able to create the initial key/cert db files
+
+# get the inf file name
+seenfarg=
+inffile=
+for arg in "$@" ; do
+	if [ $seenfarg ] ; then
+		inffile=$arg
+		break
+	fi
+	if [ "$arg" = "-f" ] ; then
+		seenfarg=1
+	fi
+done
+
+if [ ! -f "$inffile" ] ; then
+	echo "WARNING: Could not read the setup info file $inffile"
+else
+# grab the ssuser and ssgrp
+	ssuser=`grep SuiteSpotUserID $inffile | sed -e 's/SuiteSpotUserID[ 	]*=[ 	]*//'`
+	ssgrp=`grep SuiteSpotGroup $inffile | sed -e 's/SuiteSpotGroup[ 	]*=[ 	]*//'`
+#	echo "user = $ssuser group = $ssgrp"
+# chown the alias directory
+	chown $ssuser:$ssgrp $sroot/alias
+fi
+
 rc=0
 ./ds_create $* $extraflags
 rc=$?




More information about the Fedora-directory-commits mailing list