Bug 18335 - nicht maskierte DN beim Anlegen von Objekten
nicht maskierte DN beim Anlegen von Objekten
Status: CLOSED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 2.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-06 13:55 CEST by Felix Botner
Modified: 2019-03-09 23:43 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 2010-05-06 13:55:17 CEST
Mit bug#17852 werden die DN's beim Anlegen von temporären Objekten nun richtig maskiert. Anscheinend fehlt diese Maskierung auch beim Anlegen der Objekte selbst.

Debug Meldung in uldap.py in Klasse access Methode add eingebaut 

-> udm users/user create --set username="foo+bar" --set lastname=lastname \
   --set password=univention

Debug Meldung:

08.02.10 14:43:25  ADMIN       ( ERROR   ) : debug try add dn: cn=foo\+bar,cn=uid,cn=temporary,cn=univention,dc=univention,dc=qa
08.02.10 14:43:25  ADMIN       ( ERROR   ) : debug try add dn: cn=2012,cn=uidNumber,cn=temporary,cn=univention,dc=univention,dc=qa
08.02.10 14:43:25  ADMIN       ( ERROR   ) : debug try add dn: cn=S-1-5-21-29764662-496752969-2650431501-5024,cn=sid,cn=temporary,cn=univention,dc=univention,dc=qa
08.02.10 14:43:25  ADMIN       ( ERROR   ) : debug try add dn: uid=foo+bar,dc=univention,dc=qa


In der letzten Meldung sieht man, dass das + nicht maskiert ist.
Comment 1 Felix Botner univentionstaff 2010-05-06 14:00:25 CEST
Der Traceback zum UDM Aufruf:

Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 231, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/python2.4/site-packages/univention/admincli/admin.py", line 740, in doit
    dn=object.create()
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 305, in create
    return self._create()
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 638, in _create
    self.lo.add(self.dn, al)
  File "/usr/lib/python2.4/site-packages/univention/admin/uldap.py", line 342, in add
    raise univention.admin.uexceptions.ldapError, msg[0]['desc']
ldapError: Invalid DN syntax
Comment 2 Stefan Gohmann univentionstaff 2014-02-18 21:38:15 CET
This issue has been filed against UCS 2.3.

UCS 2.3 is out of maintenance and many UCS components have vastly changed in
later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug".
In this case please provide detailed information on how this issue is affecting
you.
Comment 3 Florian Best univentionstaff 2019-03-09 23:43:11 CET
root@app:~# udm users/user create --set username="foo+bar" --set lastname=lastname    --set password=univention
09.03.19 03:40:34.838  LDAP        ( INFO    ) : uldap.add dn=cn=foo\+bar,cn=uid,cn=temporary,cn=univention,dc=tab,dc=dev
09.03.19 03:40:41.089  LDAP        ( INFO    ) : uldap.delete cn=foo\+bar,cn=uid,cn=temporary,cn=univention,dc=tab,dc=dev
09.03.19 03:40:41.101  LDAP        ( INFO    ) : uldap.delete uid=foo\+bar,cn=admin-settings,cn=univention,dc=tab,dc=dev
09.03.19 03:40:54.909  LDAP        ( INFO    ) : uldap.add dn=cn=foo\+bar,cn=uid,cn=temporary,cn=univention,dc=tab,dc=dev
Object created: uid=foo\+bar,dc=tab,dc=dev
root@app:~# udm users/user remove --dn 'uid=foo\+bar,dc=tab,dc=dev'
Object removed: uid=foo\+bar,dc=tab,dc=dev