Traceback with "No such object" although there is indeed such an object (works with "ldapsearch")

David Leonard d at adaptive-enterprises.com.au
Wed Dec 19 15:51:22 CET 2007


Martin Winkler wrote:
> $ ldapsearch -x -LLL "(ou=People)" -b "dc=mydomain,dc=com"
>   

>>>> l = ldap.initialize("ldap://127.0.0.1")
>>>> l.simple_bind_s("","")
>>>> l.search_s('o=mydomain, c=com', ldap.SCOPE_SUBTREE, '(ou=People)')
>>>>         
>  


because "o=mydomain,c=com" != "dc=mydomain,dc=com" ?

-- 
David Leonard                           d at adaptive-enterprises.com.au
                                        Ph:+61 404 844 850

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20071220/7722a3d1/attachment.html>


More information about the python-ldap mailing list