Active directory problem

I have the this issue in active directory and half of my accounts which are in AD are not imported.

27.01.2018 10:01:38,212 LDAP (WARNING): sync to ucs was not successfull, save rejected
27.01.2018 10:01:38,212 LDAP (WARNING): object was: CN=سید مهرداد محروقی,OU=Iranserver,OU=Clients,OU=GreenWeb,DC=greenweb,DC=local
27.01.2018 10:01:38,212 LDAP (WARNING): sqlite: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
27.01.2018 10:01:38,213 LDAP (WARNING): sqlite: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
27.01.2018 10:01:38,229 LDAP (PROCESS): sync to ucs: [ user] [ add] uid=a.mohamadabadi,ou=design,ou=clients,ou=greenweb,dc=greenweb,dc=local
27.01.2018 10:01:38,631 LDAP (ERROR ): Unknown Exception during sync_to_ucs
27.01.2018 10:01:38,631 LDAP (ERROR ): Traceback (most recent call last):
File “/usr/lib/pymodules/python2.7/univention/connector/init.py”, line 1342, in sync_to_ucs
result = self.add_in_ucs(property_type, object, module, position)
File “/usr/lib/pymodules/python2.7/univention/connector/init.py”, line 1185, in add_in_ucs
return ucs_object.create() and self.__modify_custom_attributes(property_type, object, ucs_object, module, position)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 381, in create
dn = self._create(response=response, serverctrls=serverctrls)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 1036, in _create
self.lo.add(self.dn, al, serverctrls=serverctrls, response=response)
File “/usr/lib/pymodules/python2.7/univention/admin/uldap.py”, line 482, in add
raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: No such object

Hey,

looks like two different issues here; the first being that non-ASCII characters in CNs throw those sqlite warnings, and the second being that the uid=a.mohamadabadi object cannot be synced.

Can you please post the output of the following commands:

  1. univention-ldapsearch -s base -b ou=design,ou=clients,ou=greenweb,dc=greenweb,dc=local
  2. univention-ldapsearch -s base -b ou=greenweb,dc=greenweb,dc=local

Thanks.

Kind regards
mosu

here are the outputs.

root@srv-owncloud:/home/Administrator# univention-ldapsearch -s base -b ou=design,ou=clients,ou=greenweb,dc=greenweb,dc=local

extended LDIF

LDAPv3

base <ou=design,ou=clients,ou=greenweb,dc=greenweb,dc=local> with scope baseObject

filter: (objectclass=*)

requesting: ALL

Design, Clients, GreenWeb, greenweb.local

dn: ou=Design,ou=Clients,ou=GreenWeb,dc=greenweb,dc=local
objectClass: top
objectClass: univentionObject
objectClass: organizationalUnit
ou: Design
univentionObjectType: container/ou

search result

search: 3
result: 0 Success

numResponses: 2

numEntries: 1

===============================================
root@srv-owncloud:/home/Administrator# univention-ldapsearch -s base -b ou=greenweb,dc=greenweb,dc=local

extended LDIF

LDAPv3

base <ou=greenweb,dc=greenweb,dc=local> with scope baseObject

filter: (objectclass=*)

requesting: ALL

GreenWeb, greenweb.local

dn: ou=GreenWeb,dc=greenweb,dc=local
objectClass: top
objectClass: univentionObject
objectClass: organizationalUnit
ou: GreenWeb
univentionObjectType: container/ou

search result

search: 3
result: 0 Success

numResponses: 2

numEntries: 1

root@srv-owncloud:/home/Administrator#

I have to install owncloud itself without appliance to solve the problem.

Mastodon