From 4fdd533a5aed63d6ddd50570e2a905538361ad76 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 19 Jul 1999 19:48:23 +0000 Subject: [PATCH] Update LDAP_URL_ERR_ handling. --- clients/mail500/main.c | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) 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", -- 2.39.5