Bug 26379 - univention-s4-position-sync verschiebt nicht alle DCs
univention-s4-position-sync verschiebt nicht alle DCs
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-06 15:45 CET by Ingo Steuwer
Modified: 2016-10-11 08:02 CEST (History)
2 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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Steuwer univentionstaff 2012-03-06 15:45:34 CET
Das Skript univention-s4-position-sync verschiebt auch die DC-Objekte aus dem S4-Standardcontainer an die Postion aus UCS, als cn=dc,cn=computers,$ldap_base.
Comment 1 Stefan Gohmann univentionstaff 2012-07-06 21:02:54 CEST
(In reply to comment #0)
> Das Skript univention-s4-position-sync verschiebt auch die DC-Objekte aus dem
> S4-Standardcontainer an die Postion aus UCS, als cn=dc,cn=computers,$ldap_base.

Ich konnte das in meiner Testumgebung nicht direkt reproduzieren. Wo lagen die Objekte vorher? Und wurden diese durch den Connector korrekt synchronisiert?  Hast du den Log-Output noch?

Ich habe zwei DC Slaves, einer liegt unter cn=dc,cn=computers und einer unter cn=computers. Nur der unter cn=computers soll auch auf S4 Seite verschoben werden:

UCS: cn=master851,cn=dc,cn=computers,dc=deadlock85,dc=deadlock,dc=dead,dc=local
UCS: cn=master851-3,cn=computers,dc=deadlock85,dc=deadlock,dc=dead,dc=local
RENAME:  cn=master851-3,ou=domain controllers,dc=deadlock85,dc=deadlock,dc=dead,dc=local  to  cn=master851-3,cn=computers,DC=DEADLOCK85,DC=DEADLOCK,DC=DEAD,DC=LOCAL
UCS: cn=master851-4,cn=dc,cn=computers,dc=deadlock85,dc=deadlock,dc=dead,dc=local
Comment 2 Felix Botner univentionstaff 2012-07-12 11:23:51 CEST
Wenn ich es richtig verstanden habe, dann dürfen DC ComputerObjekte nach dem Update von S3 nach S4 durch univention-s4-position-sync nicht aus dem S4 Standardcontainer weggeschoben werden.

Das klappt auch für UCS Master, Slave und Backup, jedoch nicht für Windows DC's.

# UCS LDAP
-> univention-ldapsearch -LLL -b ou=ou1,$(ucr get ldap/base) dn
dn: ou=ou1,dc=i386,dc=de
dn: cn=ou1slave,ou=ou1,dc=i386,dc=de
dn: cn=ou1backup,ou=ou1,dc=i386,dc=de
dn: cn=ou1windc,ou=ou1,dc=i386,dc=de

# S4
-> univention-s4search -b ou="domain controllers,dc=i386,dc=de" dn
dn: OU=Domain Controllers,DC=i386,DC=de
dn: CN=ou1slave,OU=Domain Controllers,DC=i386,DC=de
dn: CN=ou1windc,OU=Domain Controllers,DC=i386,DC=de
dn: CN=ou1backup,OU=Domain Controllers,DC=i386,DC=de
dn: CN=RID Set,CN=MASTER,OU=Domain Controllers,DC=i386,DC=de
dn: CN=MASTER,OU=Domain Controllers,DC=i386,DC=de

-> /usr/share/univention-s4-connector/univention-s4-position-sync --dry-run 
Option --dry-run given, checking only:
RENAME:  cn=ou1windc,ou=domain controllers,dc=i386,dc=de  to  cn=ou1windc,ou=ou1,DC=I386,DC=DE
Comment 3 Felix Botner univentionstaff 2012-07-12 12:07:50 CEST
Ich habe nochmal getestet (alle Rechner haben ein passwort bekommen):

UCS 3.0-2 mit samba3

-> univention-ldapsearch -LLL  objectClass=univentionHost  dn
dn: cn=master,cn=dc,cn=computers,dc=i386,dc=de
dn: cn=ou1slave,ou=ou1,dc=i386,dc=de
dn: cn=ou1backup,ou=ou1,dc=i386,dc=de
dn: cn=ou1windc,ou=ou1,dc=i386,dc=de
dn: cn=stbackup,cn=dc,cn=computers,dc=i386,dc=de
dn: cn=stslave,cn=dc,cn=computers,dc=i386,dc=de
dn: cn=stwindc,cn=dc,cn=computers,dc=i386,dc=de

Nach Update auf Samba4 liegen alle Rechner in S4 im Standardcontainer:

-> univention-s4search objectClass=computer dn| grep ^dn
dn: CN=ou1backup,OU=Domain Controllers,DC=i386,DC=de
dn: CN=ou1slave,OU=Domain Controllers,DC=i386,DC=de
dn: CN=ou1windc,OU=Domain Controllers,DC=i386,DC=de
dn: CN=stbackup,OU=Domain Controllers,DC=i386,DC=de
dn: CN=stslave,OU=Domain Controllers,DC=i386,DC=de
dn: CN=stwindc,OU=Domain Controllers,DC=i386,DC=de
dn: CN=MASTER,OU=Domain Controllers,DC=i386,DC=de

univention-s4-position-sync will dann den windc aus der OU in S4 verschieben, die anderen nicht.

-> /usr/share/univention-s4-connector/univention-s4-position-sync --dry-run
Option --dry-run given, checking only:
RENAME:  cn=ou1windc,ou=domain controllers,dc=i386,dc=de  to  cn=ou1windc,ou=ou1,DC=I386,DC=DE
Comment 4 Stefan Gohmann univentionstaff 2012-07-12 13:47:46 CEST
Da war meine Info nicht ganz korrekt, ein Passwort reicht nicht, sondern es werden nur S4 Systeme verschoben / synchronisiert, der Match Filter aus dem connector:

(|(&(objectClass=univentionDomainController)(univentionService=Samba 4))(objectClass=computer)(univentionServerRole=windows_domaincontroller))

Das eigentliche Problem ist dann, dass die UCS Systeme,die nicht S4 sind, übernommen wurden. Alternativ könnte man auch einfach den Match Filter überschreiben.

-> Die Anpassung nicht zur 3.0-2.
Comment 5 Stefan Gohmann univentionstaff 2016-10-11 08:02:17 CEST
This issue has been filed against UCS 3.0.

UCS 3.0 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please reopen.