Please backport python-ldap3 0.9.4.2-1 (universe) from utopic

Bug #1464090 reported by Tim Landscheidt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Precise Backports
Invalid
Undecided
Unassigned
trusty-backports
Fix Released
Undecided
Unassigned

Bug Description

Please backport python-ldap3 0.9.4.2-1 (universe) from utopic to precise, trusty.

Reason for the backport:
========================
Cf. https://phabricator.wikimedia.org/T101824.

Testing:
========
Mark off items in the checklist [X] as you test them, but please leave the checklist so that backporters can quickly evaluate the state of testing.

You can test-build the backport in your PPA with backportpackage:
$ backportpackage -u ppa:<lp username>/<ppa name> -s utopic -d precise python-ldap3
$ backportpackage -u ppa:<lp username>/<ppa name> -s utopic -d trusty python-ldap3

* precise:
[ ] Package builds without modification
[ ] python-ldap3 installs cleanly and runs
[ ] python3-ldap3 installs cleanly and runs
* trusty:
[X] Package builds without modification
[X] python-ldap3 installs cleanly and runs
[X] python3-ldap3 installs cleanly and runs

No reverse dependencies

Revision history for this message
Tim Landscheidt (scfc) wrote :

I have uploaded packages to the PPA at https://launchpad.net/~scfc/+archive/ubuntu/trusty-backports/+packages (contains packages for Trusty *and* Precise, sorry for the misleading title). They need yet to be tested for functioning.

Tim Landscheidt (scfc)
description: updated
Revision history for this message
Tim Landscheidt (scfc) wrote :

Tested with:

| #!/usr/bin/python3
|
| import re
|
| import ldap3
|
| if __name__ == '__main__':
| # Get user name and password.
| with open('/etc/ldap.conf', 'r') as f:
| for line in f.readlines():
| if line == '\n':
| continue
| m = re.match('^([^ ]+) +(.*?) *\n$', line)
| if m.group(1) == 'binddn':
| binddn = m.group(2)
| elif m.group(1) == 'bindpw':
| bindpw = m.group(2)
|
| # Connect to LDAP server.
| server = ldap3.Server('ldap-eqiad.wikimedia.org')
| conn = ldap3.Connection(server, read_only=True,
| user=binddn, password=bindpw)
| conn.bind()
| conn.start_tls()
|
| # Query.
| conn.search('ou=hosts,dc=wikimedia,dc=org',
| '(puppetVar=instanceproject=%s)' % 'tools',
| ldap3.SEARCH_SCOPE_WHOLE_SUBTREE,
| attributes=ldap3.ALL_ATTRIBUTES)
| for responseitem in conn.response:
| print(repr(responseitem))

for python3-ldap3 and amending the shebang line and the print call for python-ldap3 (Python 2).

Changed in trusty-backports:
status: New → Confirmed
description: updated
Revision history for this message
Tim Landscheidt (scfc) wrote :

Policy question: The description for the package python-ldap3 (not python3-ldap3) in the backported version for Trusty is wrong; it refers to "Python 3" while it should say "Python 2". Should this mistake be fixed as part of the backport, or should the backport only address issues that arise from backporting the package from one release to another?

Revision history for this message
Micah Gersten (micahg) wrote :

If it's not correct in the source release, it should be fixed in a future release and then that version backported rather than fixing it in the backport.

Changed in trusty-backports:
status: Confirmed → In Progress
assignee: nobody → Micah Gersten (micahg)
Revision history for this message
Micah Gersten (micahg) wrote :

I've gone ahead and uploaded the utopic version based on testing provided. If you'd like a newer version (possibly when the description gets fixed), feel free to request a new backport. Thank you for your interest in Ubuntu Backports.

Changed in trusty-backports:
assignee: Micah Gersten (micahg) → nobody
status: In Progress → Fix Released
Revision history for this message
Tim Landscheidt (scfc) wrote :

Thanks for the backport to Trusty! I'm no longer interested in the Precise one.

Changed in precise-backports:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.