PHPackages                             nitecon/zf2-ldap-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nitecon/zf2-ldap-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

nitecon/zf2-ldap-auth
=====================

Zend Framework 2 Basic LDAP Authentication Module

1.0.2(13y ago)24956New BSD LicensePHPPHP &gt;=5.3.3

Since Mar 28Pushed 11y ago3 watchersCompare

[ Source](https://github.com/Nitecon/Zf2LdapAuth)[ Packagist](https://packagist.org/packages/nitecon/zf2-ldap-auth)[ Docs](https://github.com/Nitecon/Zf2LdapAuth)[ RSS](/packages/nitecon-zf2-ldap-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Zf2LdapAuth
===========

[](#zf2ldapauth)

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

Features
--------

[](#features)

- Login callback to store ldap data in a function of your choice.
- Fully functional login form
- Fully customizable ldap configuration based on Zend\\Ldap
- Multi LDAP server configurations based on Zend\\Ldap server array

Setup
-----

[](#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
-----------------------

[](#addditional-information)

The module uses by default /user/login &amp; /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
-----------

[](#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.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 90% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

4789d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41178212476488fd2bf9164bebb3b66655442f64c746a4b11dc9fa0cc822215d?d=identicon)[Nitecon](/maintainers/Nitecon)

---

Top Contributors

[![nitecon](https://avatars.githubusercontent.com/u/665977?v=4)](https://github.com/nitecon "nitecon (9 commits)")[![GillesCrebassa](https://avatars.githubusercontent.com/u/6390468?v=4)](https://github.com/GillesCrebassa "GillesCrebassa (1 commits)")

---

Tags

authAuthenticationzendZendFrameworkldapzf2Zend Frameworkzf2-ldap

### Embed Badge

![Health badge](/badges/nitecon-zf2-ldap-auth/health.svg)

```
[![Health](https://phpackages.com/badges/nitecon-zf2-ldap-auth/health.svg)](https://phpackages.com/packages/nitecon-zf2-ldap-auth)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M344](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M247](/packages/league-oauth2-server)[jeremykendall/slim-auth

Authorization and authentication for the Slim Framework using ZF2 Authentication and Acl components

24824.6k](/packages/jeremykendall-slim-auth)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M67](/packages/auth0-auth0-php)[kreait/firebase-tokens

A library to work with Firebase tokens

24040.8M14](/packages/kreait-firebase-tokens)[lorenzoferrarajr/lfj-opauth

LfjOpauth is a Zend Framework 2 module that enables support for many authentication providers through the Opauth framework.

2915.4k](/packages/lorenzoferrarajr-lfj-opauth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
