Hi all,

  I want to share something that I think is not well documented.

When you build your SQL statement to sync data with OpenLDAP, the column you will use as your UID must be named UID if you want to use the "-c all" option.

I created entries in LDAP with an email address as the UID. I first build the SQL statement with "select * from mytable", and then build the DN with column "courriel". However, LSC was deleting all entries with "-c all" option.

From what I understand, LSC matches the #uid# of the SQL statement with the field "uid" in LDAP. So when LSC tries to math #courriel# in LDAP, it fails and then replace #courriel# by a NULL value in the SQL query. Result: it deletes everything.

I don't know if this is a well known pitfall/behavior, but I wanted to share this in case it could help someone.

  Regards,

  Maxime
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to