Easily integrate LDAP (Lightweight Directory Access Protocol) authentication into Concrete CMS with this package. Connect multiple LDAP servers for user authentication with flexible configuration options, including user and group synchronization.
✔ LDAP Authentication
✔ Group Mapping
✔ Multiple LDAP Servers
✔ User Management
✔ Task Scheduler
🔹 Software Requirements
🔹 LDAP Environment Knowledge
🔹 Security Considerations
1️⃣ Install the “Macareux LDAP Authentication” package.
2️⃣ Configure a directory at /dashboard/system/md_ldap
.
3️⃣ Enable authentication at /dashboard/system/registration/authentication
.
4️⃣ Adjust settings and activate the authentication type.
5️⃣ Authenticate using your LDAP directory credentials.
/dashboard/system/md_ldap
.WARNING
).📌 Automatically assign Concrete CMS roles based on LDAP group membership. If a user is removed from an LDAP group, they will also be removed from the corresponding Concrete CMS group during the next sync.
md_ldap_on_directory_init
Triggered when a directory object is initialized.
Events::addListener('md_ldap_on_directory_init', function($event) {
$event->getDirectoryObject()->additionalUserFields[] = 'employeeID';
});
md_ldap_on_directory_user_sync
Triggered after an LDAP user syncs.
Events::addListener('md_ldap_on_directory_user_sync', function($event) {
$ldapEmployeeID = $event->getDirectoryUserObject()->getLdapUser()['employeeid'][0];
$event->getDirectoryUserObject()->getConcreteUser()->setAttribute('employee_id', $ldapEmployeeID);
});
md_ldap_on_directory_user_delete
Triggered after an LDAP user is deleted.
Events::addListener('md_ldap_on_directory_user_delete', function($event) {
$event->getDirectoryUserObject()->getConcreteUser()->clearAttribute('employee_id');
});
User and group sync occurs automatically during LDAP authentication.
System & Settings -> Automation -> Tasks
../concrete/bin/concrete5.bat c5:task md_ldap_user_sync
./concrete/bin/concrete5 c5:task md_ldap_user_sync
samaccountname
as “Remote Auth Username Attribute” in Dashboard -> System & Settings -> LDAP Directories
.By following this guide, you can seamlessly integrate LDAP authentication into Concrete CMS for secure and efficient user management.