PHPackages                             strathmore/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. strathmore/ldap-auth

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

strathmore/ldap-auth
====================

Reusable LDAP authentication package for Laravel projects

v1.0.0(5mo ago)04MITPHPPHP ^8.1

Since Jan 30Pushed 5mo agoCompare

[ Source](https://github.com/benedictgodhana/strathmore-ldap-auth)[ Packagist](https://packagist.org/packages/strathmore/ldap-auth)[ RSS](/packages/strathmore-ldap-auth/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Strathmore LDAP Auth
====================

[](#strathmore-ldap-auth)

A reusable Laravel package for LDAP authentication and auto-fetching user data via web services.
Supports staff and students trees, multiple LDAP connections, and optional auto-creation of local users.

---

Features
--------

[](#features)

- LDAP authentication for staff and students
- Configurable LDAP connections and trees
- Optional web-service fetch for user data
- Laravel-ready: Service Provider + Facade
- Config-driven, works across Laravel 10 and 11
- Easy installation, Spatie-style DX

---

Installation
------------

[](#installation)

Require the package via Composer (local dev or Packagist):

```
composer require strathmore/ldap-auth
```

Publish the configuration file:

```
php artisan vendor:publish --tag=ldap-config
```

---

.env Example
------------

[](#env-example)

Add these variables to your `.env` file and adjust as needed:

```
LDAP_HOSTS=ldap.example.com
LDAP_BIND_DN=cn=admin,dc=example,dc=com
LDAP_BIND_PASSWORD=secret
LDAP_PORT=389
LDAP_BASE_DN=dc=example,dc=com
LDAP_TIMEOUT=5
LDAP_SSL=false
LDAP_TLS=false

LDAP_STAFF_DOMAIN=staff.example.com
LDAP_STAFF_TREE=ou=staff,dc=example,dc=com
LDAP_STUDENT_DOMAIN=students.example.com
LDAP_STUDENT_TREE=ou=students,dc=example,dc=com

STUDENT_DATASERVICE_URL=https://api.example.com/students/
STAFF_DATASERVICE_URL=https://api.example.com/staff/
```

---

Author
------

[](#author)

**Benedict Godhana**

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance73

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

154d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/113383009?v=4)[benedictgodhana](/maintainers/benedictgodhana)[@benedictgodhana](https://github.com/benedictgodhana)

---

Top Contributors

[![benedictgodhana](https://avatars.githubusercontent.com/u/113383009?v=4)](https://github.com/benedictgodhana "benedictgodhana (2 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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