Line 41:
Line 41:
= Usage =
= Usage =
For synchronization from Dolibarr to LDAP, once your setup is done, there is nothing to do. Each time you make a change in Dolibarr, the change is also saved into your LDAP.
For synchronization from Dolibarr to LDAP, once your setup is done, there is nothing to do. Each time you make a change in Dolibarr, the change is also saved into your LDAP.
+
+
If you experience an error during LDAP synchronization, all Dolibarr transaction will be canceled and an error message will be shown.
+
Note that LDAP returned error message in PHP are not always accurate. So if message is not clear enough to help you to know what's wrong, take a look a chapter "Errors".
You can however run initial or mass synchronization with some scripts (See chapter Scripts).
You can however run initial or mass synchronization with some scripts (See chapter Scripts).
+
+
= Errors =
+
Because error message returned by PHP function are not accurate, if you experience a message and don't known what's wrong, this is what you can do:
+
* Just after error occurs, a file '''ldap/temp/ldapinput.in''' is created into your dolibarr documents directory. Go into this directory.
+
* Open file, you will find into first lines (as comments), the full ldap command you can run from command line to emulate the same action that PHP send to LDAP server.
+
* Run this command (you need to have ldap utilities (ldapadd, ldapmodify and ldapdelete installed on your computer).
+
* Analyze the result. You should get more information on error reason.
= Scripts =
= Scripts =