Univention Bugzilla – Bug 46288
User template syntax: LDAP Error: Invalid syntax: userPrimaryGroupPreset: value #0 invalid per syntax
Last modified: 2018-09-25 17:27:12 CEST
The following error occurred on a customer system which is joined into a German MS AD domain: LDAP Error: Invalid syntax: userPrimaryGroupPreset: value #0 invalid per syntax It happened in a Kopano join script while creating the Kopano template: + ucr_varname=domainusers + ucr_varname=groups/default/domainusers + /usr/sbin/univention-config-registry get groups/default/domainusers + result=Domänen-Benutzer + [ -n Domänen-Benutzer ] + echo -n Domänen-Benutzer + univention-directory-manager settings/usertemplate create --ignore_exists --position cn=templates,cn=univention,dc=foo,dc=bar --set name=Kopano Account --set mailPrimaryAddress=<username>@foo.bar --set kopano-role=user --set unixhome=/home/<username> --set primaryGroup=cn=Domänen-Benutzer,cn=groups,dc=foo,dc=bar LDAP Error: Invalid syntax: userPrimaryGroupPreset: value #0 invalid per syntax + die
Move to 4.3-0-errata. If a UCS 4.2 backport is needed, please clone this issue.
yaml - 64d63948f86c26f1d891a9f171706dd7fd27e712 univention-ldap cbe7facb8ec35353ad06a5bcbf895fa905b636b8 changed syntax of userPrimaryGroupPreset to DirectoryString, not indexed, so no index update necessary As far as i tested it, the "--set primaryGroup" for user templates is no longer necessary, the correct default group is used if a user is created based on the template even if the template has no primaryGroup
OK: userPrimaryGroupPreset in usertemplates changed from syntax 1.3.6.1.4.1.1466.115.121.1.26 to 1.3.6.1.4.1.1466.115.121.1.15 (utf-8 encoded string) OK: kopano4ucs joinscript is executable, user sync + new user works, primary group is correct. OK: Yaml (i fixed the line length) Verified
<http://errata.software-univention.de/ucs/4.3/24.html>