{"id":21638779,"url":"https://github.com/novactive/novaezldapauthenticatorbundle","last_synced_at":"2025-04-11T16:51:13.339Z","repository":{"id":57028653,"uuid":"135302232","full_name":"Novactive/NovaeZLdapAuthenticatorBundle","owner":"Novactive","description":"Provide an LDAP authenticator for eZPlatform","archived":false,"fork":false,"pushed_at":"2022-04-14T09:08:11.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-25T12:53:33.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Novactive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-29T13:43:03.000Z","updated_at":"2021-08-13T17:29:03.000Z","dependencies_parsed_at":"2022-08-23T16:20:27.518Z","dependency_job_id":null,"html_url":"https://github.com/Novactive/NovaeZLdapAuthenticatorBundle","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novactive%2FNovaeZLdapAuthenticatorBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novactive%2FNovaeZLdapAuthenticatorBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novactive%2FNovaeZLdapAuthenticatorBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novactive%2FNovaeZLdapAuthenticatorBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Novactive","download_url":"https://codeload.github.com/Novactive/NovaeZLdapAuthenticatorBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442984,"owners_count":21104311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-25T04:11:37.878Z","updated_at":"2025-04-11T16:51:13.316Z","avatar_url":"https://github.com/Novactive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Novactive eZ LDAP Authenticator Bundle\n\n----\n\nThis repository is what we call a \"subtree split\": a read-only copy of one directory of the main repository. \nIt is used by Composer to allow developers to depend on specific bundles.\n\nIf you want to report or contribute, you should instead open your issue on the main repository: https://github.com/Novactive/Nova-eZPlatform-Bundles\n\nDocumentation is available in this repository via `.md` files but also packaged here: https://novactive.github.io/Nova-eZPlatform-Bundles/master/LdapAuthenticatorBundle/README.md.html\n\n----\n\n[![Downloads](https://img.shields.io/packagist/dt/novactive/ezldapauthenticatorbundle.svg?style=flat-square)](https://packagist.org/packages/novactive/ezldapauthenticatorbundle)\n[![Latest version](https://img.shields.io/github/release/Novactive/NovaeZLdapAuthenticatorBundle.svg?style=flat-square)](https://github.com/Novactive/NovaeZLdapAuthenticatorBundle/releases)\n[![License](https://img.shields.io/packagist/l/novactive/ezldapauthenticatorbundle.svg?style=flat-square)](LICENSE)\n\nA bundle to authenticate users against LDAP server\n\n## Installation\n\nAdd the lib to your composer.json, run `composer require novactive/ezldapauthenticatorbundle` to refresh dependencies.\n\nThen inject the bundle in the `bundles.php` of your application.\n\n```php\n    Novactive\\Bundle\\eZLDAPAuthenticatorBundle\\EzLdapAuthenticatorBundle::class =\u003e [ 'all'=\u003e true ],\n```\n\n## Configuration\n\n### Bundle configuration\n\nTo configure this bundle you should add new section `nova_ez_ldap` into your `config.yml` file.\nBasic config might be like this one:\n\n```yaml\nnova_ez_ldap:\n  connections:\n    default:\n      ldap:\n        adapter:\n          connection_string: '%ldap_connection_string%'\n        user_provider:\n          base_dn: '%ldap_base_dn%'\n          search_dn: '%ldap_read_only_user%'\n          search_password: '%ldap_read_only_password%'\n          uid_key:              uid\n      ezuser:\n        admin_user_id:  '%admin_user_id%'\n        user_group_id:  '%target_usergroup%'\n        email_attr: mail\n        attributes:\n          first_name: givenName\n          last_name: sn\n```\n\nInstead of `connection_string` you are able to set `host`, `port`, `encryption` and `version` separately.\nAlso you can set `options` array that will be passed directly to the Symfony Ldap component.\n\n#### LDAP attributes mapping\n\nTo be able to store user who came from LDAP you have to configure mapping between LDAP attributes and eZPublish user fields.\nYou must map all required fields in the `ezuser` part.\nBy default eZPublish needs user credentials and email but you may have any additional fields in you `User` content class so you should fill all of them.\n\n#### Target group\n\nAll users will be stored in the group `user_group_id`. You must put group content id here.\n\n#### Full default config\n\nHere is full default bundle configuration:\n\n```yaml\nnova_ez_ldap:\n  connections:\n    default:\n      ldap:\n        adapter:\n          connection_string: ~\n          host: localhost\n          port: 389\n          version: 3\n          encryption: none # One of \"none\"; \"ssl\"; \"tls\"\n          options: []\n\n        user_provider:\n          base_dn: ~ # Required\n          search_dn: ~ # Required\n          search_password: ~ # Required\n          uid_key: uid\n          filter: '({uid_key}={username})'\n\n      ezuser:\n        admin_user_id:  ~ # Required\n        user_group_id:  ~ # Required\n        email_attr:  ~ # Required\n        attributes:\n          user_attr: ldap_attr\n```\n\n### Security configuration\n\nBesides common bundle configuration you will have to add some parameters in `security` section:\n\n```yaml\nsecurity:\n    providers:\n        chain_provider:\n            chain:\n                providers: [nova_ldap, ezpublish]\n        ezpublish:\n            id: ezpublish.security.user_provider\n        nova_ldap:\n            id: nova_ez.ldap.user_provider\n    firewalls:\n        ezpublish_front:\n            form_login_ldap:\n                service: nova_ez.ldap\n                provider: chain_provider\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovactive%2Fnovaezldapauthenticatorbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovactive%2Fnovaezldapauthenticatorbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovactive%2Fnovaezldapauthenticatorbundle/lists"}