Download the PHP package lcstudios/ldap-bundle without Composer

On this page you can find all versions of the php package lcstudios/ldap-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ldap-bundle

==== LCStudiosLdapBundle

This bundle is forked from DapsBundle which is based on the pull request accepted by Symfony2 for LDAP support. While it has been accepted, some of us would like to use this code sooner than the version of Symfony natively supporting it will provide.

This project is intended to take these code changes and silo them into a bundle so that we can easily extend these changes for our own purposes.

The fork fixes some issues in DapsBundle, which needs to be copied into the src folder and does not allow being configured from the central config. Role handling has been changed, too.

Documentation

LdapBundle Setup Instructions

To setup the LdapBundle, follow these steps:

  1. Install via composer
  2. Modify app/config/security.yml and add your ldap user provider

    security:
        providers:
            lc_studios_ldap:
                id: lc_studios_ldap_user_provider

    also tell Symfony how to encode passwords. For example

    security:
        encoders:
            LCStudios\LdapBundle\Security\User\LdapUser: plaintext

    You can now also ensure that you define the parts of your app that will be under LDAP protection. e.g

    lc_studios_ldap:
        host: 'ldap://example.com'
        port: 389
        uid: 'uid'
        authenticated_role: 'ROLE_USER'
        base_dn: 'cn=users,dc=example,dc=com'
        bind_user:
            dn: 'cn=ldapbind,cn=serviceusers,dc=example,dc=com'
            password: ldapbinduserpw

    Add your LDAP server specific configs. e.g

    secured_area:
        pattern:    ^/
        form-login-ldap: true
  3. Setup your SecurityController, routes and templates as detailed in the Security Chapter of the Symfony Documentation.

  4. Add Bundle to AppKernel.

Every authenticated user gets the role defined as 'authenticated_role'. Additionally they get roles determined by OUs and groups, e.g.:


All versions of ldap-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/dependency-injection Version >2.3
symfony/security Version >2.3
symfony/config Version >2.3
symfony/security-bundle Version >2.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lcstudios/ldap-bundle contains the following files

Loading the files please wait ....