+carnet-tools-cn (3.0.3) stable; urgency=low
+
+ * Izmjene unutar cp_get_ldap_realm
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr> Thu, 08 Dec 2011 17:08:59 +0100
+
carnet-tools-cn (3.0.2) stable; urgency=low
* cp_get_ldap_suffix cita iz /etc/ldap/slapd.d, ako on ne postoji, cita
# but preserving initial state so it could be used afterwards
CP_ECHO_RETURN=""
- if [ ! -f /etc/ldap/slapd.d/ ]; then
- echo "cp_get_ldap_realm: /etc/ldap/slapd.d/: No such directory" >&2
+ if [ ! -d /etc/ldap/slapd.d/ ]; then
+ echo "cp_get_ldap_suffix: /etc/ldap/slapd.d/: No such directory" >&2
+ return 2
+ elif [ ! -f /etc/ldap/slapd.conf ]; then
+ echo "cp_get_ldap_suffix: /etc/ldap/slapd.conf: No such file" >&2
return 2
fi