Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Yii2 Usuario LDAP Changelog
===========================

1.4.0 [Unreleased]
-------------------------

- **BREAKING CHANGE**: Migrated from adldap2/adldap2 to directorytree/ldaprecord
- Updated all LDAP operations to use LdapRecord API
- Updated configuration format to match LdapRecord requirements
- Updated documentation and examples

1.3.11 Apr 05, 2024
-------------------------

Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,35 @@ Add in your config (`config/web.php` for the basic app):
'ldapConfig' => [
'hosts' => ['host.example.com'],
'base_dn' => 'dc=mydomain,dc=local',
'account_prefix' => 'cn=',
'account_suffix' => ',ou=Users,dc=mydomain,dc=local',
'use_ssl' => true,
'username' => 'bind_username',
'password' => 'bind_password',
'port' => 389,
'use_ssl' => true,
'use_tls' => false,
],
'createLocalUsers' => TRUE,
'defaultRoles' => ['standardUser'],
'syncUsersToLdap' => TRUE,
'secondLdapConfig' => [
'hosts' => ['host.example.com'],
'base_dn' => 'dc=mydomain,dc=local',
'account_prefix' => 'cn=',
'account_suffix' => ',ou=Users,dc=mydomain,dc=local',
'username' => 'bind_username',
'password' => 'bind_password',
'port' => 389,
'use_ssl' => true,
'use_tls' => false,
],
'allowPasswordRecovery' => FALSE,
'passwordRecoveryRedirect' => ['/controller/action']
],
//...
]
```
adapting parameters to your setup.
adapting parameters to your setup.

#### Configuration options

* **ldapConfig**: all the parameters for connecting to LDAP server as documented in [Adldap2](https://adldap2.github.io/Adldap2/#/setup?id=options)
* **ldapConfig**: all the parameters for connecting to LDAP server as documented in [LdapRecord](https://ldaprecord.com/docs/core/v2/configuration)
* **createLocalUsers**: if TRUE when a user successfully authenticate against the first LDAP server is created locally in Yii database. If FALSE a default users with ID specified in `defaultUserId` is used for the session
* **defaultRoles**: if specified the role/s will be assigned to the users created by the extension. Can be set as an array. Default to FALSE
* **secondLdapConfig**: if specified this is used as LDAP server for sync the local users, if not specified this is equal to _ldapConfig_
Expand Down
Loading