Bug 28981 - Connector (vermutlich S4 und AD) - default für ext. Attributes werden beim ersten Objekt nach dem Start des Connectors nicht ausgewertet
Connector (vermutlich S4 und AD) - default für ext. Attributes werden beim er...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Stefan Gohmann
Arvid Requate
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-30 16:58 CET by Felix Botner
Modified: 2012-12-12 21:10 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
s4-extended-attributes.patch (1.08 KB, patch)
2012-10-31 10:48 CET, Stefan Gohmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2012-10-30 16:58:04 CET
UCS 3.1 mit S4 Connector

folgendes ext Attribuz angelegt:

eval "$(ucr shell)"

univention-directory-manager settings/extended_attribute create "$@"
    --ignore_exists \
    --position "cn=custom attributes,cn=univention,$ldap_base" \
    --set objectClass="univentionFreeAttributes" \
    --set ldapMapping="univentionFreeAttribute1" \
    --append module="users/user" \
    --set overwritePosition="0" \
    --set overwriteTab="0" \
    --set version="2" \
    --set valueRequired="0" \
    --set CLIName="myTestAccount" \
    --set shortDescription="TEST" \
    --set longDescription="" \
    --set translationShortDescription='"de_DE" "TEST"' \
    --set doNotSearch="0" \
    --set default="1" \
    --set tabName="new tab" \
    --set syntax="boolean" \
    --set tabAdvanced="0" \
    --set name="myTestAccount" \
    --set mayChange="1" \
    --set multivalue="0" \
    --set deleteObjectClass="0" \
    --set tabPosition="1"

Wenn ich nun den S4 Connector neu starte, dann bekommt der erste Benutzer, der über S4 (also über den Connector) angelegt wird, nicht den default 1.

-> /etc/init.d/univention-s4-connector restart
-> samba-tool user add  samba1 univention
-> samba-tool user add  samba2 univention

-> udm users/user list| grep 'DN\|myTest'
DN: uid=samba1,cn=users,dc=ucs,dc=new
  myTestAccount: None
DN: uid=samba2,cn=users,dc=ucs,dc=new
  myTestAccount: 1
Comment 1 Stefan Gohmann univentionstaff 2012-10-31 10:48:15 CET
Ist angepasst.

Es war nur der S4 Connector betroffen, im AD Connector wird es bereits richtig gemacht.

Im Anhang der Patch.
Comment 2 Stefan Gohmann univentionstaff 2012-10-31 10:48:34 CET
Created attachment 4758 [details]
s4-extended-attributes.patch
Comment 3 Arvid Requate univentionstaff 2012-11-13 17:43:48 CET
Verifdied:
 * Patch ist drin, Funktionstest ok
 * Changelog ok
Comment 4 Stefan Gohmann univentionstaff 2012-12-12 21:10:38 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

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