Bug 47069

Summary: Logon failure in Password-Sync via DRS when not using Administrator
Product: UCS Reporter: Nico Stöckigt <stoeckigt>
Component: AD ConnectorAssignee: Arvid Requate <requate>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: requate
Version: UCS 4.3Flags: requate: Patch_Available+
Target Milestone: UCS 4.3-2-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.143 Enterprise Customer affected?: Yes
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: 2018042321000341 Bug group (optional):
Max CVSS v3 score:
Attachments: bug47069.patch
bug47069.patch

Description Nico Stöckigt univentionstaff 2018-05-24 13:26:05 CEST
In a customers environment a special AD-Sync user is used to replicate from MS/AD. While ldap objects are successfully replicated the passwords are not. We figured out that this is because for the PWD-Sync via DRS the sAMAccountName is used for authentication. The ad-connector uses the CN part of the BindDN as sAMAccountName - which is ok while using Administrator - but in this scenario both attributes differ.

We should determine the correct sAMAccountName from the AD-Object to use it in the PWD-Sync via DRS.
Comment 1 Arvid Requate univentionstaff 2018-05-24 16:47:19 CEST
Created attachment 9536 [details]
bug47069.patch

Good catch! The attached patch may be suitable to fix this.
Comment 2 Arvid Requate univentionstaff 2018-05-24 16:54:19 CEST
Created attachment 9537 [details]
bug47069.patch

Fixed syntax error
Comment 3 Arvid Requate univentionstaff 2018-11-27 21:01:33 CET
Patch applied.

bce52836f6 | Fix AD to UCS password hash synchronization in case
             a custom Domain Admin account is used
7bba9ad416 | Advisory
Comment 4 Felix Botner univentionstaff 2018-11-28 12:10:05 CET
OK - works with

-> univention-adsearch cn=Administrator dn sAMAccountName
DN: CN=Administrator,CN=Users,DC=w2k12,DC=test
sAMAccountName: Admin

OK - YAML
Comment 5 Arvid Requate univentionstaff 2018-12-05 14:39:12 CET
<http://errata.software-univention.de/ucs/4.3/354.html>