Download the PHP package nitecon/zf2-ldap-auth without Composer

On this page you can find all versions of the php package nitecon/zf2-ldap-auth. 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 zf2-ldap-auth

Zf2LdapAuth

Zend Framework 2 Basic LDAP Authentication Module provides an easy to use LDAP authentication system.

Features

Setup

The following steps are necessary to get this module working

Following steps are necessary to get this module working (considering a zf2-skeleton or very similar application)

  1. Run php composer.phar require nitecon/zf2-ldap-auth:1.*
  2. Add Zf2LdapAuth to the enabled modules list
  3. Copy the config/ldap.config.php file to your ApplicationRoot/config/autoload/ldap.config.php And modify as required for your installation. Please make sure to move passwords for ldap servers etc out of the ldap.conf.php and into your local.php so that you do not store these files in your vcs.
  4. Create an optional callback function to store your data / initialize a session
  5. If using a callback function create 2 static methods (setData / destroyData) in a class of your choice, and add the class name to the callback_class option. Remember to set use_callback_function to true.

Addditional Information

The module uses by default /user/login & /user/logout in the router configuration to trigger login.

To test the application (once previous steps are completed) Just point your browser to your application and set the URI to /user/login. It also includes a logout page /user/logout To effectively use /user/logout, you must set a callback function so the cata can be destroyed properly.

Final notes

Please make sure to read through the ldap.conf.php file comments and make sure that you fully understand what the options do.

Enjoy and if you find bugs or issues please add pull requests for the module.


All versions of zf2-ldap-auth with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
zendframework/zendframework Version 2.*
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 nitecon/zf2-ldap-auth contains the following files

Loading the files please wait ...