67 Commits

Author SHA256 Message Date
a7dd84ef20 - Update to 3.4.5:
* Security fixes:
    + CVE-2025-61911 (GHSA-r7r6-cc7p-4v5m): Enforce str input in
      ldap.filter.escape_filter_chars with escape_mode=1; ensure proper
      escaping. (bsc#1251912)
    + CVE-2025-61912 (GHSA-p34h-wq7j-h5v6): Correct NUL escaping in
      ldap.dn.escape_dn_chars to \00 per RFC 4514. (bsc#1251913)
  * Fixes:
    + ReconnectLDAPObject now properly reconnects on UNAVAILABLE,
      CONNECT_ERROR and TIMEOUT exceptions (previously only SERVER_DOWN),
      fixing reconnection issues especially during server restarts
    + Fixed syncrepl.py to use named constants instead of raw decimal values
      for result types
    + Fixed error handling in SearchNoOpMixIn to prevent a undefined variable
      error
- Fix filename due to new setuptools.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=141
2025-10-14 00:55:52 +00:00
412e952d27 Accepting request 1289231 from home:glaubitz:branches:devel:languages:python
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install

OBS-URL: https://build.opensuse.org/request/show/1289231
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=139
2025-06-30 12:57:58 +00:00
3ea9ad4706 Accepting request 1201622 from home:mcalabkova:branches:devel:languages:python:django
- Enable sle15_python_module_pythons (boo#1229549)

OBS-URL: https://build.opensuse.org/request/show/1201622
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=137
2024-09-17 13:11:46 +00:00
3be58e46a2 - update to 3.4.4:
* Reconnect race condition in ReconnectLDAPObject is now fixed
  * Socket ownership is now claimed once we've passed it to
    libldap LDAP_set_option string formats are now compatible
    with Python 3.12
- use sasl2
- LDAP_FILT_MAXSIZ isn't defined in libldap anymore
- changed for openldap2
- fixed neededforbuild (added ldaplib)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=135
2023-12-14 21:15:27 +00:00
cdf12846bf Accepting request 1103789 from home:firstyear:branches:devel:languages:python
- Re-run source download due to file differences.

OBS-URL: https://build.opensuse.org/request/show/1103789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=133
2023-08-14 11:57:35 +00:00
a9a931abc9 Accepting request 1003980 from home:firstyear:branches:devel:languages:python
- up to upstream release 3.4.3
  This is a minor release to bring back the removed OPT_X_TLS option.
  Please note, it's still a deprecated option and it will be removed in 3.5.0.
  The following deprecated option has been brought back:
  * OPT_X_TLS
  * Fixes:
  - Sphinx documentation is now successfully built
  _ pypy3 tests stability was improved
  _ setup.py deprecation warning is now resolved

OBS-URL: https://build.opensuse.org/request/show/1003980
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=131
2022-09-16 08:30:58 +00:00
e866d1ce7d Accepting request 990896 from home:stroeder:branches:devel:languages:python
- update to upstream release 3.4.2
  minor release to provide out-of-the-box compatibility with the merge
  of libldap and libldap_r that happened with OpenLDAP's 2.5 release.

OBS-URL: https://build.opensuse.org/request/show/990896
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=129
2022-07-25 15:57:22 +00:00
b9b45d2386 Fix changelog
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=127
2022-03-17 18:28:21 +00:00
470d3ac294 Accepting request 939167 from home:stroeder:iam
- skip Python 2 builds
- set PATH when running tests
- update to upstream release 3.4.0
  * Security fixes:
    - Fix inefficient regular expression which allows denial-of-service attacks
    - when parsing specially-crafted LDAP schema.
    - (GHSL-2021-117)
  * Changes:
    - On MacOS, remove option to make LDAP connections from a file descriptor
    - when built with the system libldap (which lacks the underlying function,
    - ldap_init_fd)
    - Attribute values of the post read control are now bytes
    - instead of ISO8859-1 decoded str
    - LDAPUrl now treats urlscheme as case-insensitive
    - Several OpenLDAP options are now supported:
        - OPT_X_TLS_REQUIRE_SAN
        - OPT_X_SASL_SSF_EXTERNAL
        - OPT_X_TLS_PEERCERT
  * Fixes:
    - The copy() method of cidict was added back. It was unintentionally
    - removed in 3.3.0
    - Fixed getting/setting SASL options on big endian platforms
    - Unknown LDAP result code are now converted to LDAPexception,
    - rather than raising a SystemError.
  * slapdtest:
    - Show stderr of slapd -Ttest
    - SlapdObject uses directory-based configuration of slapd
    - SlapdObject startup is now faster

OBS-URL: https://build.opensuse.org/request/show/939167
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=126
2021-12-10 19:21:11 +00:00
99a861a275 Accepting request 918915 from home:pgajdos:python
- %check: use %pyunittest_arch rpm macro

OBS-URL: https://build.opensuse.org/request/show/918915
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=125
2021-09-14 15:17:06 +00:00
Tomáš Chvátal
67cdebee39 Accepting request 838140 from home:firstyear:branches:devel:languages:python
- update to upstream release 3.3.1:
Highlights:
* ``LDAPError`` now contains additional fields, such as ctrls, result, msgid
* ``passwd_s`` can now extract the newly generated password
* LDAP connections can now be made from a file descriptor
This release is tested on Python 3.8, and the beta of Python 3.9.
The following undocumented functions are deprecated and scheduled for removal:
- ``ldap.cidict.strlist_intersection``
- ``ldap.cidict.strlist_minus``
- ``ldap.cidict.strlist_union``
Modules/
* Ensure ReconnectLDAPObject is not left in an inconsistent state after
  a reconnection timeout
* Syncrepl now correctly parses SyncInfoMessage when the message is a syncIdSet
* Release GIL around global get/set option call
* Do not leak serverctrls in result functions
* Don't overallocate memory in attrs_from_List()
* Fix thread support check for Python 3
* With OpenLDAP 2.4.48, use the new header openldap.h
Lib/
* Fix some edge cases regarding quoting in the schema tokenizer
* Fix escaping a single space in ldap.escape_dn_chars
* Fix string formatting in ldap.compare_ext_s
* Prefer iterating dict instead of calling dict.keys()
Doc/
* Clarify the relationship between initialize() and LDAPObject()
* Improve documentation of TLS options
* Update FAQ to include Samba AD-DC error message
  "Operation unavailable without authentication"
* Fix several incorrect examples and demos

OBS-URL: https://build.opensuse.org/request/show/838140
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=123
2020-09-28 06:36:33 +00:00
Tomáš Chvátal
64d654d5f9 - Reduce the runtime dependencies to match the actual needs
* User can use either openldap or 389-ds or anything else
- Run the tests on the package
- Fix the fdupes call

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=121
2018-12-10 12:24:48 +00:00
Tomáš Chvátal
18184b8843 - Do not add version dependency to devel requirement
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=119
2018-12-07 09:20:41 +00:00
Tomáš Chvátal
b376589878 - Add this package to SLE wrt fate#325747
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=118
2018-12-07 09:20:23 +00:00
Tomáš Chvátal
de6ff4fc3d - Require openldap2-client as some of the binaries are called
on the runtime

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=115
2018-08-14 07:01:27 +00:00
Tomáš Chvátal
bd10582024 - update to upstream release 3.1.0:
* Long-deprecated functions `ldap.open()` and `ldap.init()` are removed
  * `LDAPObject.compare_s()` and `compare_ext_s` return bool instead of 0 or 1
  * Tons of changes see CHANGES file

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=113
2018-08-08 11:47:38 +00:00
Tomáš Chvátal
39e5273836 Accepting request 627947 from home:stroeder:branches:devel:languages:python
- update to upstream release 3.1.0

OBS-URL: https://build.opensuse.org/request/show/627947
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=112
2018-08-08 11:41:40 +00:00
Tomáš Chvátal
e0cf8e1f2d Accepting request 567662 from home:bergmannf:branches:devel:languages:python
Reworked changes file to be more concise.

OBS-URL: https://build.opensuse.org/request/show/567662
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=110
2018-01-19 12:11:12 +00:00
71e9759198 Accepting request 543962 from home:stroeder:branches:devel:languages:python
update to upstream release 2.5.2

OBS-URL: https://build.opensuse.org/request/show/543962
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=108
2017-11-21 08:15:54 +00:00
Michael Ströder
b79e227e78 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=106 2017-11-12 17:49:32 +00:00
Michael Ströder
0576e76a70 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=105 2017-11-12 17:49:22 +00:00
Michael Ströder
291a2aec89 Accepting request 541096 from home:stroeder:branches:devel:languages:python
- update to upstream release 2.5.1
Changes since 2.4.45:
Mandatory prerequisites:
- Python 2.7.x
- pyasn1 0.3.7+ and pyasn1_modules 0.1.5+
Modules/
* removed unused code schema.c
Lib/
* ldap.__version__, ldap.__author__ and ldap.__license__ now
  imported from new sub-module ldap.pkginfo also to setup.py
* Added safety assertion when importing _ldap:
  ldap.pkginfo.__version__ must match _ldap.__version__
* removed stand-alone module dsml
* slapdtest.SlapdObject.restart() just restarts slapd
  without cleaning any data
* Compability changes for pyasn1 0.3.x or newer
  (thanks to Ilya Etingof and Christian Heimes)
* The methods SSSResponseControl.decodeControlValue() and
  VLVResponseControl.decodeControlValue() now follow the coding
  convention to use camel-cased ASN.1 name as class attribute name.
  The old class names are still set for back-ward compability
  but should not be used in new code because they might be removed
  in a later release.
* removed SSSRequestControl from ldap.controls.KNOWN_RESPONSE_CONTROLS
Tests/
* added explicit reconnect tests for ReconnectLDAPObject

OBS-URL: https://build.opensuse.org/request/show/541096
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=103
2017-11-12 17:41:56 +00:00
Michael Ströder
f9b13c74f4 Accepting request 532813 from home:stroeder:branches:devel:languages:python
- update to upstream release 2.4.45
  * fixed error handling

OBS-URL: https://build.opensuse.org/request/show/532813
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=101
2017-10-09 15:16:04 +00:00
Michael Ströder
4dd06e4070 Accepting request 522189 from home:stroeder:branches:devel:languages:python
- update to upstream release 2.4.44
  * GIL fix

OBS-URL: https://build.opensuse.org/request/show/522189
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=99
2017-09-07 22:24:58 +00:00
Michael Ströder
7bb61b3de4 Accepting request 521904 from home:stroeder:branches:devel:languages:python
- update to upstream release 2.4.43
  * SASL bind fix

OBS-URL: https://build.opensuse.org/request/show/521904
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=98
2017-09-07 08:00:08 +00:00
Michael Ströder
c08f73110b OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=96 2017-09-04 13:23:51 +00:00
Michael Ströder
029acb5036 Accepting request 520611 from home:stroeder:branches:devel:languages:python
- update to upstream release 2.4.42

OBS-URL: https://build.opensuse.org/request/show/520611
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=95
2017-09-04 09:01:35 +00:00
Michael Ströder
1f5dcbb9f7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=90 2017-07-12 18:07:29 +00:00
Michael Ströder
d03137630e Accepting request 506526 from home:stroeder:branches:devel:languages:python
update to upstream release 2.4.40

OBS-URL: https://build.opensuse.org/request/show/506526
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=86
2017-06-27 18:43:17 +00:00
Michael Ströder
e73388b5b5 Accepting request 500226 from home:stroeder:branches:devel:languages:python
update to 2.4.39

OBS-URL: https://build.opensuse.org/request/show/500226
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=84
2017-05-31 20:07:25 +00:00
Jan Matejek
df6d72be94 - provide python2-ldap to support singlespec packages
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=83
2017-05-18 15:06:32 +00:00
Michael Ströder
e7726b281f OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=82 2017-04-28 09:06:49 +00:00
Michael Ströder
55d160342a Accepting request 491443 from home:stroeder:branches:devel:languages:python
update to 2.4.37

OBS-URL: https://build.opensuse.org/request/show/491443
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=76
2017-04-27 08:50:05 +00:00
Michael Ströder
abfb769278 Accepting request 455457 from home:stroeder:branches:devel:languages:python
update to 2.4.30 (needed for pyasn1 0.2.x)

OBS-URL: https://build.opensuse.org/request/show/455457
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=74
2017-02-08 10:01:35 +00:00
Michael Ströder
8c1cfdc249 Accepting request 452486 from home:stroeder:branches:devel:languages:python
update to 2.4.29

OBS-URL: https://build.opensuse.org/request/show/452486
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=72
2017-01-25 20:14:59 +00:00
Michael Ströder
2e1f94900f Accepting request 440799 from home:stroeder:branches:devel:languages:python
update to 2.4.28 (tested)

OBS-URL: https://build.opensuse.org/request/show/440799
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=70
2016-11-18 07:36:22 +00:00
Michael Ströder
fcaeaa4aae Accepting request 416375 from home:stroeder:branches:devel:languages:python
update to 2.4.27

OBS-URL: https://build.opensuse.org/request/show/416375
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=69
2016-08-01 10:52:00 +00:00
Michael Ströder
d825ffc570 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=68 2016-07-24 16:45:22 +00:00
Michael Ströder
9878042f5d Accepting request 414895 from home:stroeder:branches:devel:languages:python
update to 2.4.26

OBS-URL: https://build.opensuse.org/request/show/414895
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=66
2016-07-24 16:39:37 +00:00
Michael Ströder
4b8c6061ab OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=65 2016-02-23 10:33:40 +00:00
Michael Ströder
4d4e0c80e6 Accepting request 358760 from home:stroeder:branches:devel:languages:python
removed obsolete stuff

OBS-URL: https://build.opensuse.org/request/show/358760
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=62
2016-02-10 17:20:20 +00:00
Michael Ströder
3e1f2e2468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=60 2016-01-18 21:28:34 +00:00
Michael Ströder
fbd29a6fcf Accepting request 354621 from home:stroeder:branches:devel:languages:python
update to 2.4.25

OBS-URL: https://build.opensuse.org/request/show/354621
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=59
2016-01-18 15:26:21 +00:00
Michael Ströder
3e7a0c2758 Accepting request 354389 from home:stroeder:branches:devel:languages:python
update to 2.4.23

OBS-URL: https://build.opensuse.org/request/show/354389
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=58
2016-01-17 15:29:20 +00:00
Michael Ströder
98a5271be7 Accepting request 340767 from home:stroeder:branches:devel:languages:python
update to 2.4.22 (successfully tested)

OBS-URL: https://build.opensuse.org/request/show/340767
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=56
2015-10-24 16:40:16 +00:00
Michael Ströder
3cf37120ce Accepting request 333792 from home:stroeder:branches:devel:languages:python
update to 2.4.21

OBS-URL: https://build.opensuse.org/request/show/333792
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=54
2015-09-25 16:46:34 +00:00
Michael Ströder
f3b7071444 Accepting request 315477 from home:stroeder:branches:devel:languages:python
update to 2.4.20, tested (with web2ldap) on Tumbleweed x86_64

OBS-URL: https://build.opensuse.org/request/show/315477
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=52
2015-07-07 13:40:45 +00:00
Michael Ströder
4e8ff9dad7 Accepting request 280783 from home:stroeder:branches:devel:languages:python
Update to upstream release 2.4.19

OBS-URL: https://build.opensuse.org/request/show/280783
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=50
2015-01-11 13:32:08 +00:00
Michael Ströder
4e8eb69fd7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=48 2014-10-09 08:26:30 +00:00
Michael Ströder
7ed7479e57 Accepting request 252584 from home:stroeder:branches:devel:languages:python
Update to upstream release 2.4.17

OBS-URL: https://build.opensuse.org/request/show/252584
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=45
2014-09-27 10:11:45 +00:00