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

vlendec at samba.org vlendec at samba.org
Thu Aug 17 13:46:02 GMT 2006


Author: vlendec
Date: 2006-08-17 13:46:02 +0000 (Thu, 17 Aug 2006)
New Revision: 17589

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

Log:
Check in the really uncontroversial patch from Michael
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-08-17 13:41:23 UTC (rev 17588)
+++ branches/SAMBA_3_0/source/libads/ads_status.c	2006-08-17 13:46:02 UTC (rev 17589)
@@ -72,6 +72,9 @@
 	if (status.error_type == ENUM_ADS_ERROR_NT){
 		return status.err.nt_status;	
 	}
+	if (status.error_type == ENUM_ADS_ERROR_SYSTEM) {
+		return map_nt_error_from_unix(status.err.rc);
+	}
 #ifdef HAVE_LDAP
 	if ((status.error_type == ENUM_ADS_ERROR_LDAP) 
 	    && (status.err.rc == LDAP_NO_MEMORY)) {
@@ -84,6 +87,8 @@
 			return NT_STATUS_LOGON_FAILURE;
 		} else if (status.err.rc == KRB5_KDC_UNREACH) {
 			return NT_STATUS_NO_LOGON_SERVERS;
+		} else if (status.err.rc == KRB5KRB_AP_ERR_SKEW) {
+			return NT_STATUS_TIME_DIFFERENCE_AT_DC;
 		}
 	}
 #endif



More information about the samba-cvs mailing list