Download the PHP package l3/ldap-orm-bundle without Composer
On this page you can find all versions of the php package l3/ldap-orm-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download l3/ldap-orm-bundle
More information about l3/ldap-orm-bundle
Files in l3/ldap-orm-bundle
Package ldap-orm-bundle
Short Description An Ldap ORM for Symfony2/3/4
License LGPL-3.0-or-later
Homepage https://github.com/l3-team/LdapOrmBundle
Informations about the package ldap-orm-bundle
L3LdapOrmBundle
L3LdapOrmBundle is a fork from GorgLdapOrmBundle for use without dependency "r1pp3rj4ck/TwigstringBundle" and use with Symfony version 2, 3 and 4, and add a system of complex Query and Conditions LDAP. It is an interface for retrieving, modifying and persisting LDAP entities, using PHP's native LDAP functions.
Installation
1.1. Plain L3LdapOrmBundle
Install the Bundle with this command :
1.2. Declare the use of L3LdapOrmBundle
1.3. Configure the LDAP parameters
For Symfony2 or Symfony3, add the l3_ldap_orm parameters in your config file (parameters.yml and parameters.yml.dist) :
Sha1 is the default hashing method. In some cases (such as OpenLdap) the password is hashed server-side,
if this is the case then change password_type
to plaintext
.
Basic Usage
To use the L3LdapOrmBundle you have to add annotation to an entity like this example:
- Attribute : Use this annotation to map a class variable on ldap object field
- ObjectClass : Use this annotation to attribute to a php entity class an ldapObjectClass
- Dn : Use this annotation to build the dn with twig syntaxe
- Sequence : Use this annotation to define a link with an ldap Sequence Object
- ArrayField : This annotation defines an attribute is multi-valued as an array
- DnPregMatch : This annotation calculates the value of attribute with a regular expression on DN
After you can use entity like this example:
you also can set complex request ldap :
Advanced Usage
On can use the @DnLinkArray annotation to map a field and an other ldap object
After you can use the entity like this example:
Included Features
- manage ldap entity
- persist entity
- delete entity
- retrieve entity
- Find in ldap by Attribute
- Find in ldap by References
All versions of ldap-orm-bundle with dependencies
symfony/http-kernel Version ~2.1
symfony/dependency-injection Version ~2.1
symfony/framework-bundle Version ~2.1
symfony/class-loader Version ~2.1
symfony/yaml Version ~2.1
symfony/monolog-bundle Version ~2.1
symfony/twig-bundle Version ~2.1
ext-ldap Version *