From: Kurt Zeilenga Date: Mon, 19 Jul 1999 19:48:23 +0000 (+0000) Subject: Update LDAP_URL_ERR_ handling. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~91 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4fdd533a5aed63d6ddd50570e2a905538361ad76;p=openldap Update LDAP_URL_ERR_ handling. --- diff --git a/clients/mail500/main.c b/clients/mail500/main.c index 45676568f1..a5b7e77ab7 100644 --- a/clients/mail500/main.c +++ b/clients/mail500/main.c @@ -834,18 +834,42 @@ search_ldap_url( syslog( LOG_ALERT, "Not an LDAP URL: %s", url ); break; - case LDAP_URL_ERR_NODN: + case LDAP_URL_ERR_BADENCLOSURE: syslog( LOG_ALERT, - "Missing DN in URL: %s", url ); + "Bad Enclosure in URL: %s", url ); + break; + case LDAP_URL_ERR_BADURL: + syslog( LOG_ALERT, + "Bad URL: %s", url ); + break; + case LDAP_URL_ERR_BADHOST: + syslog( LOG_ALERT, + "Host is invalid in URL: %s", url ); + break; + case LDAP_URL_ERR_BADATTRS: + syslog( LOG_ALERT, + "Attributes are invalid in URL: %s", url ); break; case LDAP_URL_ERR_BADSCOPE: syslog( LOG_ALERT, - "Scope string is invalid in URL: %s", url ); + "Scope is invalid in URL: %s", url ); + break; + case LDAP_URL_ERR_BADFILTER: + syslog( LOG_ALERT, + "Filter is invalid in URL: %s", url ); + break; + case LDAP_URL_ERR_BADEXTS: + syslog( LOG_ALERT, + "Extensions are invalid in URL: %s", url ); break; case LDAP_URL_ERR_MEM: syslog( LOG_ALERT, "Out of memory parsing URL: %s", url ); break; + case LDAP_URL_ERR_PARAM: + syslog( LOG_ALERT, + "bad parameter parsing URL: %s", url ); + break; default: syslog( LOG_ALERT, "Unknown error %d parsing URL: %s",