summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libads/ads_status.c3
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