Sync to ucs was not successfull, save rejected

Hello!

I installed UCS following oxpedia.org/wiki/index.php?title … _Connector

All looks good and green in web interface but below, in logs, horror

I have this error in /var/log/unnivention/connector.log

3.08.2010 16:01:26,372 LDAP (ERROR ): Unknown Exception during sync_to_ucs
13.08.2010 16:01:26,372 LDAP (ERROR ): – for details see /var/log/univention/connector-tracebacks.log –
13.08.2010 16:01:26,373 LDAP (WARNING): sync to ucs was not successfull, save rejected
13.08.2010 16:01:26,373 LDAP (WARNING): object was: CN=John Doe,OU=Users School,DC=school,DC=zeus
13.08.2010 16:01:31,447 LDAP (WARNING): __set_values: no ldap_attribute defined in <univention.connector.attribute instance at 0x7fa7082aae60>, we unset the key lastname in the ucs-object
13.08.2010 16:01:31,448 LDAP (WARNING): __set_values: The attributes for lastname have not been removed as it represents a mandatory attribute
13.08.2010 16:01:31,471 LDAP (WARNING): __set_values: no ldap_attribute defined in <univention.connector.attribute instance at 0x7fa7082aafc8>, we unset the key city in the ucs-object
13.08.2010 16:01:31,520 LDAP (WARNING): __set_values: no ldap_attribute defined in <univention.connector.attribute instance at 0x7fa7082aaea8>, we unset the key organisation in the ucs-object
13.08.2010 16:01:31,594 LDAP (WARNING): __set_values: no ldap_attribute defined in <univention.connector.attribute instance at 0x7fa7082aaf80>, we unset the key street in the ucs-object
13.08.2010 16:01:31,619 LDAP (WARNING): __set_values: no ldap_attribute defined in <univention.connector.attribute instance at 0x7fa7082b5560>, we unset the key postcode in the ucs-object
13.08.2010 16:01:31,667 LDAP (WARNING): __set_values: no ldap_attribute defined in <univention.connector.attribute instance at 0x7fa7082b5050>, we unset the key profilepath in the ucs-object
13.08.2010 16:01:31,689 LDAP (WARNING): __set_values: no ldap_attribute defined in <univention.connector.attribute instance at 0x7fa7082aaf38>, we unset the key mailPrimaryAddress in the ucs-object
13.08.2010 16:01:31,689 LDAP (ERROR ): Unknown Exception during sync_to_ucs
13.08.2010 16:01:31,689 LDAP (ERROR ): – for details see /var/log/univention/connector-tracebacks.log –
13.08.2010 16:01:31,690 LDAP (WARNING): sync to ucs was not successfull, save rejected
13.08.2010 16:01:31,690 LDAP (WARNING): object was: CN=tribu01,OU=Users School,DC=school,DC=zeus
13.08.2010 16:01:31,717 LDAP (WARNING): __set_values: no ldap_attribute defined in <univention.connector.attribute instance at 0x7fa7082aae18>, we unset the key firstname in the ucs-object
13.08.2010 16:01:31,718 LDAP (ERROR ): Unknown Exception during sync_to_ucs
13.08.2010 16:01:31,718 LDAP (ERROR ): – for details see /var/log/univention/connector-tracebacks.log –
13.08.2010 16:01:31,719 LDAP (WARNING): sync to ucs was not successfull, save rejected
13.08.2010 16:01:31,719 LDAP (WARNING): object was: CN=John Doe,OU=Users School,DC=school,DC=zeus

and in /var/log/unnivention/connector-tracebacks.log

Fri Aug 13 16:06:30 2010
Unknown Exception during sync_to_ucs
Traceback (most recent call last):
File “/usr/lib/python2.4/site-packages/univention/connector/init.py”, line 973, in sync_to_ucs
result = self.add_in_ucs(property_type, object, module, position)
File “/usr/lib/python2.4/site-packages/univention/connector/init.py”, line 859, in add_in_ucs
self.__set_values(property_type,object,ucs_object, modtype=‘add’)
File “/usr/lib/python2.4/site-packages/univention/connector/init.py”, line 821, in __set_values
set_values(self.property[property_type].post_attributes[attr_key])
File “/usr/lib/python2.4/site-packages/univention/connector/init.py”, line 804, in set_values
ucs_object[ucs_key] = []
File “/usr/lib/python2.4/site-packages/univention/admin/handlers/init.py”, line 191, in setitem
raise univention.admin.uexceptions.valueRequired, _(‘The property %s is required’) % self.descriptions[key].short_description
valueRequired: The property Primary E-Mail Address is required

Fri Aug 13 16:06:30 2010
Unknown Exception during sync_to_ucs
Traceback (most recent call last):
File “/usr/lib/python2.4/site-packages/univention/connector/init.py”, line 973, in sync_to_ucs
result = self.add_in_ucs(property_type, object, module, position)
File “/usr/lib/python2.4/site-packages/univention/connector/init.py”, line 859, in add_in_ucs
self.__set_values(property_type,object,ucs_object, modtype=‘add’)
File “/usr/lib/python2.4/site-packages/univention/connector/init.py”, line 811, in __set_values
set_values(self.property[property_type].attributes[attr_key])
File “/usr/lib/python2.4/site-packages/univention/connector/init.py”, line 804, in set_values
ucs_object[ucs_key] = []
File “/usr/lib/python2.4/site-packages/univention/admin/handlers/init.py”, line 191, in setitem
raise univention.admin.uexceptions.valueRequired, _(‘The property %s is required’) % self.descriptions[key].short_description
valueRequired: The property First name is required

And in /var/log/univention/connector-status.log

Sync 39 rejected changes from AD to UCS
restored 0 rejected changes

Any thoughts?

Hello,

[quote=“soportequer”]
valueRequired: The property Primary E-Mail Address is required

valueRequired: The property First name is required[/quote]

this looks like you are trying to sync users that don’t have an e-mail address and first name set. Please add those attributes and, the connector should then be able to sync the users.

Regards,
Janis Meybohm

the problem is that the users do have an email field…

only that in Windows AD 2003, the field for email is not mail as univention expects but it is userPrincipalName

where do i have to put this field instead of expected mail so that univention can pick it up? do i have to restart something, another command of any kind?

also, i found out that univention connector looks up in cn=Users how can i set it up to look up in OU=OTHERPLACE which contains users from different CNs?

thanks guys for any input

Hello,

did you do the steps mentioned in Step 4: Required AD Attributes?
If you are using MS Exchange you maybe have to maintain the email fiels manually or expand the AD-Connector mapping so that the mail-adress is generated from userPrincipalName - but this is not trivial.

The AD-Connector should sync all users. If they are placed within OU=OTHERPLACE, OU=OTHERPLACE should be created in UCS LDAP.

You will some details about the AD-Connector within our documentation: univention.de/en/download/do … mentation/

Regards,
Janis Meybohm

Mastodon