dbp/relay-core-connector-ldap-bundle
AuthorizationDataProviderInterface implementation for LDAP, aligning well with systems requiring centralized identity management (e.g., Active Directory, OpenLDAP). This fits architectures where user roles/permissions are managed externally via LDAP rather than a local database.php-ldap) or libraries like ldap/ldap. Ensure these are available in the target environment (e.g., Docker, shared hosting).memberOf for group checks). The bundle’s documentation must clarify how to:
cn=admin → ROLE_ADMIN).ldap package or packages like spatie/laravel-ldap achieve this with less risk?AuthorizationDataProvider and bind it to Laravel’s container.LdapAuthService::getUserRoles()).AuthEvent), map them to Laravel’s Events or Observers.php-ldap is enabled in php.ini or Dockerfile.class LdapAuthService extends ServiceProvider {
public function register() {
$this->app->singleton(AuthorizationDataProviderInterface::class, function () {
return new DbpLdapProvider(config('ldap'));
});
}
}
Cache::remember) around LDAP calls to reduce latency.Auth::user()->roles)..env or Vault).composer.json to avoid breaking changes.ldapsearch).Log::debug($ldap->getEntries())).ext-ldap’s persistent connections).memberOf vs. nested group lookups).| Failure | Impact | Mitigation |
|---|---|---|
| LDAP Server Down | Auth failures, locked users | Cache roles with TTL, degraded auth mode |
| Schema Changes | Broken role mappings | Schema validation in CI/CD |
| Credential Leak | Security breach | Use .env + Laravel’s encryption |
| High Latency | Poor UX for global users | Edge caching (e.g., Varnish) |
uid).ldap-mock).How can I help you explore Laravel packages today?