Bug 51474 - udm/values (users/user): 'LDAP_Search' object has no attribute 'base'
udm/values (users/user): 'LDAP_Search' object has no attribute 'base'
Status: NEEDMOREINFO
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-12 09:50 CEST by Christian Castens
Modified: 2022-02-21 14:59 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: 2020042021000431
Bug group (optional): External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2020-06-12 09:50:27 CEST
Version: 4.4-4 errata528 (Blumenthal)

Interner Server-Fehler in "udm/values (users/user)".
Request: udm/values (users/user)

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 358, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 261, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/__init__.py", line 701, in values
    result = module.get_default_values(property_name)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 460, in get_default_values
    value = read_syntax_choices(prop.syntax, ldap_connection=ldap_connection, ldap_position=ldap_position)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 1534, in read_syntax_choices
    syntax._prepare(ldap_connection, syntax.filter)
  File "/usr/lib/python2.7/dist-packages/univention/admin/syntax.py", line 4500, in _prepare
    for dn in lo.searchDn(filter=filter, base=self.base):
AttributeError: 'LDAP_Search' object has no attribute 'base'

Role: domaincontroller_master
Comment 1 Florian Best univentionstaff 2022-02-21 14:59:44 CET
Can't reproduce.

# udm settings/extended_attribute create --position 'cn=custom attributes,cn=univention,l=school,l=dev' --set module=users/user --set name=irgendwas --set syntax=fooobar --set shortDescription=irgendwas --set ldapMapping=irgendwas --set objectClass=irgendwas
# curl http://Administrator:univention@10.200.27.80/univention/command/udm/values -X POST -H 'Content-Type: application/json' -d '{"flavor": "navigation", "options": {"objectType": "users/user", "objectProperty": "irgendwas"}}

# curl https://Administrator:univention@demo.univention.de/univention/command/udm/values -X POST -H 'Content-Type: application/json' -d '{"flavor": "navigation", "options": {"objectType": "mail/folder", "objectProperty": "mailDomain"}}'