dolibarr/htdocs
Sébastien Luttringer 3f13dacacd Use login from LDAP attribute
The LDAP authentication function (check_user_password_ldap) returns the login
sting when authentication is successful.

The current implementation always return the provided login to the check function,
instead of LDAP entry login field (as defined in the LDAP_FIELD_LOGIN).

This is problematic when you expect user to log with several login, like mail,
or the LDAP login doesn't match the dolibarr database.

For example, the following filter allows users auth with mail and cn ldap fields:
$dolibarr_main_auth_ldap_filter = '(&(objectClass=person)(|(cn=%1%)(mail=%1%)))';
but, dolibarr will not find the user when mail is provided.

This patch returns the $ldap->login when LDAP_FIELD_LOGIN is configured.
2021-01-12 12:07:36 +01:00
..
accountancy Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-09 02:34:43 +01:00
adherents Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-02 16:19:08 +01:00
admin Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-06 20:23:07 +01:00
api Clean code 2020-12-24 02:33:11 +01:00
asset Debug v13 2020-12-09 17:14:35 +01:00
asterisk
barcode
blockedlog Fix warning 2020-12-13 14:36:00 +01:00
bom Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into 13.0 2021-01-06 21:33:59 +01:00
bookmarks bookmark 2020-12-16 20:15:48 +01:00
cashdesk
categories Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2020-12-29 16:56:39 +01:00
collab
comm Fix vardump 2021-01-07 12:43:15 +01:00
commande Merge pull request #15153 from FHenry/dev_new_add_desc_when_select_product 2021-01-07 11:19:53 +01:00
compta Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-09 02:34:43 +01:00
conf Clean code. Removed phpexcel library. 2020-12-13 16:27:44 +01:00
contact FIX : Fix the display on the 'contact by default' on the contact card 2021-01-06 11:07:25 +01:00
contrat Merge pull request #15153 from FHenry/dev_new_add_desc_when_select_product 2021-01-07 11:19:53 +01:00
core Use login from LDAP attribute 2021-01-12 12:07:36 +01:00
cron Show timeone 2020-12-15 10:43:19 +01:00
custom
datapolicy
dav
debugbar
delivery doxygen 2020-12-05 23:53:55 +01:00
don Merge pull request #15585 from cfoellmann/fckeditor-notes 2020-12-27 15:06:35 +01:00
ecm Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2020-12-29 16:56:39 +01:00
emailcollector Fix emailcollector edition 2020-12-22 17:03:57 +01:00
expedition Fix the source object may have been modified with corrupted data. 2021-01-08 01:56:23 +01:00
expensereport Merge pull request #15585 from cfoellmann/fckeditor-notes 2020-12-27 15:06:35 +01:00
exports Look and fell v13 2020-12-16 16:06:33 +01:00
externalsite
fichinter Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-02 17:02:08 +01:00
fourn Merge pull request #15153 from FHenry/dev_new_add_desc_when_select_product 2021-01-07 11:19:53 +01:00
ftp
holiday FIX for php 8 2020-12-23 19:16:25 +01:00
hrm Merge pull request #15678 from frederic34/fk_element 2020-12-07 22:31:08 +01:00
imports Look and fell v13 2020-12-16 16:06:33 +01:00
includes Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into fix_php_8.0 2021-01-05 09:41:52 +01:00
install Fix field size 2021-01-08 00:52:38 +01:00
intracommreport FIX for php 8 2020-12-23 19:16:25 +01:00
langs Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-09 02:34:43 +01:00
loan Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-05 11:30:14 +01:00
mailmanspip
margin NEW: Add total in agent margin & uniformize code 2021-01-01 06:14:05 +01:00
modulebuilder Update myobject_list.php 2021-01-06 20:54:20 +01:00
mrp fix mos api update 2020-12-11 19:02:13 +01:00
multicurrency Fix add missing token 2020-12-16 15:16:23 +01:00
opensurvey Merge pull request #15706 from FHenry/develop 2020-12-08 17:54:08 +01:00
paybox
paypal Debug v13 2020-12-07 11:42:35 +01:00
printing
product Fix the source object may have been modified with corrupted data. 2021-01-08 01:56:23 +01:00
projet Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into 13.0 2020-12-27 19:40:03 +01:00
public Fix action after payment on member registration 2020-12-18 19:53:33 +01:00
reception Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-05 11:30:14 +01:00
recruitment Fix label 2020-12-14 10:25:31 +01:00
resource FIX for php 8 2020-12-23 19:16:25 +01:00
salaries Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into 2020-12-30 13:23:50 +01:00
societe Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-07 10:40:58 +01:00
stripe Fix action after payment on member registration 2020-12-18 19:53:33 +01:00
supplier_proposal Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into 13.0 2021-01-02 17:01:03 +01:00
support
takepos Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into 13.0 2021-01-02 15:49:30 +01:00
theme Merge branch 'develop' of https://github.com/dolibarr/dolibarr into 2021-01-05 01:48:25 +01:00
ticket Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into 13.0 2021-01-04 12:17:59 +01:00
user Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-09 02:34:43 +01:00
variants Fixing style errors. 2020-12-21 17:49:49 +00:00
webservices Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-02 16:19:08 +01:00
website Fix management of hreflang 2020-12-19 13:44:15 +01:00
zapier FIX for php 8 2020-12-23 19:16:25 +01:00
.gitignore
cache.manifest
document.php Scrutinizer Auto-Fixes 2020-12-01 01:41:19 +00:00
favicon.ico
filefunc.inc.php Prepare v14 2020-12-27 19:03:13 +01:00
index.php Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into fix_php_8.0 2021-01-05 09:41:52 +01:00
main.inc.php Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 13.0 2020-12-27 16:53:15 +01:00
master.inc.php FIX master must be after session_start but dol_getprefix must be before 2020-12-05 13:26:58 +01:00
opcachepreload.php
robots.txt
security.txt
viewimage.php