r18425: Fix ads_ntstatus(). LDAP_SUCCESS should really map to NT_STATUS_OK.
authorGünther Deschner <gd@samba.org>
Tue, 12 Sep 2006 14:45:24 +0000 (14:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:51:23 +0000 (11:51 -0500)
Guenther
(This used to be commit 8ab214956ef11ff0b1532713cff65c17d2439570)

source3/libads/ads_status.c

index 111a52e072dafa22c476e8f6307131d4749512c1..017d38c6001b021c0b0d56ef9f47078c53babbe8 100644 (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