Univention Bugzilla – Bug 31832
[computers/macos] LDAP error when creating computers/macos with given domain attribute
Last modified: 2017-04-04 18:29:22 CEST
When creating a computers/macos object with given domain attribute, a LDAP error occurs. root@master10:~# udm computers/macos create --set name="some_macos" --set domain="foo.bar" LDAP Error: Constraint violation: krb5PrincipalName: multiple values provided
Created attachment 5293 [details] Patch Rudimentary tested.
When this bug is fixed, the ucs-test case 66_udm-computers/08_create_and_validate_macos.py should be re-enabled.
(In reply to Lukas Walter from comment #2) > When this bug is fixed, the ucs-test case > 66_udm-computers/08_create_and_validate_macos.py should be re-enabled. Role "macos" is currently skipped in 66_udm-computers/16_check_network_all_roles.py due to this bug. This should also be undone when it is fixed.
This issue has been filed against the UCS version "unstable" which does not really exist. Please change the version value.
A similar problem still seems to occur with UCS 3.2 (cf. Bug 25172, Comment 9): > Ich wollte ein computers/macos anlegen und bekomme die selben Fehler: > udm computers/macos create > --position=cn=computers,ou=schule1,dc=schule1,dc=test --set > name=ws-schule1-imac10 --set 'operatingSystem=OS X' --set > operatingSystemVersion=10.6.8 --set > description=Apple/iMac,Location:W12,Warranty: --set > network=cn=EDU,cn=networks,ou=schule1,dc=schule1,dc=test --set > mac=00:1f:5b:e6:cc:b9 --set ip=172.30.0.216 --set > 'dhcpEntryZone=cn=schule1,cn=dhcp,ou=schule1,dc=schule1,dc=test 172.30.0.216 > 00:1f:5b:e6:cc:b9' > > LDAP Error: Constraint violation: krb5PrincipalName: multiple values provided > > wie im Bug beschrieben handelt es sich hier nicht um die kerberos Domain > sonder der FQDN des MACOS Gerät wird in einer anderen sein. Das selbe haben > wir mit computers/windows gemacht und hat funktioniert auch mit > computers/ipmanagedclient. > > Es ist auch egal ob man es per CLI oder Webinterface erfasst. wir verwenden > ein neu installiertes UCS3.2-2
Hmm, with UCS 4.0 not reproducible. The test case should be reenabled.
Meanwhile works: root@xen3:~# udm computers/macos create --set name="some_macos" --set domain="foo.bar" Object created: cn=some_macos,dc=school,dc=local root@xen3:~# hostname -f xen3.school.local root@xen3:~# udm computers/macos create --set name="some_macos2" --set domain="school.local" Object created: cn=some_macos2,dc=school,dc=local The test case 66_udm-computers/08_create_and_validate_macos.py doesn't exists anymore. The MAC-OS skip in 66_udm-computers/16_check_network_all_roles.py has been readded. It runs perfectly on my UCS 4.2 system. ucs-test (7.0.6-12): r73048 | Bug #31832: reenable skipped test
Yes, it works.
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".