svn commit: samba r18425 - in branches/SAMBA_3_0/source/libads: .

gd at samba.org gd at samba.org
Tue Sep 12 14:45:24 GMT 2006


Author: gd
Date: 2006-09-12 14:45:24 +0000 (Tue, 12 Sep 2006)
New Revision: 18425

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18425

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

Guenther

Modified:
   branches/SAMBA_3_0/source/libads/ads_status.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ads_status.c
===================================================================
--- branches/SAMBA_3_0/source/libads/ads_status.c	2006-09-12 14:44:44 UTC (rev 18424)
+++ branches/SAMBA_3_0/source/libads/ads_status.c	2006-09-12 14:45:24 UTC (rev 18425)
@@ -76,6 +76,9 @@
 		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



More information about the samba-cvs mailing list