ClearFoundation Tracker - ClearCenter
View Issue Details
0014281ClearCenterapp-active-directory - Active Directory Connectorpublic2017-04-10 07:492018-10-30 19:47
dloper 
user2 
normalfeaturealways
resolvedfixed 
7.3.0 Updates 
7.6.0 Updates7.4.0 Updates 
0014281: Test time on target server before domain join and abort with warning if the time drift exceeds 1 minute.
Time synchronicity is crucial to keeping AD connected as is DNS a test mechanism should be made to test both DNS and time before a domain join and a troubleshooting button to validate DNS and time should be included in the app to limit support tickets that arise when the customer's equipment drifts in DNS resolution or time.

The following test can be performed against the time server of the AD machine using CIFS:

net time -S server_name_or_IP

The result is automatically translated to the local time zone so it should match the 'date' command except for the timezone in the date command. For example, side by side results can be produced by the following:

net time -S 192.168.1.10 && date | cut -f 1,2,3,4,6 -d ' '

No tags attached.
Issue History
2017-04-10 07:49dloperNew Issue
2017-04-11 12:21dloperNote Added: 0005341
2017-04-25 20:13user2Statusnew => confirmed
2017-04-25 20:37user2Statusconfirmed => resolved
2017-04-25 20:37user2Fixed in Version => 7.3.0 Updates
2017-04-25 20:37user2Resolutionopen => fixed
2017-04-25 20:37user2Assigned To => user2
2017-05-03 14:20user2Note Added: 0005551
2017-08-12 18:45user2Target Version7.3.0 Updates => 7.4.0 Updates
2017-08-12 18:45user2Fixed in Version7.3.0 Updates => 7.4.0 Updates
2018-07-16 12:59user2Target Version7.4.0 Updates => 7.5.0 Updates
2018-10-30 19:47user2Target Version7.5.0 Updates => 7.6.0 Updates

Notes
(0005341)
dloper   
2017-04-11 12:21   
abs () { [ $1 -lt 0 ] && echo $((-$1)) || echo $1; } && abs $(expr $(date -d "$(net time -S $(egrep "^password server" /etc/samba/smb.conf | awk -F" = " '{ print$2 }'))" "+%s") - $(date "+%s"))

if the result is greater then 60 then there is a problem.
(0005551)
user2   
2017-05-03 14:20   
There's no timezone information returned. That makes time comparisons dodgy at best. The check will still be done, but it will be non-fatal.