[python-ldap] Unit tests in python-ldap CVS trunk

Michael Ströder michael at stroeder.com
Sat Jan 7 08:56:05 CET 2012

David N. Smith wrote:
> On Jan 6, 2012, at 5:21 AM, "Michael Ströder"<michael at stroeder.com>  wrote:
>> The bad URL tests in Tests/t_ldapurl.py fail because syntax
>> checking for various data in LDAP URLs is not implemented yet but
>> David added very strict test cases. The parser is quite liberal and
>> leaves stricter checks up to the calling application. This is
>> debatable though.
> Thanks for clarifying that.  I'm of the opinion that strict checking
> isn't necessarily the best way to go.  As long as a URL either get's
> a good, properly configured connection or is rejected is good enough
> in my book.

Well, there are more cases where LDAP URLs are used, not only making a 
connection. An LDAP URL can be used e.g. for configuration with empty 
hostport part.

Ciao, Michael.

More information about the python-ldap mailing list