[Ultrapossum-cvs 481] ultrapossum/init.d 1.6,1.7,10config

Back to archive index

Masato Taruishi taru****@users*****
2004年 9月 17日 (金) 21:47:44 JST


===================================================================
RCS file: ultrapossum/init.d/10config,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ultrapossum/init.d/10config	2004/09/17 11:52:18	1.6
+++ ultrapossum/init.d/10config	2004/09/17 12:47:44	1.7
@@ -9,10 +9,12 @@
   ldap)
     ldapsearch -LLL -x -H "$ULTRAPOSSUM_CONFIG_BACKEND_LDAP_URI" -b "$ULTRAPOSSUM_CONFIG_BACKEND_LDAP_BASEDN" -D "$ULTRAPOSSUM_CONFIG_BACKEND_LDAP_BINDDN" -w "$ULTRAPOSSUM_CONFIG_BACKEND_LDAP_BINDPW" description=\* cn description  | egrep '(cn:|description:)' | uniq | while read cn; do
     read description
-    cn=`echo $cn | cut -d' ' -f2-`
-    description=`echo $description | cut -d' ' -f2-`
-    if test "x${!cn}" = "x"; then
-      echo "$cn='$description'"
+    if echo $description | grep -v :: > /dev/null; then
+      cn=`echo $cn | cut -d' ' -f2-`
+      description=`echo $description | cut -d' ' -f2-`
+      if test "x${!cn}" = "x"; then
+        echo "$cn='$description'"
+      fi
     fi
   done
   ;;



Ultrapossum-cvs メーリングリストの案内
Back to archive index