{"id":15293761,"url":"https://github.com/robrogers3/laraldap-auth","last_synced_at":"2026-02-07T18:35:19.523Z","repository":{"id":62536632,"uuid":"88454138","full_name":"robrogers3/laraldap-auth","owner":"robrogers3","description":"Drop in replacement for Laravel authentication against your ldap service.","archived":false,"fork":false,"pushed_at":"2019-12-20T02:50:00.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T09:32:52.128Z","etag":null,"topics":["laravel","laravel-authentication","ldap","ldap-authentication"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robrogers3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-17T01:12:14.000Z","updated_at":"2019-12-20T02:50:02.000Z","dependencies_parsed_at":"2022-11-02T16:01:00.752Z","dependency_job_id":null,"html_url":"https://github.com/robrogers3/laraldap-auth","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/robrogers3/laraldap-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrogers3%2Flaraldap-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrogers3%2Flaraldap-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrogers3%2Flaraldap-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrogers3%2Flaraldap-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robrogers3","download_url":"https://codeload.github.com/robrogers3/laraldap-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrogers3%2Flaraldap-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29203785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-authentication","ldap","ldap-authentication"],"created_at":"2024-09-30T16:53:15.343Z","updated_at":"2026-02-07T18:35:19.463Z","avatar_url":"https://github.com/robrogers3.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laraldap-auth: Authenticate against your Ldap Server\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n\n\n\nDrop in replacement for Laravel authentication against your ldap service.\n\nSupporting OpenLDAP.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require robrogers3/laraldap-auth\n```\n\n\n## Usage\nAdd this to app.php in the services providers list\n\n```php\nrobrogers3\\laradauth\\LdapAuthServiceProvider::class,\n```\n\n\nUpdate config/auth.php\n\n``` php\n    'providers' =\u003e [\n        'users' =\u003e [\n           'driver' =\u003e 'ldap',\n           'model' =\u003e App\\User::class,\n           'host' =\u003e 'host.example..com',\n           'domain' =\u003e 'example.com',\n           'base_dn' =\u003e 'cn=users,dc=cs-ds1-1,dc=home,dc=example,dc=com',\n           'user_dn' =\u003e 'uid'\n        ],\n    ],\n\n```\n\nCreate your database, and specify database connection options in .env and/or config/database.php\n\nUse Artisan to make auth and migrate\n\nRun:\n```bash\nphp artisan make:auth\n\n```\n\nIf you are using Bootstrap 3 then you can publish the views to prevent user registration.\n```bash\nphp artisan migrate\n```\n\n```bash\nphp artisan vendor:publish --force #force cause we override those in make auth.\n```\n\nYou may be done. Go ahead and login.\n\n## Using AES to encrypt passwords\n\nThe LDAP passwords are saved in the User table. Normally they are encrypted wih BCrypt.\n\nThere is now AES support so you can safely exchange information from other applications that require an ldap login for authentication.\n\nWith AES and a shared key, you can encrypt and decrypt passwords on either side if you share the same AES key.\n\nHere's the changes you need to make:\n\n1. Add the packages HashServiceProvider to config/app.php\n\n```php\n        /*\n         * Package Service Providers...\n         */\n        robrogers3\\laradauth\\LdapAuthServiceProvider::class,\n        robrogers3\\laradauth\\HashServiceProvider::class,\n```\n\nUpdate the config/hashing.php file like so.\n\n```php\n    'driver' =\u003e 'aes',\n\n    //more config here\n\n    'aes' =\u003e [\n        'key' =\u003e 'shared-secret-key'\n    ]\n```\n\nUpdate your user database migration and add this column:\n\n```php\n            $table-\u003estring('user_name');\n```\n\nThen update your services.php config file, like so:\n\n```php\n    'ldap' =\u003e [\n        'create-user-name' =\u003e true\n    ]\n```\n\nNow you should be good to go.\n\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test me not\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email robrogers@me.com instead of using the issue tracker.\n\n## Credits\n\n- [Rob Rogers][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/robrogers3/laraldap-auth.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/robrogers3/laradauth/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/robrogers3/laraldap-auth.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/robrogers3/laraldap-auth.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/robrogers3/laraldap-auth.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/robrogers3/laraldap-auth\n[link-travis]: https://travis-ci.org/robrogers3/laraldap-auth\n[link-scrutinizer]: https://scrutinizer-ci.com/g/robrogers3/laradauth/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/robrogers3/laraldap-auth\n[link-downloads]: https://packagist.org/packages/robrogers3/laraldap-auth\n[link-author]: https://github.com/robrogers3\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobrogers3%2Flaraldap-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobrogers3%2Flaraldap-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobrogers3%2Flaraldap-auth/lists"}