mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Update LDAP_URL_ERR_ handling.
This commit is contained in:
parent
170836751a
commit
4fdd533a5a
1 changed files with 27 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue