1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r18425: Fix ads_ntstatus(). LDAP_SUCCESS should really map to NT_STATUS_OK.

Guenther
This commit is contained in:
Günther Deschner 2006-09-12 14:45:24 +00:00 committed by Gerald (Jerry) Carter
parent 533f764084
commit 8ab214956e

View File

@ -76,6 +76,9 @@ NTSTATUS ads_ntstatus(ADS_STATUS status)
return map_nt_error_from_unix(status.err.rc);
#ifdef HAVE_LDAP
case ENUM_ADS_ERROR_LDAP:
if (status.err.rc == LDAP_SUCCESS) {
return NT_STATUS_OK;
}
return NT_STATUS_LDAP(status.err.rc);
#endif
#ifdef HAVE_KRB5