All Projects → mindcruzer → Symfony2 Ldap Auth

mindcruzer / Symfony2 Ldap Auth

Licence: other
a bundle for Symfony2 that provides authentication with directory services via LDAP

Labels

Projects that are alternatives of or similar to Symfony2 Ldap Auth

Translation
The Translation component provides tools to internationalize your application.
Stars: ✭ 6,196 (+123820%)
Mutual labels:  symfony
Cocorico
👐 Cocorico is an open source marketplace solution for services and rentals. More information right here: https://www.cocorico.io/en/ 🚀 Cocorico is also available in an off-the-shelf SaaS package, check out https://www.hatch.li to launch your platform today. 😍 We are hiring (telecommute welcome 🏡): https://www.welcometothejungle.com/en/companies/cocorico/jobs/candidatures-spontanees#apply
Stars: ✭ 765 (+15200%)
Mutual labels:  symfony
Polyfill Php80
This component provides functions unavailable in releases prior to PHP 8.0.
Stars: ✭ 798 (+15860%)
Mutual labels:  symfony
Symfony Cmf
Meta package tying together all the key packages of the Symfony CMF project.
Stars: ✭ 742 (+14740%)
Mutual labels:  symfony
Apache Pack
A Symfony Pack for Symfony Apache
Stars: ✭ 753 (+14960%)
Mutual labels:  symfony
Php Pm
PPM is a process manager, supercharger and load balancer for modern PHP applications.
Stars: ✭ 6,358 (+127060%)
Mutual labels:  symfony
Recipes
Symfony Recipes Repository
Stars: ✭ 724 (+14380%)
Mutual labels:  symfony
Api Platform
Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
Stars: ✭ 7,144 (+142780%)
Mutual labels:  symfony
Symfony 5 Es Cqrs Boilerplate
Symfony 5 DDD ES CQRS backend boilerplate
Stars: ✭ 759 (+15080%)
Mutual labels:  symfony
Idea Php Symfony2 Plugin
IntelliJ IDEA / PhpStorm Symfony Plugin
Stars: ✭ 797 (+15840%)
Mutual labels:  symfony
En Marche.fr
Le site principal du mouvement En Marche !
Stars: ✭ 743 (+14760%)
Mutual labels:  symfony
Thelia
Thelia is an open source tool for creating e-business websites and managing online content. Repo containing the new major version (v2)
Stars: ✭ 752 (+14940%)
Mutual labels:  symfony
Sylius
Open Source eCommerce Platform on Symfony
Stars: ✭ 6,598 (+131860%)
Mutual labels:  symfony
Alicebundle
A Symfony bundle to manage fixtures with Alice and Faker.
Stars: ✭ 742 (+14740%)
Mutual labels:  symfony
Gluggibundle
Modular layout preview system, to be used within a symfony app.
Stars: ✭ 5 (+0%)
Mutual labels:  symfony
Symfony Docker
A Docker-based installer and runtime for Symfony. Install: download and `docker-compose up`.
Stars: ✭ 732 (+14540%)
Mutual labels:  symfony
Pim Community Dev
[Community Development Repository] The open source Product Information Management (PIM)
Stars: ✭ 774 (+15380%)
Mutual labels:  symfony
Var Dumper
The VarDumper component provides mechanisms for walking through any arbitrary PHP variable. It provides a better dump() function that you can use instead of var_dump().
Stars: ✭ 6,833 (+136560%)
Mutual labels:  symfony
Regex Assert Symfony
Common Regex to use with Assert in Symfony's entity
Stars: ✭ 5 (+0%)
Mutual labels:  symfony
Crm Application
OroCRM - an open-source Customer Relationship Management application.
Stars: ✭ 785 (+15600%)
Mutual labels:  symfony

Symfony2 LDAP Authentication Provider

NOTE: This is for Symfony >= 2.1.x. There is a 2.0.x branch if you need it.

This bundle contains a custom authentication provider for authenticating users with directory services (ex. Active Directory) via LDAP. It will connect to directory services and attempt a bind operation with the provided username and password. This bundle will not act as an authorization provider or a user provider. It will only provide authentication. The rest is up to you.

Prerequisites

Configuration

Getting this up and running should only steal a minute of your life.

Step #1

Clone and then copy the LDAP directory from this repo to src/.

Step #2

Install the bundle by adding a reference in your app/AppKernel.php file like so:

class AppKernel extends Kernel
{
   public function registerBundles()
   {
        $bundles = array(
            ...
            new LDAP\LDAPAuthBundle\LDAPAuthBundle(),
            ...
        );
    );
    ...
}
Step #3

Set up your security firewall.

For example:

// app/config/security.yml

security:
    firewalls:
        ...
        secured_area:
            ldap_login: 
                login_path: /login
                check_path: /login_check
            pattern: ^/admin
            logout:
                path:   /logout
                target: /login
        ...
Step #4

You'll need to go to src/LDAP/LDAPAuthBundle/Security/Authentication/Provider/LDAPAuthenticationProvider.php and enter your server's domain name in this line $ldap_conn = ldap_connect(/*'your.server.here'*/);. This is clearly an undesirable place to do this, but I never got around to moving this setting to security.yml, and I don't use Symfony anymore. However, if you check out the Symfony docs I believe it shows you how.

You're done.

Extending

If you want to do a little more than a bind operation to authenticate the user, you can add some custom code to src/LDAP/LDAPAuthBundle/Security/Authentication/Provider/LDAPAuthenticationProvider.php.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].