From 8ab214956ef11ff0b1532713cff65c17d2439570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Tue, 12 Sep 2006 14:45:24 +0000 Subject: [PATCH] r18425: Fix ads_ntstatus(). LDAP_SUCCESS should really map to NT_STATUS_OK. Guenther --- source/libads/ads_status.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/libads/ads_status.c b/source/libads/ads_status.c index 111a52e072d..017d38c6001 100644 --- a/source/libads/ads_status.c +++ b/source/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