Commit Graph

21 Commits

Author SHA1 Message Date
Jannik Radix
55a1efcb4e Add search bind support, fix group_identifier typo, fix gidNumber query
- Add search_bind_enabled/search_bind_dn/search_bind_password config
- Support both group_indentifier (original typo) and group_identifier
- Skip gidNumber query when attribute is empty
- Use searchLdap for all search/group queries
2026-02-24 22:03:14 +01:00
J.P. Pasnak
a3650e1477 Fix issue #28 - Grav username defaults to the LDAP users full DN
Additional fix assignment operator bug in error handling
2025-11-22 21:30:07 -06:00
Vilius Šumskas
2e60a75118 Stop event propagation on empty username 2023-03-08 22:41:16 +02:00
Vilius Šumskas
7dc154b503 Allow to login if LDAP user's DN contains double quotes
Patch fixes an issue where LDAP users with double quotes or other special characters in their DN could not login if a group filter is set.
2020-11-08 17:15:15 +02:00
chhemme
d667a1b3d9 Ignore authentication requests with empty username
When using login-ldap with the admin panel I get an LDAP exception because the query is invalid. It looks like the plugin sends an empty login request when loading the admin login page. This causes an invalid query.
2020-03-23 16:43:09 +01:00
Miguel Pereira
97ee29eb37 Update login-ldap.php
In some rare occasions, the ldap setup can return null when reading the $attributes[$group_indentifier].

By checking that it isn't empty before shifting the array, we prevent the following error:

* array_shift expected parameter to be array, null given
2018-11-19 10:55:56 +01:00
Llewellyn Marriott
48cfc34a84 added ability to search for groups with DN of bound user 2018-05-28 15:32:33 +10:00
Andy Miller
98205c1167 Added group_indentifier option 2018-05-17 15:28:32 -06:00
Andy Miller
de19fcfe65 detect and log invalid uid mapping throwing attribute error 2018-05-16 16:03:49 -06:00
Djamil Legato
47dcea06c7 Force loading the lowercase version of a user filename. 2018-05-16 12:24:50 -07:00
Djamil Legato
af5f5888ca Fixed issue with merge of access levels 2018-05-16 12:24:25 -07:00
Djamil Legato
ffe5f6a5a0 Implemented support for LDAP Blacklist Fields 2018-05-16 12:24:08 -07:00
Andy Miller
b92c654aa1 add a ‘provider’ attribute to help identify auth type 2018-05-16 09:26:04 -06:00
Djamil Legato
07898de052 Added support for groups and map to grav access level 2018-05-10 19:14:40 -07:00
Andy Miller
d1ae2e7012 made search_dn & group_dn optional. Added group_query 2018-05-10 05:12:42 -06:00
Andy Miller
8c247788ed Merge branch 'develop' of github.com:trilbymedia/grav-plugin-login-ldap into develop 2018-05-09 19:41:45 -06:00
Andy Miller
b1b04b727e updated docs and such 2018-05-09 19:41:40 -06:00
Djamil Legato
4c53e53d22 Added groups support and mapping 2018-05-09 18:15:40 -07:00
Andy Miller
f2f6676b7e cleanup 2018-05-08 17:39:09 -06:00
Andy Miller
21cd46df14 many improvements 2018-05-08 17:07:29 -06:00
Andy Miller
d4d885a874 Initial commit of LDAP plugin 2018-05-07 05:40:25 -06:00