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

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

mehmetkilic/laravel-auth-ldap
=============================

08PHP

Since Apr 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/MehmetKilic/laravel-auth-ldap)[ Packagist](https://packagist.org/packages/mehmetkilic/laravel-auth-ldap)[ RSS](/packages/mehmetkilic-laravel-auth-ldap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel LDAP Authentication
===========================

[](#laravel-ldap-authentication)

Laravel Package LDAP Authentication.

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

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require": {
        "mehmetkilic/laravel-auth-ldap": "dev-master"
    }
}
```

```
$ composer update
```

Usage
-----

[](#usage)

```
use MehmetKilic\LdapAuth\LdapAuth as LdapAuth;

$connect = LdapAuth::getConnect("server_url", "server_api_key", "email_or_username", "password");
if( $connect->status == 200 ){
  // if the login is successful
  return "Success";
}
else{
  return "Error";
}

```

Methods
-------

[](#methods)

```
getConnect
ldapConnect
convertUser
```

Support
-------

[](#support)

Laravel 5.\*

getConnect ( Türkçe )
---------------------

[](#getconnect--türkçe-)

```
Fonksiyon 4 adet parametre alır,
1 - LDAP Sunucu adresi
2 - LDAP Sunucu API KEY değeri
3 - Kullanıcı LDAP kullanıcı adı
4 - Kullanıcı LDAP şifresi

Gönderimi sağlanan 4 parametre doğrultusunda LDAP bağlantısını sağlamak
adına format düzenlenir ve bilgiler ldapConnect metoduna gönderilir.

```

ldapConnect ( Türkçe )
----------------------

[](#ldapconnect--türkçe-)

```
Fonksiyon 5 adet parametre alır,
1 - LDAP Sunucu adresi
2 - İstek için header bilgisi
3 - İstek için body bilgisi
4 - Kullanıcı LDAP kullanıcı adı
5 - Kullanıcı LDAP şifresi

Tüm bu bilgileri bizim tekrardan girmemize gerek yok, getConnect
metodu bizim yerimize bu bilgileri ilgili formata zaten
soktu ve isteği yerimize gerçekleştirdi. Aslında sistemin en önemli
noktası da bu metod. Çünkü LDAP sunucusuna istek bu metod
üzerinden yapılıyor, eğer bilgilerimiz doğru ise sistem
kullanıcı bilgilerini döndürecektir.Bilgiler yanlış ise "false"
dönecektir değerimiz.

```

convertUser ( Türkçe )
----------------------

[](#convertuser--türkçe-)

```
Fonksiyon 3 adet parametre alır,
1 - Kullanıcı bilgileri
2 - Kullanıcı LDAP kullanıcı adı
3 - Kullanıcı LDAP şifresi

Kullanıcı girişi gerçekleşmişse bu fonksiyonumuz en son çalışır ve
Ldap sunucusu tarafından gönderilen kullanıcı bilgilerini Laravelde
rahat kullanmamız için uyarlar.Bir diğer görevi ise Laravel kendi
authentication yönetimine sahip bir sistemdir, ve bu sistem dışarıdan
login işlemlerini desteklemez driver geliştirilmediği sürece.
Bu noktada eğer kullanıcı başarılı bir oturum açma işlemi
gerçekleştirmişse onu kendi veritabanımızda kayıt edip ondan
sonra o kullanıcıya oturum açıyoruz.

Bu noktada bu kullanıcıya bağımlı işlemlerin nasıl yönetileceği
noktasında ise LDAP tarafında kullanıcının standart bir
employeeID değeri mevcut database üzerinde ki işlemleri bu
benzersiz id ye göre yapmak mantıklı olacaktır.

```

Licence
-------

[](#licence)

MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/abc13561e3b8a3a44f6caf7a5978ccc08573b2be887fcff2978e135a79fc08fa?d=identicon)[MehmetKilic](/maintainers/MehmetKilic)

---

Top Contributors

[![MehmetKilic](https://avatars.githubusercontent.com/u/3511191?v=4)](https://github.com/MehmetKilic "MehmetKilic (9 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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