├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── Vagrantfile ├── composer.json └── src ├── Attribute.php ├── Collection.php ├── Collection └── DefaultIterator.php ├── Converter ├── Converter.php └── Exception │ ├── ConverterException.php │ ├── ExceptionInterface.php │ ├── InvalidArgumentException.php │ └── UnexpectedValueException.php ├── Dn.php ├── ErrorHandler.php ├── ErrorHandlerInterface.php ├── Exception ├── BadMethodCallException.php ├── ExceptionInterface.php ├── InvalidArgumentException.php └── LdapException.php ├── Filter.php ├── Filter ├── AbstractFilter.php ├── AbstractLogicalFilter.php ├── AndFilter.php ├── Exception │ ├── ExceptionInterface.php │ └── FilterException.php ├── MaskFilter.php ├── NotFilter.php ├── OrFilter.php └── StringFilter.php ├── Ldap.php ├── Ldif └── Encoder.php ├── Node.php └── Node ├── AbstractNode.php ├── ChildrenIterator.php ├── Collection.php ├── RootDse.php ├── RootDse ├── ActiveDirectory.php ├── OpenLdap.php └── eDirectory.php ├── Schema.php └── Schema ├── AbstractItem.php ├── ActiveDirectory.php ├── AttributeType ├── ActiveDirectory.php ├── AttributeTypeInterface.php └── OpenLdap.php ├── ObjectClass ├── ActiveDirectory.php ├── ObjectClassInterface.php └── OpenLdap.php └── OpenLdap.php /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file, in reverse chronological order by release. 4 | 5 | ## 2.10.2 - TBD 6 | 7 | ### Added 8 | 9 | - Nothing. 10 | 11 | ### Changed 12 | 13 | - Nothing. 14 | 15 | ### Deprecated 16 | 17 | - Nothing. 18 | 19 | ### Removed 20 | 21 | - Nothing. 22 | 23 | ### Fixed 24 | 25 | - Nothing. 26 | 27 | ## 2.10.1 - 2019-10-17 28 | 29 | ### Added 30 | 31 | - [#82](https://github.com/zendframework/zend-ldap/pull/82) adds support for PHP 7.3. 32 | 33 | ### Deprecated 34 | 35 | - Nothing. 36 | 37 | ### Removed 38 | 39 | - Nothing. 40 | 41 | ### Fixed 42 | 43 | - Nothing. 44 | 45 | ## 2.10.0 - 2018-07-05 46 | 47 | ### Added 48 | 49 | - [#64](https://github.com/zendframework/zend-ldap/pull/64) Adds support for SASL-Bind - Thanks to @mbaynton 50 | - [#66](https://github.com/zendframework/zend-ldap/pull/66) Adds support for automatic reconnection - Thanks to @mbaynton 51 | - [#73](https://github.com/zendframework/zend-ldap/pull/73) Adds support for modifying attributes - Thanks to @glimac and @mbaynton 52 | 53 | ### Deprecated 54 | 55 | - Nothing. 56 | 57 | ### Removed 58 | 59 | - [#69](https://github.com/zendframework/zend-ldap/pull/69) Drop support for OpenLDAP < 2.2 due to using ldap-URI exclusively - Thanks to @fduch 60 | 61 | ### Fixed 62 | 63 | - [#51](https://github.com/zendframework/zend-ldap/issues/51) Use ldap_escape to escape values instead of own function - Thanks to @KaelBaldwin 64 | 65 | ## 2.9.0 - 2018-04-25 66 | 67 | ### Added 68 | 69 | - [#78](https://github.com/zendframework/zend-ldap/pull/78) Added support for PHP 7.2 70 | - [#60](https://github.com/zendframework/zend-ldap/pull/60) Adds tests for nightly PHP-builds 71 | 72 | ### Deprecated 73 | 74 | - Nothing. 75 | 76 | ### Removed 77 | 78 | - [#61](https://github.com/zendframework/zend-ldap/pull/61) Removed support for PHP 5.5. 79 | - [#78](https://github.com/zendframework/zend-ldap/pull/78) Removed support for HHVM. 80 | 81 | ### Fixed 82 | 83 | - [#71](https://github.com/zendframework/zend-ldap/pull/71) Removes composer-flag ```--ignore-platform-deps``` to fix Travis-CI build 84 | - [#77](https://github.com/zendframework/zend-ldap/pull/77) Fixes links to PR in CHANGELOG.md) 85 | - [#78](https://github.com/zendframework/zend-ldap/pull/78) Updated Location for docs. 86 | - [#78](https://github.com/zendframework/zend-ldap/pull/78) Updated PHPUnit. 87 | 88 | ## 2.8.0 - 2017-03-06 89 | 90 | ### Added 91 | 92 | - [#53](https://github.com/zendframework/zend-ldap/pull/53) Adds addAttribute-method 93 | to Ldap-class 94 | - [#57](https://github.com/zendframework/zend-ldap/pull/57) adds support for new 95 | coding-standards. 96 | 97 | ### Deprecated 98 | 99 | - Nothing. 100 | 101 | ### Removed 102 | 103 | - Nothing. 104 | 105 | ### Fixed 106 | 107 | - Nothing. 108 | 109 | ## 2.7.1 - 2016-05-23 110 | 111 | ### Added 112 | 113 | - [#48](https://github.com/zendframework/zend-ldap/pull/48) adds and publishes 114 | the documentation to https://zendframework.github.io/zend-ldap/ 115 | 116 | ### Deprecated 117 | 118 | - Nothing. 119 | 120 | ### Removed 121 | 122 | - Nothing. 123 | 124 | ### Fixed 125 | 126 | - [#47](https://github.com/zendframework/zend-ldap/pull/47) Fixes a BC-Break caused 127 | by the missing default-ErrorHandler 128 | 129 | ## 2.7.0 - 2016-04-21 130 | 131 | ### Added 132 | 133 | - [#43](https://github.com/zendframework/zend-ldap/pull/43) Adds possibility 134 | to use [Zend\StdLib](https://github.com/zendframework/zend-stdlib) and 135 | [Zend\EventManager](https://github.com/zendframework/zend-eventmanager) in 136 | Version 3 137 | - Support for PHP7 138 | 139 | ### Deprecated 140 | 141 | - Nothing. 142 | 143 | ### Removed 144 | 145 | - [#21](https://github.com/zendframework/zend-ldap/pull/21) Removes dependency 146 | Zend\StdLib 147 | 148 | ### Fixed 149 | 150 | - [#17](https://github.com/zendframework/zend-ldap/issues/17) Fixes HHVM builds 151 | - [#44](https://github.com/zendframework/zend-ldap/pull/44) Fixes broken builds 152 | in PHP7 due to faulty sorting-test 153 | - [#40](https://github.com/zendframework/zend-ldap/pull/40) Fixes connection test 154 | that failed due to different failure messages in PHP5 and 7 155 | 156 | ## 2.6.1 - 2016-04-20 157 | 158 | ### Added 159 | 160 | - Nothing. 161 | 162 | ### Deprecated 163 | 164 | - Nothing. 165 | 166 | ### Removed 167 | 168 | - Nothing. 169 | 170 | ### Fixed 171 | 172 | - [#20](https://github.com/zendframework/zend-ldap/pull/20) checks whether the 173 | LDAP-connection shall use SSL or not and decides based on that which port to 174 | use if no port has been set. 175 | - [#25](https://github.com/zendframework/zend-ldap/issues/25) Check for correct 176 | Headers in the documentation and fix it 177 | - [#27](https://github.com/zendframework/zend-ldap/issues/27) Check for different 178 | issues in the documentation and fixed it 179 | - [#29](https://github.com/zendframework/zend-ldap/issues/29) Check for incorrect 180 | Blockquotes in the documentation and fix it 181 | 182 | 183 | ## 2.6.0 - 2016-02-11 184 | 185 | ### Added 186 | 187 | - [#6](https://github.com/zendframework/zend-ldap/pull/6) Adds a possibility 188 | to delete attributes without having to remove the complete node and add it 189 | again without the attribute 190 | 191 | ### Deprecated 192 | 193 | - Nothing. 194 | 195 | ### Removed 196 | 197 | - Nothing. 198 | 199 | ### Fixed 200 | 201 | - [#16](https://github.com/zendframework/zend-ldap/pull/16) Fixed the usage of 202 | ```ldap_sort``` during sorting search-results due to deprecation of 203 | ```ldap_sort``` in PHP 7 204 | 205 | ## 2.5.2 - 2016-02-11 206 | 207 | ### Added 208 | 209 | - [#16](https://github.com/zendframework/zend-ldap/pull/16) removes the call 210 | to the now deprecated ldap_sort-function wile still preserving the 211 | sort-functionality. 212 | - [#14](https://github.com/zendframework/zend-ldap/pull/14) adds a Vagrant 213 | environment for running an LDAP server against which to run the tests; 214 | additionally, it adds Travis-CI scripts for setting up an LDAP server with 215 | test data. 216 | 217 | ### Deprecated 218 | 219 | - Nothing. 220 | 221 | ### Removed 222 | 223 | - Nothing. 224 | 225 | ### Fixed 226 | 227 | - [#18](https://github.com/zendframework/zend-ldap/pull/18) Fixes an already 228 | removed second parameter to ```ldap_first_attribute``` and ```ldap_next_attribute``` 229 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2005-2019, Zend Technologies USA, Inc. 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without modification, 5 | are permitted provided that the following conditions are met: 6 | 7 | - Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | - Redistributions in binary form must reproduce the above copyright notice, this 11 | list of conditions and the following disclaimer in the documentation and/or 12 | other materials provided with the distribution. 13 | 14 | - Neither the name of Zend Technologies USA, Inc. nor the names of its 15 | contributors may be used to endorse or promote products derived from this 16 | software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 22 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 25 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # zend-ldap 2 | 3 | > ## 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 | -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | $install_ldap = <