├── src ├── Exception │ ├── ExceptionInterface.php │ ├── BadMethodCallException.php │ ├── InvalidArgumentException.php │ └── LdapException.php ├── Converter │ ├── Exception │ │ ├── ExceptionInterface.php │ │ ├── ConverterException.php │ │ ├── InvalidArgumentException.php │ │ └── UnexpectedValueException.php │ └── Converter.php ├── Filter │ ├── Exception │ │ ├── FilterException.php │ │ └── ExceptionInterface.php │ ├── OrFilter.php │ ├── AndFilter.php │ ├── StringFilter.php │ ├── MaskFilter.php │ ├── NotFilter.php │ ├── AbstractLogicalFilter.php │ └── AbstractFilter.php ├── ErrorHandlerInterface.php ├── Node │ ├── Collection.php │ ├── Schema │ │ ├── AttributeType │ │ │ ├── AttributeTypeInterface.php │ │ │ ├── ActiveDirectory.php │ │ │ └── OpenLdap.php │ │ ├── ObjectClass │ │ │ ├── ObjectClassInterface.php │ │ │ ├── ActiveDirectory.php │ │ │ └── OpenLdap.php │ │ ├── ActiveDirectory.php │ │ ├── AbstractItem.php │ │ └── OpenLdap.php │ ├── RootDse │ │ ├── OpenLdap.php │ │ ├── eDirectory.php │ │ └── ActiveDirectory.php │ ├── Schema.php │ ├── RootDse.php │ ├── ChildrenIterator.php │ └── AbstractNode.php ├── ErrorHandler.php ├── Collection.php ├── Filter.php ├── Ldif │ └── Encoder.php ├── Attribute.php ├── Collection │ └── DefaultIterator.php └── Dn.php ├── README.md ├── Vagrantfile ├── LICENSE.md ├── composer.json └── CHANGELOG.md /src/Exception/ExceptionInterface.php: -------------------------------------------------------------------------------- 1 | ## Repository abandoned 2019-12-31 4 | > 5 | > This repository has moved to [laminas/laminas-ldap](https://github.com/laminas/laminas-ldap). 6 | 7 | [![Build Status](https://secure.travis-ci.org/zendframework/zend-ldap.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-ldap) 8 | [![Coverage Status](https://coveralls.io/repos/github/zendframework/zend-ldap/badge.svg?branch=master)](https://coveralls.io/github/zendframework/zend-ldap?branch=master) 9 | 10 | zend-ldap provides functionality for performing LDAP operations, including, but 11 | not limited to, binding, searching and modifying entries in an LDAP directory. 12 | 13 | - File issues at https://github.com/zendframework/zend-ldap/issues 14 | - Documentation is at https://docs.zendframework.com/zend-ldap/ 15 | -------------------------------------------------------------------------------- /src/Filter/StringFilter.php: -------------------------------------------------------------------------------- 1 | filter = $filter; 32 | } 33 | 34 | /** 35 | * Returns a string representation of the filter. 36 | * 37 | * @return string 38 | */ 39 | public function toString() 40 | { 41 | return '(' . $this->filter . ')'; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/ErrorHandlerInterface.php: -------------------------------------------------------------------------------- 1 | $throw handles whether the captured errors shall 32 | * be thrown as Exceptions or not 33 | * 34 | * @param bool|false $throw 35 | * 36 | * @return mixed 37 | */ 38 | public function stopErrorHandling($throw = false); 39 | } 40 | -------------------------------------------------------------------------------- /src/Node/Collection.php: -------------------------------------------------------------------------------- 1 | attachLDAP($this->iterator->getLDAP()); 29 | return $node; 30 | } 31 | 32 | /** 33 | * Return the child key (DN). 34 | * Implements Iterator and RecursiveIterator 35 | * 36 | * @return string 37 | */ 38 | public function key() 39 | { 40 | return $this->iterator->key(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/Filter/MaskFilter.php: -------------------------------------------------------------------------------- 1 | filter; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/Filter/NotFilter.php: -------------------------------------------------------------------------------- 1 | filter = $filter; 32 | } 33 | 34 | /** 35 | * Negates the filter. 36 | * 37 | * @return AbstractFilter 38 | */ 39 | public function negate() 40 | { 41 | return $this->filter; 42 | } 43 | 44 | /** 45 | * Returns a string representation of the filter. 46 | * 47 | * @return string 48 | */ 49 | public function toString() 50 | { 51 | return '(!' . $this->filter->toString() . ')'; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | $install_ldap = <