What I am searching for is the ability for a new user to log in using their LDAP credentials (username and password) and Dolibarr to automatically create them in the Dolibarr user table.
Rgds
Petras
What I am searching for is the ability for a new user to log in using their LDAP credentials (username and password) and Dolibarr to automatically create them in the Dolibarr user table.
Rgds
Petras
For login, you must edit the conf.php file.
You will find example of entry to use into file conf.php.example
Then for synchro, enable LDAP module and setup it to synchro Dolibarr -> LDAP for users and groups. Don’t forget to also setup parameters in sub tabs.
I have changed conf.php to what I believe are the correct LDAP settings (We have LDAP working with WordPress).
For Dolibarr to automatically create the user wouldn’t the direction be LDAP -> Dolibarr?
Rgds
Petras
I understand that the LDAP interface does not automatically create the user in Dolibarr (Perhaps in the future?).
I have, however, got the LDAP interface to authenticate the user but I get the following warnings on logging on:
Warning: ldap_errno(): 21 is not a valid ldap link resource in /data/webs/au.edu.ac.moodle.vet/dolibarr/htdocs/lib/ldap.class.php on line 331
Warning: ldap_error(): 21 is not a valid ldap link resource in /data/webs/au.edu.ac.moodle.vet/dolibarr/htdocs/lib/ldap.class.php on line 332
Warning: ldap_errno(): 21 is not a valid ldap link resource in /data/webs/au.edu.ac.moodle.vet/dolibarr/htdocs/lib/ldap.class.php on line 1139
Warning: ldap_error(): 21 is not a valid ldap link resource in /data/webs/au.edu.ac.moodle.vet/dolibarr/htdocs/lib/ldap.class.php on line 1139
Currently I have commented out these lines without any other problems.
Rgds
Petras
Which version of dolibarr do you use ?
Version 3.1.1
Rgds
Petras
When you are on the LDAP setup, tab user, does the “Test synchronize” works correctly ?
Note that version 3.2 will be released soon (currently in beta) and some LDAP bugs were solved.
Test LDAP connection results:
TCP connect to LDAP server successful (Server=Ac-dc-03.southerncross.edu.au, Port=389)
Connect/Authentificate to LDAP server sucessfull (Server=Ac-dc-03.southerncross.edu.au, Port=389, Admin=CN=acadmin,OU=IT,OU=Staff,DC=southerncross,DC=edu,DC=au, Password=******)
LDAP server configured for version 3
Hope that helps
Petras
Is this the result from test on tab “General” (LDAP etup)or from test on tab “Users” (LDAP etup too, but next tab) ?
Please sir tell how can i connect Dolibarr with wordpress
The LDAP test results were from the first tab (Global Parameters).
I cannot see any “test” buttons on the other LDAP setup tabs.
Rgds
Petras
the test button will be at the bottom of user tab.
unfortunately, my active directory does not work, but I can pass the global test.
[Test a LDAP search]
LDAP search for user:
search: *
userDN: testCompany.local
useridentifier: testUser
required_fields: testUser
=> 0 records
s12321 wrote:
This is working, after I’ve spent an hour to test out all the details below.
LDAP search for user:
search: *
userDN: ou=users,dc=testCompany,dc=local
useridentifier: cn=testUser
required_fields: cn=testUser
Good luck everyone. Cheers