dolibarr/htdocs/core
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
..
ajax update 2020-12-14 22:40:47 +03:00
boxes Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-09 02:34:43 +01:00
class Merge 2 exclusive options into 1 2021-01-07 12:39:51 +01:00
data
db Fix regression 2021-01-04 12:08:14 +01:00
filemanagerdol update 2020-12-14 22:40:47 +03:00
js modify animation speed of tooltips 2020-12-30 21:18:12 +01:00
lib Merge pull request #15153 from FHenry/dev_new_add_desc_when_select_product 2021-01-07 11:19:53 +01:00
login Use login from LDAP attribute 2021-01-12 12:07:36 +01:00
menus Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into fix_php_8.0 2021-01-05 09:41:52 +01:00
modules Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop 2021-01-06 20:48:23 +01:00
tpl Merge 2 exclusive options into 1 2021-01-07 12:39:51 +01:00
triggers Merge pull request #15318 from bafbes/abb120353 2021-01-07 11:17:33 +01:00
actions_addupdatedelete.inc.php action=confirm_deleteline ... method_exists has object as first parameter 2020-12-14 23:17:58 +03:00
actions_builddoc.inc.php update 2020-12-14 22:40:47 +03:00
actions_changeselectedfields.inc.php update 2020-12-14 22:40:47 +03:00
actions_comments.inc.php update 2020-12-14 22:40:47 +03:00
actions_dellink.inc.php
actions_extrafields.inc.php update 2020-12-14 22:40:47 +03:00
actions_fetchobject.inc.php update 2020-12-14 22:40:47 +03:00
actions_lineupdown.inc.php
actions_linkedfiles.inc.php update 2020-12-14 22:40:47 +03:00
actions_massactions.inc.php Fixing style errors. 2020-12-24 14:06:55 +00:00
actions_printing.inc.php update 2020-12-14 22:40:47 +03:00
actions_sendmails.inc.php remove unused code 2021-01-02 09:35:57 +01:00
actions_setmoduleoptions.inc.php update 2020-12-14 22:40:47 +03:00
actions_setnotes.inc.php update 2020-12-14 22:40:47 +03:00
antispamimage.php
commonfieldsinexport.inc.php update 2020-12-14 22:40:47 +03:00
customreports.php update 2020-12-14 22:40:47 +03:00
datepicker.php
doxygen.php
extrafieldsinexport.inc.php update 2020-12-14 22:40:47 +03:00
get_info.php update 2020-12-14 22:40:47 +03:00
get_menudiv.php update 2020-12-14 22:40:47 +03:00
index.html
photos_resize.php update 2020-12-14 22:40:47 +03:00
search_page.php
search.php
tools.php
website.inc.php update 2020-12-14 22:40:47 +03:00