Hi Stéphane,
My version of Dolibarr was 9.0.1
I upgraded to 10.0.7 then to 11.0.3.
I am using MariaDB-10.2 @ port 3312
The root directory for Dolibarr is: /var/www/html/dolibarr
/
I added your part of the config to /var/www/html/dolibarr/htdocs/conf/conf.php
My PHP is automatically set to PHP-7.2 with the file /etc/profile.d/activer-php72.sh
COMMAND:
php /var/www/html/dolibarr/scripts/user/sync_users_ldap2dolibarr.php commitiferror --server=localhost -y
RESULT:
commitiferror --server=localhost -y
***** sync_users_ldap2dolibarr.php (11.0.3) pid=5439 *****
Mails sending disabled (useless in batch mode)
----- Synchronize all records from LDAP database:
host=localhost
port=389
login=uid=admin,ou=People,dc=directory,dc=nh
pass=**********
DN to extract=ou=People,dc=directory,dc=nh
Filter=(&(objectClass=inetOrgPerson))
----- To Dolibarr database:
type=mysqli
host=127.0.0.1
port=3312
login=usager_dolibarr
database=DolibarrBD
----- Options:
commitiferror=1
excludeuser=
Mapped LDAP fields=uid,cn,sn,givenname,telephonenumber,facsimiletelephonenumber,mobile,mail
UserCreate # admin: login=admin, fullname=admin --> Created user id=3 login=admin
UserCreate # drukpa: login=drukpa, fullname=drukpa --> Created user id=4 login=drukpa
UserUpdate # michelandre: login=michelandre, fullname=michelandre --> Updated user id=1 login=michelandre
Pas d'erreur, on valide
I was able to login with admin and drukpa without problem.
Dolibarr is the second most downloaded document after Odoo.
For me, Dolibarr is way much better than Odoo.
Thank you very much for this howto,
Michel-André