Python config parsing code bug.

Bug #1489235 reported by Richard Bychowski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SchoolTool
New
Undecided
Unassigned
schooltool.ldap (Ubuntu)
New
Undecided
Unassigned

Bug Description

This is a correct LDAP URL syntax:

   query_users uid
ou=users,dc=example,dc=org?sub?(&(objectClass=inetOrgPerson)(employeeType=active))

Code at http://bazaar.launchpad.net/~schooltool-owners/schooltool.ldap/trunk/view/head:/src/schooltool/ldap/config.py?sort=filename parses the '(' wrongly after "sub".

You have to remove the closing brackets for it to work, which looks like:

   query_users uid
ou=users,dc=example,dc=org?sub?&(objectClass=inetOrgPerson)(employeeType=active)

Which is wrong.

LDAP URL's are busted and should be as per:

https://tools.ietf.org/html/rfc4515
https://tools.ietf.org/html/rfc4516

Tags: config ldap
description: updated
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.