Bug 37481 - Join into AD: Clock synchronization
Join into AD: Clock synchronization
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-lib
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Arvid Requate
Stefan Gohmann
:
Depends on:
Blocks: 36406
  Show dependency treegraph
 
Reported: 2015-01-08 12:45 CET by Arvid Requate
Modified: 2015-01-29 11:43 CET (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2015-01-08 12:45:23 CET
The admember module of python-univention-lib should support direct unconditional synchronization of the system time with and AD server. Required for Bug #36406
Comment 1 Arvid Requate univentionstaff 2015-01-08 13:51:14 CET
Advisory: 2014-12-09-univention-lib.yaml
Comment 2 Stefan Gohmann univentionstaff 2015-01-20 07:58:28 CET
Code review: Failed

If I see it correctly, the join aborts if the time synchronization fails. I'm not sure but I think that could happen if the Windows firewall blocks the port. I think we should only abort if the join fails.
Comment 3 Stefan Gohmann univentionstaff 2015-01-21 08:06:49 CET
If I try to use the AD connection module, I got the following message (I definitely synced the time):

21.01.15 07:44:21.620  MODULE      ( PROCESS ) : stderr:
21.01.15 07:44:21.622  MODULE      ( PROCESS ) : AD Info: {'Domain': 'deadlock65.intranet', 'LDAP Base': 'DC=deadlock65,DC=intranet', 'Forest': 'deadlock65.intranet', 'Client Site': 'Default-First-Site-Name', 'DC Netbios Name': 'WIN-125IN6TLA89', 'DC DNS Name': 'WIN-125IN6TLA89.deadlock65.intranet', 'Netbios Domain': 'DEADLOCK65', 'DC IP': '10.201.65.1', 'Server Site': 'Default-First-Site-Name'}
21.01.15 07:44:21.625  MODULE      ( INFO    ) : running check_connection
21.01.15 07:44:21.643  MODULE      ( INFO    ) : running check_account
21.01.15 07:44:21.652  MODULE      ( PROCESS ) : Time difference is less than 180 seconds, skipping reset of local time
21.01.15 07:44:21.793  MODULE      ( PROCESS ) : Prepare Kerberos UCR settings
21.01.15 07:44:21.796  MODULE      ( PROCESS ) : Setting UCR variables: [u'kerberos/defaults/dns_lookup_kdc=true']
21.01.15 07:44:21.927  MODULE      ( PROCESS ) : Unsetting UCR variables: [u'kerberos/kdc', u'kerberos/kpasswdserver', u'kerberos/adminserver']
21.01.15 07:44:22.057  MODULE      ( INFO    ) : running _get_kerberos_ticket
21.01.15 07:44:22.115  MODULE      ( ERROR   ) : kinit failed:
kinit: krb5_get_init_creds: Clock skew too great

21.01.15 07:44:22.457  MODULE      ( WARN    ) : Failure:
21.01.15 07:44:22.457  MODULE      ( PROCESS ) : Das Kommando ist fehlgeschlagen: Eine Verbindung zum AD-Server WIN-125IN6TLA89.deadlock65.intranet konnte nicht hergestellt werden. Bitte überprüfen Sie Benutzername und Password.
21.01.15 07:44:22.457  PROTOCOL    ( INFO    ) : Sending UMCP RESPONSE 142182266158102-54
Comment 5 Arvid Requate univentionstaff 2015-01-21 13:21:58 CET
> 21.01.15 07:44:22.115  MODULE      ( ERROR   ) : kinit failed:
> kinit: krb5_get_init_creds: Clock skew too great

Works for me, I need a look at your environment (Maybe a time zone issue?).

> Setup via module failed:

That's Bug 35096#c3
Comment 6 Arvid Requate univentionstaff 2015-01-21 23:44:02 CET
> 21.01.15 07:44:22.115  MODULE      ( ERROR   ) : kinit failed:
> kinit: krb5_get_init_creds: Clock skew too great


Ah, nasty, setup.log shows in my test that the script 40_ssl/10ssl explicitly syncs the time to some external source...
============================================================================
=== 40_ssl/10ssl (2015-01-06 15:20:54) ===
__NAME__:40_ssl/10ssl Erstellen der SSL-Zertifikate
Wed Jan 21 22:06:40 CET 2015
============================================================================

Looking at the script:
============================================================================
        # try to set the clock before generating the root CA, otherwise it
        # is possible that the certificate is not valid at the end of the
        # installation Bug #13549
        timeout -k 5 15 rdate time.fu-berlin.de ||
                timeout -k 5 15 rdate 130.133.1.10 ||
                true
============================================================================

Now we avoid this in case ad/member is true.
Additionally I added a workaround for an unlikely issue with kinit.
Advisory updated.
Comment 7 Stefan Gohmann univentionstaff 2015-01-22 07:08:39 CET
OK, now it works in my test cases.
Comment 8 Janek Walkenhorst univentionstaff 2015-01-29 11:43:18 CET
<http://errata.univention.de/ucs/4.0/56.html>