Bug 42391 - UDM allows mutliple values for single value properties
UDM allows mutliple values for single value properties
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM - Extended Attributes
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on: 21731
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-14 16:20 CEST by Florian Best
Modified: 2020-07-24 12:00 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup, Error handling, Troubleshooting, Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-09-14 16:20:17 CEST
UDM allows mutliple values for single value properties.

udm settings/extended_attribute create \
   --position "cn=custom attributes,cn=univention,$(ucr get ldap/base)" \
   --set name=audio \
   --set shortDescription=Audio \
   --set tabName=Contact \
   --set translationTabName="de_DE Kontakt" \
   --set CLIName=audio \
   --set mayChange=1 \
   --set multivalue=0 \
   --set module="users/user" \
   --set objectClass=organizationalPerson \
   --set ldapMapping=audio
udm users/user modify --dn "uid=Administrator,cn=users,$(ucr get ldap/base)" --append audio=3
udm users/user modify --dn "uid=Administrator,cn=users,$(ucr get ldap/base)" --append audio=4

# univention-ldapsearch -LLL -b "uid=Administrator,cn=users,$(ucr get ldap/base)" audio
dn: uid=Administrator,cn=users,dc=school,dc=local
audio: 3
audio: 4