Bug 46262 - strange option handling in udm for users/user
strange option handling in udm for users/user
Status: CLOSED DUPLICATE of bug 45842
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Arvid Requate
Felix Botner
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-08 15:34 CET by Felix Botner
Modified: 2019-02-27 18:05 CET (History)
1 user (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".