jos ispravki
authorIvan Rako <irako@nekkar.carnet.hr>
Fri, 9 Dec 2011 20:32:07 +0000 (21:32 +0100)
committerIvan Rako <irako@nekkar.carnet.hr>
Fri, 9 Dec 2011 20:32:07 +0000 (21:32 +0100)
functions.sh

index 49fc2c6..dc3450d 100644 (file)
@@ -487,6 +487,7 @@ cp_get_ldap_realm() {
 
   if [ ! -d /etc/ldap/slapd.d/ -a ! -f /etc/ldap/slapd.conf ]; then
     echo "cp_get_ldap_realm: /etc/ldap/slapd.{d/,conf}: No such file or directory" >&2
+    return 2
   fi
 
   cp_get_ldap_suffix || true