Bug 47246

Summary: Missing LDAP attribute option lang-
Product: UCS Reporter: bochmann
Component: LDAPAssignee: Felix Botner <botner>
Status: CLOSED FIXED QA Contact: Arvid Requate <requate>
Severity: normal    
Priority: P5 CC: best, botner, requate
Version: UCS 4.2Flags: requate: Patch_Available+
Target Milestone: UCS 4.3-1-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 5: Will affect all installed domains How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.114 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: attributeoptions-lang.patch

Description bochmann 2018-06-26 08:59:11 CEST
Definition of attribute option "entry-" in 30univention-ldap-server_head kicks out default attribute option "lang-".

The slapd.conf manual page describes this behaviour:
"attributeoptions [option-name]...
    Define tagging attribute options or option tag/range prefixes. Options must
    not end with `-', prefixes must end with `-'.
    The `lang-' prefix is predefined.  If you use the attributeoptions directive,
    `lang-'  will  no  longer  be defined and you must specify it explicitly if
    you want it defined."


Trying to import LDIF with attribute options "lang-de" ends up with error "wrong attribute type".

ldap_modify: Undefined attribute type (17)
	additional info: description;lang-de: unrecognized option
Comment 1 Arvid Requate univentionstaff 2018-06-26 11:13:55 CEST
Created attachment 9577 [details]
attributeoptions-lang.patch

Thanks for the report.
Comment 2 bochmann 2018-06-28 15:30:58 CEST
(In reply to Arvid Requate from comment #1)
> Created attachment 9577 [details]
> attributeoptions-lang.patch
> 
> Thanks for the report.

The patch is working for me.
Comment 3 Felix Botner univentionstaff 2018-06-29 12:14:08 CEST
univention-ldap.yaml 8ebb271a742ac88a2041be308fd2f9043bb66924
univention-ldap ce96dfaee7b141f34dc68ae8ede3dbaaeb4c9a66

Added new UCR variable "ldap/attributeoptions" to configure attributeoptions in slapd.conf. New default is "entry-" "lang-".

@bochmann@eva.mpg.de
you probably want to revert that 30univention-ldap-server_head change before the univention-ldap-server update, or you will not get the updated version of this template file (as we do not overwrite modified config files during package updates).
Comment 4 Arvid Requate univentionstaff 2018-07-09 19:06:18 CEST
Ok.

> univention-ldap.yaml 8ebb271a742ac88a2041be308fd2f9043bb66924

Has not been pushed, I've added a advisory.
Comment 5 Arvid Requate univentionstaff 2018-07-25 13:56:35 CEST
<http://errata.software-univention.de/ucs/4.3/156.html>