[PC-BSD Commits] r18400 - pcbsd/current/src-sh/pc-adctl/scripts

svn at pcbsd.org svn at pcbsd.org
Fri Aug 10 21:11:24 PDT 2012


Author: johnh
Date: 2012-08-11 04:11:23 +0000 (Sat, 11 Aug 2012)
New Revision: 18400

Modified:
   pcbsd/current/src-sh/pc-adctl/scripts/pc-ldap
   pcbsd/current/src-sh/pc-adctl/scripts/pc-nssldap
Log:
Bugfixes.



Modified: pcbsd/current/src-sh/pc-adctl/scripts/pc-ldap
===================================================================
--- pcbsd/current/src-sh/pc-adctl/scripts/pc-ldap	2012-08-11 03:46:00 UTC (rev 18399)
+++ pcbsd/current/src-sh/pc-adctl/scripts/pc-ldap	2012-08-11 04:11:23 UTC (rev 18400)
@@ -144,7 +144,7 @@
 		options="-Z"
 	fi
 
-	if [ "${anonbind}" = "0" ]
+	if [ "${anonbind}" = "0" -o -z "${anonbind}" ]
 	then
 		local temp=$(mktemp /tmp/tmp.XXXXXX)
 

Modified: pcbsd/current/src-sh/pc-adctl/scripts/pc-nssldap
===================================================================
--- pcbsd/current/src-sh/pc-adctl/scripts/pc-nssldap	2012-08-11 03:46:00 UTC (rev 18399)
+++ pcbsd/current/src-sh/pc-adctl/scripts/pc-nssldap	2012-08-11 04:11:23 UTC (rev 18400)
@@ -231,7 +231,7 @@
 	fi
 
 	ln -sf ${conf} "$(dirname ${conf})/ldap.conf"
-	if [ "$ldap_anonbind" != 1 ]
+	if [ "${anonbind}" != "1" ]
 	then
 		ln -sf ${secret} "$(dirname ${secret})/ldap.secret"
 	fi



More information about the Commits mailing list