Bug 46262

Summary: strange option handling in udm for users/user
Product: UCS Reporter: Felix Botner <botner>
Component: UDM (Generic)Assignee: Arvid Requate <requate>
Status: CLOSED DUPLICATE QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: requate
Version: UCS 4.3Keywords: interim-3
Target Milestone: UCS 4.3   
Hardware: Other   
OS: Linux   
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:

Description Felix Botner univentionstaff 2018-02-08 15:34:00 CET
-> udm users/user create --option ldap_pwd --set lastname=test1 \
   --set password=univention --set username=ldap_pwdd

-> udm users/user create --option foo --set lastname=test1 \
   --set password=univention --set username=fooo

-> udm users/user create --option pki --set lastname=test1 \
   --set password=univention --set username=pki

-> udm users/user create  --set lastname=test1 --set password=univention \
  --set username=defaulta

-> /usr/share/univention-directory-manager-tools/univention-migrate-users-to-ucs4.3 --check
Ignoring non users/user account: uid=sys-idp-user,cn=users,dc=fb,dc=bf
Modifying  uid=ldap_pwdd,dc=fb,dc=bf
[('objectClass',
  [],
  ['organizationalPerson', 'univentionMail', 'inetOrgPerson'])]

Modifying  uid=fooo,dc=fb,dc=bf
[('objectClass',
  [],
  ['organizationalPerson', 'univentionMail', 'inetOrgPerson'])]

Modifying  uid=pki,dc=fb,dc=bf
[('objectClass',
  [],
  ['organizationalPerson', 'univentionMail', 'inetOrgPerson'])]

seems that default option is always applied, but not person, does this make sense?

anyhow, in 4.3 all udm users/create commands should create object that are OK for univention-migrate-users-to-ucs4.3
Comment 1 univention 2018-02-08 15:43:24 CET
Yes, we should implement --append-option for the "create" action. Otherwise one needs to specify all(!) options which should be enabled. But one doesn't know which options are enabled by default because there might exists extended options.
Comment 2 Arvid Requate univentionstaff 2018-02-13 17:51:05 CET
Fixed as a result of Bug #45842 Comment 57.

*** This bug has been marked as a duplicate of bug 45842 ***
Comment 3 Felix Botner univentionstaff 2018-02-13 18:11:54 CET
OK
Comment 4 Stefan Gohmann univentionstaff 2018-03-14 14:38:38 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".