Debian Codegraph @

CHANGELOG.rst

raw
1 Changelog
2 ==========
3
4 [1.5.3 - 2024-04-28]
5 --------------------
6
7 Changed
8 ~~~~~~~
9
10 - Any exception that rasied during closing a connection pool is
11 catched and a warning message will be logged.
12 - LDAPconnection.close method is no longer try to abandon on-going
13 requests by default.
14
15 Added
16 ~~~~~
17
18 - New `abandon_requests` parameter for LDAPconnection.close method
19 to call abandon operations on on-going requests during connection
20 close.
21 - Arm64 wheels for macOS.
22
23 Fixed
24 ~~~~~
25
26 - Memory leak during Kerberos credential creation. (PR #84, thanks
27 to @dafanasiev)
28
29
30 [1.5.2] - 2023-11-20
31 --------------------
32
33 Changed
34 ~~~~~~~
35
36 - The module is no longer tested with 3.7.
37 - LDAP_X_CONNECTING is an accepted return status during binding
38 while using asynchronous connection.
39
40 Added
41 ~~~~~
42
43 - Debug hint about SSL/TLS errors to the documentation (PR #76,
44 thanks to @senfomat)
45 - Python 3.12 to the CI pipeline.
46
47 Fixed
48 ~~~~~
49
50 - Type annotation for set_async_connection_class. (PR #77, thanks
51 to @Yanonix)
52 - Documentation about setup.cfg for Apple Silicon (PR #81, thanks
53 to @chefkoch-de42)
54
55
56 [1.5.1] - 2022-12-03
57 --------------------
58
59 Changed
60 ~~~~~~~
61
62 - Improved type annotations, set __all__ attributes for the modules.
63
64 Added
65 ~~~~~
66
67 - py.typed file for type checking. (Issue #74)
68 - Python 3.11 to the CI pipeline.
69
70 Fixed
71 ~~~~~
72
73 - UnboundLocalError in AIOConnectionPool.spawn (PR #71, thanks to @rra)
74 and in ConnectionPool.spawn.
75 - Parsing LDIF values containing colon as a non-first character
76 in LDIFReader. (Issue #72)
77 - Passing keyword arguments to the connect method while opening
78 connections in ConnectionPool.
79
80
81 [1.5.0] - 2022-08-24
82 --------------------
83
84 Changed
85 ~~~~~~~
86
87 - Closed connections are not put back to the connection pool. (Issue #64,
88 thanks to @rra)
89 - Removed poetry as a build requirement. It's not used for the build,
90 only for the development environment.
91 - Using asynccontextmanager for AIOConnectionPool that's been introduced
92 in Python 3.7.
93
94 Added
95 ~~~~~
96
97 - Setter methods for ACE, ACL and SecurityDescriptor properties.
98 - ACE.__eq__ method to check ACE objects' equality.
99 - New is_access_allowed and is_access_denied flags for ACEType.
100
101 Fixed
102 ~~~~~
103
104 - Unnecessary library directories setting in setup.py.
105 - SetUp method of the Tornado tests for Tornado 6.2.
106
107
108 [1.4.0] - 2022-03-12
109 --------------------
110
111 Changed
112 ~~~~~~~
113
114 - Last release with Python 3.6 support, the module no longer will be
115 tested with 3.6.
116 - Providing empty user and password with GSSAPI/GSS-SPNGO mechanisms
117 will use the logon credentials for authentication on Windows instead
118 of an anonymous bind.
119 - Remove unnecessary read-only property overrides. These properties will
120 raise AttributeError, when trying to set them.
121
122 Added
123 ~~~~~
124
125 - LDAPClient.set_sasl_security_properties method and sasl_security_properties
126 read-only property for setting SASL security properties.
127 - TrioLDAPConnection class for supporting trio asynchronous module.
128
129 Fixed
130 ~~~~~
131
132 - Password hash failure, when new password is set with
133 LDAPConnection.modify_password. (Issue #57, thanks to @morian)
134 - LDAPConnection.modify_password not returning True, when new password
135 is provided. (Issue #59, thanks to @morian)
136
137
138 [1.3.0] - 2021-08-24
139 --------------------
140
141 Changed
142 ~~~~~~~
143
144 - Drop support for Python 3.5, the module requires at least 3.6.
145 - Allow space in LDAPDN's attribute type. (Issue #52)
146 - LDAPClient.server_chase_referrals is set to False by default.
147 - Preventing to set both password and keytab as credentials.
148
149 Added
150 ~~~~~
151
152 - New ignore_referrals attribute for LDAPClient to be able to simply skip
153 LDAP referrals in search results.
154 - New submodule for working with Active Directory: ACE, ACL, SecurityDescriptor
155 and UserAccountControl classes.
156
157 Fixed
158 ~~~~~
159
160 - Deadlock when waiting for finishing the init thread on macOS.
161
162
163 [1.2.1] - 2020-12-31
164 --------------------
165
166 Changed
167 ~~~~~~~
168
169 - Asynchronous connection process during socket initialisation is disabled
170 by default on every platform. It caused TLS errors on newer Ubuntus (18.04+).
171 Use set_connect_async explicitly to enable it.
172 - LDAPClient's server_chase_referrals is set to False automatically before
173 starting a paged_search.
174 - Using urllib.parse for LDAPURL, instead of regular expressions.
175
176 Fixed
177 ~~~~~
178
179 - Freeing resources allocated by the LDAP structure during LDAPConnection's
180 deallocation. (Issue #45)
181 - Package name in documentation. (Thanks to @ikreb7)
182
183
184 [1.2.0] - 2020-01-18
185 --------------------
186
187 Added
188 ~~~~~
189
190 - The get_result coroutines to AIOLDAPConnection and TornadoLDAPConnection.
191 - LDAPI example to docs. (Thanks to @senfomat)
192
193 Fixed
194 ~~~~~
195
196 - Raising ConnectionError instead of ValueError of invalid file descriptor
197 with AIOLDAPConnection when the server is unreachable. (Issue #27)
198 - Raising SizeLimitError when the query hits either the client-side or the
199 server-side limit, fix condition check when acquiring next page. (Issue #31)
200 - Race condition for open method of ThreadedConnectionPool and AIOConnectionPool.
201
202 [1.1.0] - 2019-04-06
203 --------------------
204
205 Changed
206 ~~~~~~~
207 - Drop support for Python 3.4. From further releases 3.4 related codes will
208 be removed (some asyncio related code has already changed), and the module
209 will require 3.5 or newer Python to be built.
210 - Add gevent and tornado as extra requirements for setup.py.
211
212 Added
213 ~~~~~
214
215 - New set_connect_async function to disable/enable asynchronous connection
216 process during socket initialisation. (Thanks to @tck42)
217 - New connection pool classes: simple ConnectionPool, ThreadedConnectionPool
218 that can be shared between threads and AIOConnectionPool for asyncio tasks.
219
220 Fixed
221 ~~~~~
222
223 - Defining PY_SSIZE_T_CLEAN and changing parameter size variables from int to
224 Py_ssize_t for Python 3.8.
225
226 [1.0.0] - 2018-09-09
227 --------------------
228
229 Changed
230 ~~~~~~~
231
232 - Separate basic search functionality to three different methods in
233 LDAPConnection: search, paged_search and virtual_list_search.
234 - LDAPEntry's DN is listed among its attributes under the dn key.
235 - LDAPClient's set_credentials method uses optional named parameters instead
236 of tuples.
237 - LDAPClient's credentials property returns a dict instead of a tuple.
238 - LDAPURL's filter property and the filter parameters of LDAPConnection's
239 search methods are renamed to filter_exp.
240 - The representation of LDAPEntry honours the last call of its
241 change_attribute method better than previously.
242 - Drop Heimdal support for advanced Kerberos capabilities (at least
243 temporarily).
244 - The get_tls_impl_name, get_vendor_info, has_krb5_support, and set_debug
245 functions are moved to the utils submodule.
246
247 Added
248 ~~~~~
249
250 - LDIFReader and LDIFWriter objects for handling LDIF format.
251 - The delete_old_rdn parameter for LDAPEntry's rename method. (Issue #17)
252 - Kerberos keytab support for set_credentials (Thanks to @Mirraz).
253 - Utils submodule with escape_filter_exp and escape_attribute_value
254 functions. (Issue #18)
255 - An exclude_dn keyword-only argument to LDAPEntry's keys, items and
256 values methods to exclude the dn key and value from the return values.
257 - Support for ldapi connection in LDAPURL and LDAPConnection.
258 - BaseLDAPConnection as a super class for all connection classes.
259 - Type annotations for several methods.
260
261 Fixed
262 ~~~~~
263
264 - Several reference counting errors that caused memory leaks. (Issue #19)
265 - Escaping brackets in LDAPURL's regular expressions. (Issue #22)
266 - Missing ManageDsaIT control during LDAPConnection's delete.
267 - Honouring timeout settings for network connections, but only on
268 Linux with newer OpenLDAP than 2.4.43. (Issue #21)
269 - Typo in documentation (Thanks to @magnuswatn).
270
271 [0.9.1] - 2017-12-03
272 --------------------
273
274 Changed
275 ~~~~~~~
276
277 - LDAPError messages have the original LDAP error codes.
278 - TLS initialisation is separated from LDAP struct initialisation.
279
280 Added
281 ~~~~~
282
283 - Async with support for AIOLDAPConnection. (Issue #12)
284 - New set_debug module function that enables debug mode.
285
286 Fixed
287 ~~~~~
288
289 - Signalling after LDAP initialisation is failed.
290 - Using TLS settings while getting the root DSE in get_rootDSE method.
291
292 [0.9.0] - 2017-02-15
293 --------------------
294
295 Changed
296 ~~~~~~~
297
298 - Python 3.3 is no longer considered to be supported. The package won't be
299 tested with 3.3 anymore.
300 - The LDAPSearchIter object is automatically acquiring the next page during
301 iteration for paged LDAP search by default.
302 - Installing the package from source on Mac OS X became simpler with
303 setup.cfg (Thanks to @LukeXuan).
304 - When recursive is True, LDAPConnection.delete uses LDAP_SERVER_TREE_DELETE
305 control (if it is possible).
306 - LDAPClient.url property became writeable.
307
308 Added
309 ~~~~~
310
311 - LDAPClient.set_auto_page_acquire and auto_page_acquire property for
312 enabling/disabling automatic page acquiring during paged LDAP search.
313 - LDAPEntry.change_attribute and LDAPEntry.clear_attribute_changes methods
314 for handling LDAP attributes with explicit modification operation types.
315 - Async iterator (async for) support for LDAPSearchIter.
316 - LDAPClient.server_chase_referrals property to set chasing LDAP referrals
317 by the server.
318 - LDAPReference object for handling LDAP referrals.
319 - LDAPURL.__eq__ method to check LDAPURL objects and string equality.
320 - LDAPClient.set_url method to set url attribute.
321 - LDAPClient.set_managedsait method to support LDAP ManageDsaIT control
322 during search, add and modify operations.
323
324 Fixed
325 ~~~~~
326
327 - The value validation of LDAPDN's __setitem__ method.
328 - The missing asyncio.coroutine decorators of AIOLDAPConnection's methods.
329 - IPv6 parsing for LDAPURL.
330
331 [0.8.9] - 2016-11-19
332 --------------------
333
334 Changed
335 ~~~~~~~
336
337 - Reimplemented LDAPValueList in Python, removed C implementations of
338 ldapvaluelist and uniquelist.
339 - Reimplemented LDAPEntry.delete method in Python.
340 - LDAPConnection.search method to accept bytes-like object as a filter
341 parameter. (Issue #7)
342 - LDAPClient.get_rootDSE method uses anonym bind without any previously set
343 LDAP controls to search for rootDSE.
344
345 Added
346 ~~~~~
347
348 - LDAP_EXTENDED_DN_CONTROL support with LDAPClient.set_extended_dn method
349 and LDAPEntry's new extended_dn string attribute. (Issue #6)
350
351 Fixed
352 ~~~~~
353
354 - Case sensitivity when checking LDAPDN equality.
355
356 [0.8.8] - 2016-07-19
357 --------------------
358
359 Changed
360 ~~~~~~~
361
362 - LDAPDN object is loaded for the C extension after initialisation once,
363 rather than loading it for every time when an LDAPEntry's DN is set.
364
365 Added
366 ~~~~~
367
368 - Password policy control support with LDAPClient.set_password_policy on
369 Unix.
370 - New exceptions for password policy errors.
371 - LDAP Password Modify extended operation support with
372 LDAPConnection.modify_password.
373
374 Fixed
375 ~~~~~
376
377 - AIOLDAPConnection hanging on write events during selecting socket
378 descriptors.
379
380 [0.8.7] - 2016-06-27
381 --------------------
382
383 Changed
384 ~~~~~~~
385
386 - LDAPDN object to validate with regex instead of splitting to tuples.
387
388 Added
389 ~~~~~
390
391 - Optional `recursive` bool parameter for LDAPConnection.delete method to
392 remove entities in a subtree recursively.
393
394 Fixed
395 ~~~~~
396
397 - Wrong typing for LDAPConnection.search when VLV is set.
398 - Py_None return values in C functions.
399 - Timeout parameter for operations of Tornado and Asyncio connections.
400
401 [0.8.6] - 2016-06-05
402 --------------------
403
404 Changed
405 ~~~~~~~
406
407 - AttributeErrors to Type- and ValueErrors for invalid function parameters.
408 - LDAPConnection.delete and LDAPEntry.rename accept LDAPDN as DN parameter.
409
410 Added
411 ~~~~~
412
413 - New SizeLimitError.
414 - Some typing info and typing module dependency for 3.4 and earlier versions.
415
416 Fixed
417 ~~~~~
418
419 - Ordered search returning with list (instead of ldapsearchiter).
420 - Setting error messages on Unix systems.
421 - Timeout for connecting.
422 - Setting default ioloop for TornadoLDAPConnection (Thanks to @lilydjwg).
423
424 [0.8.5] - 2016-02-23
425 --------------------
426
427 Changed
428 ~~~~~~~
429
430 - Removed LDAPConnection's set_page_size and set_sort_order method.
431 - If virtual list view parameters are set for the search, the search
432 method will return a tuple of the results and a dictionary of the
433 received VLV response LDAP control.
434 - Renamed LDAPConnection's async attribute and LDAPClient.connect method's
435 async parameter to is_async.
436 - Improved Mac OS X support: provide wheel with newer libldap libs.
437
438 Added
439 ~~~~~
440
441 - New optional parameters for LDAPConnection's search method to perform
442 searches with virtual list view, paged search result and sort order.
443 - New module functions: get_vendor_info and get_tls_impl_name.
444 - NTLM and GSS-SPNEGO support for MS Windows.
445 - Automatic TGT requesting for GSSAPI/GSS-SPNEGO, if the necessary
446 credential information is provided. (Available only if optional Kerberos
447 headers are installed before building the module.)
448 - LDAPSearchScope enumeration for search scopes.
449
450 Fixed
451 ~~~~~
452
453 - Parsing result of an extended operation, if it is not supported by the
454 server.
455 - Binary data handling.
456 - LDAPEntry's rename method do not change the entry's DN after failure.
457
458 [0.8.1] - 2015-10-27
459 --------------------
460
461 Changed
462 ~~~~~~~
463
464 - Renamed LDAPConnection's cancel method to abandon.
465
466 Added
467 ~~~~~
468
469 - Timeout support for opening an LDAP connection.
470
471 Fixed
472 ~~~~~
473
474 - Possible deadlock (by constantly locking from the main thread) during
475 initialising an LDAP session on Linux.
476
477 [0.8.0] - 2015-10-17
478 --------------------
479
480 Changed
481 ~~~~~~~
482
483 - New module name (from PyLDAP) to avoid confusion with other Python
484 LDAP packages.
485 - LDAPEntry’s clear and get method are rewritten in Python.
486 - Connection settings are accessible via properties of LDAPClient.
487 - Moved asyncio related code into a separate class that inherits from
488 LDAPConnection.
489 - Default async class can be change to other class implementation that
490 can work with non-asyncio based approaches (e.g. like Gevent).
491 - Names of the objects implemented in C are all lower-cased.
492
493 Added
494 ~~~~~
495
496 - Full unicode (UTF-8) support on MS Windows with WinLDAP.
497 - LDAPConnection.fileno() method to get the socket descriptor of the
498 connection.
499 - New methods for LDAPClient to set CA cert, client cert and client
500 key.
501 - EXTERNAL SASL mechanism for binding.
502 - Use of authorization ID during SASL binding.
503 - New classes for supporting Gevent and Tornado asynchronous modules.
504 - Timeout parameter for LDAP operations.
505
506 Fixed
507 ~~~~~
508
509 - Own error codes start from -100 to avoid overlap with OpenLDAP’s and
510 WinLDAP’s error codes.
511 - New folder structure prevents the interpreter to try to load the
512 local files without the built C extension(, if the interpreter is
513 started from the module’s root directory).
514
515 [0.7.5] - 2015-07-12
516 --------------------
517
518 Changed
519 ~~~~~~~
520
521 - LDAPClient.connect is a coroutine if async param is True. (Issue #1)
522 - The binding function on Windows uses ldap\_sasl\_bind instead of the
523 deprecated ldap\_bind.
524 - The connection procedure (init, set TLS, bind) creates POSIX and
525 Windows threads to avoid I/O blocking.
526 - Optional error messages are appended to the Python LDAP errors.
527
528 Added
529 ~~~~~
530
531 - New open method for LDAPConnection object to build up the connection.
532 - New LDAPConnectIter object for initialisation, setting TLS, and
533 binding to the server.
534
535 Fixed
536 ~~~~~
537
538 - LDAPConnection.whoami() returns ‘anonymous’ after an anonymous bind.
539 - After failed connection LDAPClient.connect() returns ConnectionError
540 on MS Windows.
541
542 [0.7.0] - 2015-01-28
543 --------------------
544
545 Changed
546 ~~~~~~~
547
548 - The set_page_size method is moved from LDAPClient to LDAPConnection.
549
550 Added
551 ~~~~~
552
553 - Support for asynchronous LDAP operations.
554 - Cancel method for LDAPConnection.
555 - New LDAPEntry and LDAPConnection Python objects as wrappers around the
556 C implementations.
557
558 Fixed
559 ~~~~~
560
561 - UniqueList contains method.
562
563 [0.6.0] - 2014-09-24
564 --------------------
565
566 Changed
567 ~~~~~~~
568
569 - LDAPClient accepts LDAPURL objects as url.
570 - LDAPConnection search accepts LDAPDN objects as basedn parameter.
571
572 Added
573 ~~~~~
574
575 - Method to set certificate policy.
576 - Server side sort control.
577
578 Fixed
579 ~~~~~
580
581 - Getting paged result cookie on MS Windows.
582 - Segmentation fault of LDAPEntry.popitem().
583
584 [0.5.0] - 2014-03-08
585 --------------------
586
587 Changed
588 ~~~~~~~
589
590 - Module name to lower case.
591 - Removed get_entry method.
592 - LDAP URL parameters are used for search properly.
593
594 Added
595 ~~~~~
596
597 - New LDAPClient object for managing the connection settings.
598 - DIGEST-MD5 support on MS Windows.
599 - Raw attribute support: the given attributes will be kept in bytearray form.
600 - Paged search control support.
601 - Sphinx documentation with tutorial.
602
603 Fixed
604 ~~~~~
605
606 - Several memory management issues.
607
608 [0.1.5] - 2013-07-31
609 --------------------
610
611 Changed
612 ~~~~~~~
613
614 - Errors are implemented in Python.
615 - Using WinLDAP on MS Windows for LDAP operations.
616
617 Added
618 ~~~~~
619
620 - UniqueList for storing case-insensitive unique elements.
621 - LDAPURL and LDAPDN Python classes for handling LDAP URL and distinguished
622 name.
623
624 Fixed
625 ~~~~~
626
627 - Getting empty list for searching non-existing entries.
628
629 [0.1.0] - 2013-06-23
630 --------------------
631
632 - Initial public release.