Author: rmeggins
Update of /cvs/dirsec/dsgw
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19979
Modified Files:
setup-ds-dsgw.in
Log Message:
better method of choosing suffix
Index: setup-ds-dsgw.in
===================================================================
RCS file: /cvs/dirsec/dsgw/setup-ds-dsgw.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- setup-ds-dsgw.in 30 Jan 2008 02:22:46 -0000 1.1
+++ setup-ds-dsgw.in 31 Jan 2008 20:31:59 -0000 1.2
@@ -99,9 +99,8 @@
ldapurl="ldap://$host:$port"
fi
# get suffix
- suffixlist="`getValFromLdif nsslapd-suffix $dir/dse.ldif 2`"
- for suffix in $suffixlist ; do
- case $suffix in
+ grep ^nsslapd-suffix: $dir/dse.ldif | sed -e 's/^nsslapd-suffix:[ ]*//' | while
read suffix ; do
+ case "$suffix" in
*netscaperoot) ;;
*NetscapeRoot) ;;
*) break ;; # find the first non-netscaperoot suffix
Show replies by date