diff options
author | Günther Deschner <gd@samba.org> | 2006-09-12 14:45:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:51:23 -0500 |
commit | 59e5149d8f7972654b17f4eafd8d664fe2bffcde (patch) | |
tree | 9a12ff3f899f0934268d45d310de485ef2669968 /source3/libads | |
parent | 2a61368ee38cc01f1bf034d1bd1aa1c13a5c0f4c (diff) | |
download | samba-59e5149d8f7972654b17f4eafd8d664fe2bffcde.tar.gz samba-59e5149d8f7972654b17f4eafd8d664fe2bffcde.tar.bz2 samba-59e5149d8f7972654b17f4eafd8d664fe2bffcde.zip |
r18425: Fix ads_ntstatus(). LDAP_SUCCESS should really map to NT_STATUS_OK.
Guenther
(This used to be commit 8ab214956ef11ff0b1532713cff65c17d2439570)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ads_status.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c index 111a52e072..017d38c600 100644 --- a/source3/libads/ads_status.c +++ b/source3/libads/ads_status.c @@ -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 |