Commit Graph

25 Commits

Author SHA1 Message Date
Mario Voigt 9550a4fd2f Update 'plugin.php' 2023-04-12 12:00:04 +02:00
Mario Voigt bda3ae89e8 fix logout bug 2023-04-12 11:51:00 +02:00
Mario Voigt fd049a8928 Some syntax adjustments to make ldap_bind work 2023-03-16 18:25:13 +01:00
Matt Visnovsky 5d85267e0f YOURLS version 1.8.1
Updated so this plugin functions with latest YOURLS version
2021-05-24 15:23:26 -06:00
Marcos de Oliveira c7a35f3ea9 Allow users to define advanced LDAP search filters. 2021-04-22 16:54:26 -03:00
Mario Hros 412c079b03 fix php warning
yourls_get_option default value is false unless other default is specified
2020-08-05 13:49:26 +02:00
K3A c4ad990ab2
Fix ldapauth_authorized_admins logic
ldapauth_is_valid_user must return boolean type. Thanks @pjaydev
2019-10-29 17:56:16 +00:00
Patrice Eber 2f6aa596fe
Empty to Not defined for constants 2018-06-18 15:52:48 +02:00
K3A f562a093f8
Update plugin.php
null check fix
2018-02-01 20:51:27 +01:00
K3A 2560973949
Update plugin.php
Fix unsupported direct access to $ydb
2018-01-29 21:27:23 +01:00
Brooke Hedrick b8064a482b
Added Active Directory LDAP hostname lookup
If you are using Active Directory, you likely have multiple LDAP servers.  Which servers your Windows clients use is controlled by a DNS entry for sites and services.  This DNS entry looks like _ldap._tcp.corporate._sites.yourdomain.com .  This code change allows for the LDAP host name to be looked up automatically based on the DNS entry.  This way if your Active Directory architecture changes (different Domain Controllers / LDAP servers ), you won't need to update this plugin's configuration.  This is only enabled if you set the new LDAPAUTH_DNS_SITES_AND_SERVICES configuration value.  Please see documentation in the README.md.
2017-11-15 13:58:53 -06:00
Dave 4b771eee8b Whitespace fix 2017-03-20 10:14:42 +10:00
Dave 9932e85775 Updated groups check
Groups check now uses membership attribute on user object directly
2017-03-20 10:12:35 +10:00
K3A 5a0e0dccfe spelling fix 2017-02-13 22:10:52 +01:00
Henrique de Andrade 0950958232 Update plugin.php
Adding again the validation that allow more than one admin group
2016-11-18 15:55:56 -02:00
Henrique de Andrade 1c92562cb8 Update plugin.php
Fixing the group authentication and adding scope option.
2016-11-18 10:54:11 -02:00
Chris Hastie 25747fc14a Make cache optional. Update README 2016-07-22 20:57:41 +01:00
Chris Hastie 7c1f6be501 No need to try checking for LDAPAUTH_USERNAME_FIELD without lowercasing. PHP manual confirms array index is always lower case 2016-07-22 10:43:03 +01:00
Chris Hastie a7fe07614a Add cache of LDAP users, stored as option in YOURLS database. Add ability to bind using current user (useful for AD/Samba) 2016-07-22 10:23:11 +01:00
Dave b0ea24440f Now handles multiple admin groups
Added in support for multiple admin groups using a ; delimited array in LDAPAUTH_GROUP_REQ
2015-06-23 13:17:25 +10:00
davoaust 0912a2460f Added automatic user adding
Now has option to add new LDAP users to YourLS config to avoid issues where the user doesn't exist.
Removed debug line accidentally let in
2015-05-19 11:38:17 +10:00
davoaust f554c10762 Support group auth, privileged account & attribute filter
Added support for group auth, 2 new settings:
- LDAPAUTH_GROUP_ATTR
- LDAPAUTH_GROUP_REQ

If they're not set don't check group membership.

Added support for using a privileged account to do the user search. 2 new settings:
- LDAPAUTH_SEARCH_USER
- LDAPAUTH_SEARCH_PASS

Limited returned attributes to only the ones we need.
2015-05-18 15:15:33 +10:00
K3A c6d6c3a52c Update plugin.php
Explicit switch to LDAP 3 protocol, fix for YOURLS 1.7
2014-01-28 13:08:39 +01:00
root 8a619851e7 prefix 2013-08-25 20:00:04 +02:00
root 5100027998 plugin 2013-08-25 16:18:57 +02:00