Your message dated Thu, 21 Jul 2022 12:04:32 +0000
with message-id <[email protected]>
and subject line Bug#935985: fixed in python-ldap3 2.9.1-1
has caused the Debian Bug report #935985,
regarding python3-ldap3: Value "0" not accepted for "pwdLastSet" attribute
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
935985: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935985
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-ldap3
Version: 2.4.1-1
Severity: normal
Tags: patch

Dear Maintainer,
My usecase is the creation of new accounts within a windows active directory 
enviroment.
The new account gets a one-time password which has to be changed on first login.
To use this functionality, the "pwdLastSet" attribut of the account has to be 
set to 0,
but the validation functionality of ldap3 only permits the value -1.

The problem is in the file
"/usr/lib/python3/dist-packages/ldap3/protocol/formatters/validators.py" and I
fixed it with this patch:

69c69
<     """Accept -1 only (used by pwdLastSet in AD)
---
>     """Accept -1 or 0 only (used by pwdLastSet in AD)
72c72
<         if input_value == -1 or input_value == '-1':
---
>         if input_value == -1 or input_value == '-1' or input_value == 0 or 
> input_value == "0":
76c76,77
<         if len(input_value) == 1 and input_value == -1 or input_value == '-1':
---
>         if (len(input_value) == 1 and input_value == -1 or input_value == 
> '-1' or
>             input_value == 0 or input_value == "0"):


-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-ldap3 depends on:
ii  python3         3.7.3-1
ii  python3-pyasn1  0.4.2-3

python3-ldap3 recommends no packages.

python3-ldap3 suggests no packages.

-- no debconf information
69c69
<     """Accept -1 only (used by pwdLastSet in AD)
---
>     """Accept -1 or 0 only (used by pwdLastSet in AD)
72c72
<         if input_value == -1 or input_value == '-1':
---
>         if input_value == -1 or input_value == '-1' or input_value == 0 or 
> input_value == "0":
76c76,77
<         if len(input_value) == 1 and input_value == -1 or input_value == '-1':
---
>         if (len(input_value) == 1 and input_value == -1 or input_value == 
> '-1' or
>             input_value == 0 or input_value == "0"):
69c69
<     """Accept -1 only (used by pwdLastSet in AD)
---
>     """Accept -1 or 0 only (used by pwdLastSet in AD)
72c72
<         if input_value == -1 or input_value == '-1':
---
>         if input_value == -1 or input_value == '-1' or input_value == 0 or 
> input_value == "0":
76c76,77
<         if len(input_value) == 1 and input_value == -1 or input_value == '-1':
---
>         if (len(input_value) == 1 and input_value == -1 or input_value == 
> '-1' or
>             input_value == 0 or input_value == "0"):

--- End Message ---
--- Begin Message ---
Source: python-ldap3
Source-Version: 2.9.1-1
Done: Michael Fladischer <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-ldap3, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Fladischer <[email protected]> (supplier of updated python-ldap3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 21 Jul 2022 11:35:10 +0000
Source: python-ldap3
Architecture: source
Version: 2.9.1-1
Distribution: unstable
Urgency: low
Maintainer: Debian Python Team <[email protected]>
Changed-By: Michael Fladischer <[email protected]>
Closes: 935985
Changes:
 python-ldap3 (2.9.1-1) unstable; urgency=low
 .
   * Team upload.
   * New upstream release (Closes: #935985).
   * Set Rules-Requires-Root: no.
   * Bump debhelper version to 13.
   * Bump Standards-Version to 4.6.1.0.
   * Use uscan version 4.
   * Clean up ldap3.egg-info/ to allow two builds in a row.
   * Install README.rst in python3-ldap3 binary package.
Checksums-Sha1:
 4967a5368b1981dd2da8725d0ca81d6e781680a4 1682 python-ldap3_2.9.1-1.dsc
 8b74f0970f9b7d368cea1303f9df03c42a71efce 398830 python-ldap3_2.9.1.orig.tar.gz
 501d4b35327db7ad928bb10ac46c95acac8459fa 3472 
python-ldap3_2.9.1-1.debian.tar.xz
 54b82218d8d8a949428babc0348e9df37d7641d3 6224 
python-ldap3_2.9.1-1_arm64.buildinfo
Checksums-Sha256:
 53d3dd47e32f9b420c3e67dfdd410ec7803a6d54c8c5cd5d053355d3da99c504 1682 
python-ldap3_2.9.1-1.dsc
 f3e7fc4718e3f09dda568b57100095e0ce58633bcabbed8667ce3f8fbaa4229f 398830 
python-ldap3_2.9.1.orig.tar.gz
 db1e200c04381e8548841d38f96cfa5fcaa9fb748a9d59dea86e5392a52c9775 3472 
python-ldap3_2.9.1-1.debian.tar.xz
 4e8909cc1cc5bb5992be3f43f2598788f00843c277c12d94d6500d5f904cea47 6224 
python-ldap3_2.9.1-1_arm64.buildinfo
Files:
 20784ae2f4bc1ca02a173be2541f809a 1682 python optional python-ldap3_2.9.1-1.dsc
 12bbef3ec3dac315a9768eb0c2e4b4ee 398830 python optional 
python-ldap3_2.9.1.orig.tar.gz
 40fa51e91708e64df6a3671576140044 3472 python optional 
python-ldap3_2.9.1-1.debian.tar.xz
 2cfcafede46bc8d36e8cdf4a1744b172 6224 python optional 
python-ldap3_2.9.1-1_arm64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEqVSlRXW87UkkCnJc/9PIi5l90WoFAmLZOvEACgkQ/9PIi5l9
0Wo5Swf+OJjTA6B4+L+8fajeQUbR9JpVUaYD7hSPYca/j/ohwEazQUEtiefSFRaZ
oJVwJ2ikpB28gL9rUgxClnY+QDv7Vh49v62VfTGMok+m2mJ4W8lBMKzj4t1iwD9z
JjLZayd0GDb6jNzjIJkFp4rh59aqK1yP+dNkHEKQqyHbp2IMHkE2GbBVWOL9gWw1
uTzpT5ecSa253kiF3Wk2bsX02YJVNjqLGTcZmFUFoBN7EDTzL/CCMO+qwEGn90BB
zRlhU3+LZLynVflMLWzAsqmfhFHEbA7scko+ebHhRV0zofTbTgcgKyafQeP+TlFJ
V3W/r5mJBOFXDJyGYzb3tJ+OZka+tw==
=eyCj
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to