Commit Graph

59 Commits

Author SHA1 Message Date
Jannik Radix
6155c1fad2 Add search bind support, fix group_identifier typo, fix empty gidNumber query
- Add search_bind_enabled/search_bind_dn/search_bind_password to allow
  using a dedicated LDAP account for user and group searches. This is
  needed when regular LDAP users lack search permissions (common with
  restrictive ACLs on OpenLDAP).
- Support both group_indentifier (original) and group_identifier config
  keys, falling back to 'cn' if neither is set.
- Skip the gidNumber-based primary group query when the attribute is
  empty, avoiding broken LDAP filters on non-posixAccount setups.
2026-02-24 22:29:04 +01:00
Andy Miller
403350df9b Merge pull request #35 from Linegod/patch-1
Fix issue #28 - Grav username defaults to the LDAP users full DN
2025-11-23 17:58:09 +00: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
Andy Miller
a3f0a2cf88 Merge tag '1.1.0' into develop
Release v1.1.0
2024-04-16 11:16:53 -06:00
Andy Miller
6e6c48ddc8 Merge branch 'release/1.1.0' 2024-04-16 11:16:53 -06:00
Andy Miller
26750b931a prepare for release 2024-04-16 11:16:43 -06:00
Andy Miller
100ae5923a updated changelog 2024-04-16 11:15:09 -06:00
Andy Miller
93fe1c0ede Merge pull request #31 from ViliusS/fix-php81-error
Fix plugin installation under PHP 8.1
2024-04-16 11:11:03 -06:00
Vilius Šumskas
f705d41d8c Fix plugin installation under PHP 8.1 2024-04-16 13:21:43 +03:00
Andy Miller
0c214e4ed8 Merge pull request #19 from ViliusS/update-ldap-documentation
Add LDAP configuration example for Active Directory
2023-03-08 15:20:22 -07:00
Vilius Šumskas
f25765e36f Better grammar logic 2023-03-08 23:41:31 +02:00
Andy Miller
a921973929 Merge pull request #27 from ViliusS/stop-propagation
Stop event propagation on empty username
2023-03-08 13:49:37 -07:00
Vilius Šumskas
2e60a75118 Stop event propagation on empty username 2023-03-08 22:41:16 +02:00
Andy Miller
3998a5063e Merge tag '1.0.2' into develop
Release v1.0.2
2020-11-16 10:44:58 -07:00
Andy Miller
a347daad79 Merge branch 'release/1.0.2' 2020-11-16 10:44:57 -07:00
Andy Miller
255c44093d prepare for release 2020-11-16 10:44:50 -07:00
Andy Miller
2ec90d7a05 Merge pull request #18 from ViliusS/fix/ldap-escape-group-filter
Allow to login if LDAP user's DN contains double quotes
2020-11-09 10:40:23 -07:00
Vilius Šumskas
bcdd625f13 gramar fix 2020-11-08 17:58:08 +02:00
Vilius Šumskas
1539449b51 Add LDAP configuration example for Active Directory
Also, add missing documentation regarding map_dn parameter and make it clear that referrals should be disabled for all new Windows versions.
2020-11-08 17:51:02 +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
Andy Miller
6f88298c94 Merge pull request #14 from chhemme/patch-1
Ignore authentication requests with empty username
2020-03-23 09:50:45 -06: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
Djamil Legato
30edba01ed Merge pull request #8 from kyed/patch-1
Update login-ldap.php (fix: array_shift expected parameter to be array, null given)
2018-11-29 08:33:41 -08: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
Djamil Legato
724fe87316 Merge tag '1.0.1' into develop
Release 1.0.1
2018-06-11 15:19:32 -07:00
Djamil Legato
ae335956c2 Merge branch 'release/1.0.1' 2018-06-11 15:19:31 -07:00
Djamil Legato
4c08ca335e Preparing for 1.0.1 release 2018-06-11 15:19:14 -07:00
Djamil Legato
749c633d1b Updated changelog 2018-06-11 15:18:24 -07:00
Djamil Legato
24ddb591ea Merge pull request #4 from theo2thief/develop
Added ability to search for groups with DN of bound user
2018-06-07 10:33:58 -07: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
50891c22ec Merge branch 'release/1.0.0' 2018-05-18 16:49:33 -06:00
Andy Miller
a5656aac9f Merge tag '1.0.0' into develop
Release v1.0.0
2018-05-18 16:49:33 -06:00
Andy Miller
d8dca931a2 prepare for release 2018-05-18 16:49:25 -06:00
Andy Miller
642b501605 Fix a lang string 2018-05-17 17:26:59 -06:00
Andy Miller
98205c1167 Added group_indentifier option 2018-05-17 15:28:32 -06:00
Andy Miller
52117ef793 updated version 2018-05-16 18:19:41 -06:00
Andy Miller
de19fcfe65 detect and log invalid uid mapping throwing attribute error 2018-05-16 16:03:49 -06:00
Djamil Legato
a6def9336f Added example LDAP Data page 2018-05-16 12:33:46 -07: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
Andy Miller
d4dad1014a group should be array by default 2018-05-16 09:25:42 -06:00
Andy Miller
b9820baa50 updated README.md 2018-05-11 13:43:09 -06:00
Andy Miller
c34321fd1e Merge branch 'develop' of github.com:trilbymedia/grav-plugin-login-ldap into develop 2018-05-11 13:03:29 -06:00
Andy Miller
17ca689c71 Lang translations 2018-05-11 13:03:24 -06:00
Djamil Legato
e7766c61ea Added default value in config for access groups 2018-05-11 09:56:45 -07:00
Djamil Legato
979da05c3d Typos 2018-05-11 09:32:08 -07: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