How to get a user's OUs

Michael Ströder michael at
Mon Sep 8 23:47:19 CEST 2008

Gustavo Narea wrote:
> How can I retrieve the Organizational Units a user belongs to via python-ldap?

This question is not very clear. Do you mean the attribute 'ou' of the
user's entry or the ou-Container the user's entry is in? If you're
working with AD it's probably the latter. Then it's the DN of the user's
entry parent entry.

Ciao, Michael.

More information about the python-ldap mailing list