summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-17 13:46:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:41 -0500
commitac2fa9f41445d81bb45e385520d0fbba608956b4 (patch)
treedbbd54c114274c43be852f52970183d010fae2cf /source3/libads
parent20ad622b9888aa2021786498e91d144400d31b4c (diff)
downloadsamba-ac2fa9f41445d81bb45e385520d0fbba608956b4.tar.gz
samba-ac2fa9f41445d81bb45e385520d0fbba608956b4.tar.bz2
samba-ac2fa9f41445d81bb45e385520d0fbba608956b4.zip
r17589: Check in the really uncontroversial patch from Michael
(This used to be commit de76217cfb9d20431189e838999a634e4de067a9)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ads_status.c5
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