diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/ads_status.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c index 536ef766e3..5a4165c2f9 100644 --- a/source3/libads/ads_status.c +++ b/source3/libads/ads_status.c @@ -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 |