Bug 35953

Summary: Traceback when using UNC path as POSIX "Home share path" (Bad search filter)
Product: UCS Reporter: Janis Meybohm <meybohm>
Component: UMC - UsersAssignee: Stefan Gohmann <gohmann>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: best, gohmann, walkenhorst
Version: UCS 3.2   
Target Milestone: UCS 3.2-3-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=33928
https://forge.univention.org/bugzilla/show_bug.cgi?id=28383
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): Error handling
Max CVSS v3 score:

Description Janis Meybohm univentionstaff 2014-09-18 09:57:17 CEST
Ticket#: 2014091721000101

Steps to reproduce:

* Create user
* Select home share (account tab)
* Add UNC path (e.g. "\\some.server.name\some\path") as "Home share path"
* Save
* Open user

  File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 447, in _thread
    obj = module.get( ldap_dn )
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 213, in wrapper_func
    raise LDAP_ConnectionError( str( e ) )

LDAP_ConnectionError: Bad search filter



Workaround:
Remove "automountInformation" attribute from user:

# ldapmodify -D "cn=admin,$(ucr get ldap/base)" -y /etc/ldap.secret <<__EOF__
dn: <USER DN>
changetype: modify
delete: automountInformation
__EOF__
Comment 1 Stefan Gohmann univentionstaff 2014-10-15 14:16:19 CEST
\ is now escaped.

UCS 3.2-3: r54451
YAML: r54454
UCS 4.0: r54452
Comment 2 Felix Botner univentionstaff 2014-11-05 14:46:29 CET
OK - 3.2-3
OK - 4.0-0
OK - YAML
Comment 3 Janek Walkenhorst univentionstaff 2014-11-07 15:38:37 CET
http://errata.univention.de/ucs/3.2/237.html
Comment 4 Florian Best univentionstaff 2014-12-02 17:13:32 CET
*** Bug 35975 has been marked as a duplicate of this bug. ***
Comment 5 Florian Best univentionstaff 2015-08-31 08:27:02 CEST
Reported again, 3.2-2 errata230 (Borgfeld)