After doing a bit more research I rewrote the objectClass dataset to:
<dataset>
<name>objectClass</name>
<policy>KEEP</policy>
<createValues>
<string>"top"</string>
<string>"person"</string>
<string>"organizationalPerson"</string>
<string>"inetOrgPerson"</string>
</createValues>
</dataset>
I am now getting the following error:
Oct 25 13:42:40 - ERROR - Error while adding entry cn=Son
Goku,cn=admin,ou=OpenLDAP,dc=openldap,dc=local in directory
:javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object];
remaining name 'cn=Son Goku,cn=admin,ou=OpenLDAP,dc=openldap,dc=local'
I first thought it wants the User to already exist (which would counter the
reason I am doing this), but after creating the user on OpenLDAP with cn=Son
Goku it still shows the same error.
Sorry for asking questions I keep answering my self.
Kind Regards,
Colin Thorn
-----Ursprüngliche Nachricht-----
Von: Thorn, Colin
Gesendet: Mittwoch, 25. Oktober 2017 13:06
An: [email protected]
Betreff: AW: [lsc-users] lsc config
I managed to get error 65 solved.
It is now telling me the objectClass value #0 is invalid per syntax.
I copied the code for this data set from:
https://lsc-project.org/documentation/tutorial/openldaptoactivedirectory
It seems this may be specific for AD, is it different for OpenLDAP?
I am using:
<dataset>
<name>objectClass</name>
<policy>KEEP</policy>
<createValues>
<string>"user"</string>
<string>"organizationalPerson"</string>
<string>"person"</string>
<string>"top"</string>
</createValues>
</dataset>
Kind Regards,
Colin
-----Ursprüngliche Nachricht-----
Von: Thorn, Colin
Gesendet: Mittwoch, 25. Oktober 2017 11:07
An: [email protected]
Betreff: AW: [lsc-users] lsc config
Thanks, I managed to get rid of another bunch of errors, but once again I am
stuck with the following one:
Oct 25 11:04:06 - ERROR - Error while adding entry cn=Rainer
Zufall,cn=admin,ou=OpenLDAP,dc=openldap,dc=local in directory
:javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - no
objectClass attribute]; remaining name 'cn=Rainer
Zufall,cn=admin,ou=OpenLDAP,dc=openldap,dc=local'
Oct 25 11:04:06 - ERROR - Error while synchronizing ID cn=Rainer
Zufall,cn=admin,ou=OpenLDAP,dc=openldap,dc=local: java.lang.Exception:
Technical problem while applying modifications to the destination
If I understand this correctly, I am missing the ObjectClass attribute. But I
cannot find it in either the AD nor the OpenLDAP.
Kind Regrads,
Colin Thorn
-----Ursprüngliche Nachricht-----
Von: lsc-users [mailto:[email protected]] Im Auftrag von
Clément OUDOT
Gesendet: Dienstag, 24. Oktober 2017 17:52
An: [email protected]
Betreff: Re: [lsc-users] lsc config
Le 24/10/2017 à 17:33, Soisik Froger a écrit :
> I would not use getDatasetValueById which return an array of values
> but getDatasetFirstValueById which return a single value.
Indeed, but the first function is getDatasetValuesById, and not
getDatasetValueById, that' why there was the error 'not a function'.
Anyway, Soisik is right, you need to use getDatasetFirstValueById which will
return the first value of the attribute.
--
Clément OUDOT
Consultant en logiciels libres, Expert infrastructure et sécurité Savoir-faire
Linux
137 boulevard de Magenta - 75010 PARIS
Blog: http://sflx.ca/coudot
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users