r17589: Check in the really uncontroversial patch from Michael
authorVolker Lendecke <vlendec@samba.org>
Thu, 17 Aug 2006 13:46:02 +0000 (13:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:38:41 +0000 (11:38 -0500)
source/libads/ads_status.c

index 536ef766e374a6ece9e47c2d2b4abe370337c029..5a4165c2f94665fbe8c583ce8193898f19d65b0f 100644 (file)
@@ -72,6 +72,9 @@ NTSTATUS ads_ntstatus(ADS_STATUS status)
        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 @@ NTSTATUS ads_ntstatus(ADS_STATUS status)
                        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