Applied same rules as for generating ldif for domainname.
This is just a quick-fix, but how do we solve this for real?
Can we know which codeset the user is using when installing package
slapd? 

-- 
Regards
 
Bjørn Ove Grøtan
--- slapd.config.orig   2005-04-05 09:50:00.288926408 +0200
+++ slapd.config        2005-04-05 09:58:06.347034344 +0200
@@ -97,9 +97,13 @@
     invalid=true
   fi
  
-  # Suffix and Organization may not be empty
+  # Suffix and Organization may not be empty. Same here as for 
+  # slapd/domain. If people use UTF-8 or non-ascii characters in 
+  # their organization name, we would need to Base64 encode it
+  # in the LDIF. This part needs some great deal of magic, how do 
+  # we know the 
   db_get shared/organization
-  if [ -z "$RET" ]; then
+  if [ -z "$RET" ] || ! echo "$RET" | grep -q '^[a-zA-Z0-9-.]*$'; then
     db_fset shared/organization seen false
     invalid=true
   fi

Reply via email to