Bug 42470 - error in connector.log - failed in post_con_modify_functions
error in connector.log - failed in post_con_modify_functions
Status: RESOLVED DUPLICATE of bug 11658
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 4.1
amd64 Mac OS X 10.1
: P5 normal (vote)
: ---
Assigned To: Connector maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-22 11:40 CEST by Alexander Sucker
Modified: 2016-09-28 18:11 CEST (History)
3 users (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
connector.log (10.26 MB, text/plain)
2016-09-28 16:25 CEST, Alexander Sucker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Sucker 2016-09-22 11:40:14 CEST
22.09.2016 11:24:32,611 LDAP        (ERROR  ): failed in post_con_modify_functions
22.09.2016 11:24:32,611 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/connector/__init__.py", line 1309, in sync_to_ucs
    f(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/connector/ad/__init__.py", line 167, in group_members_sync_to_ucs
    return connector.group_members_sync_to_ucs(key, object)
  File "/usr/lib/pymodules/python2.7/univention/connector/ad/__init__.py", line 1847, in group_members_sync_to_ucs
    ucs_dn = self._object_mapping(key, {'dn':member_dn,'attributes':member_object})['dn']
  File "/usr/lib/pymodules/python2.7/univention/connector/__init__.py", line 1564, in _object_mapping
    object[dntype] = self.dn_mapped_to_base(object[dntype], self.lo.base)
  File "/usr/lib/pymodules/python2.7/univention/connector/__init__.py", line 409, in dn_mapped_to_base
    if dn.endswith(base):
AttributeError: 'NoneType' object has no attribute 'endswith'
Comment 1 Stefan Gohmann univentionstaff 2016-09-28 06:20:46 CEST
Please activate debug level 4 for the connector, restart the connector, wait a few minutes and attach the connector.log file.
 ucr set connector/debug/level=4
 /etc/init.d/univention-ad-connector restart
 sleep 300
Attach /var/log/univention/connector.log.
Comment 2 Alexander Sucker 2016-09-28 16:25:51 CEST
Created attachment 8046 [details]
connector.log

please find the log attached
Comment 3 Florian Best univentionstaff 2016-09-28 18:11:26 CEST
This is Bug #11658.
Prior to the traceback one can see user like:
28.09.2016 16:12:59,248 LDAP        (INFO   ): _ignore_object: Do not ignore CN=D'Attoma\, Alex,CN=Users,DC=ort,DC=firma,DC=de

And the whole logilfe contains a lot of these filter errors:

28.09.2016 16:12:59,859 LDAP        (INFO   ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/connector/ad/__init__.py", line 1879, in group_members_sync_to_ucs
    ad_dn = self._object_mapping(k, ucs_object, 'ucs')['dn']
  File "/usr/lib/pymodules/python2.7/univention/connector/__init__.py", line 1571, in _object_mapping
    object=function(self, object, dn_mapping_stored, isUCSobject=(object_type == 'ucs'))
  File "/usr/lib/pymodules/python2.7/univention/connector/ad/__init__.py", line 407, in user_dn_mapping
    return samaccountname_dn_mapping(connector, given_object, dn_mapping_stored, isUCSobject, 'user', u'samAccountName', u'posixAccount', 'uid', u'user')
  File "/usr/lib/pymodules/python2.7/univention/connector/ad/__init__.py", line 326, in samaccountname_dn_mapping
    compatible_modstring('(&(objectclass=%s)(samaccountname=%s))'%(ocad,value)))
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 918, in search_ext_s
    return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 860, in _apply_method_s
    return func(self,*args,**kwargs)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 552, in search_ext_s
    msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 548, in search_ext
    timeout,sizelimit,
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
    result = func(*args,**kwargs)
FILTER_ERROR: {'info': "0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of:\n\t'CN=Users,DC=ort,DC=firma,DC=de'\n", 'matched': 'CN=Users,DC=ort,DC=firma,DC=de', 'desc': 'Bad search filter'}

*** This bug has been marked as a duplicate of bug 11658 ***