[Zope] LDAPUserFolder question.

Jens Vagelpohl jens@zope.com
Tue, 10 Jun 2003 11:11:46 -0400

> I have an LDAP question here.  When configuring the LDAP User folder,  
> The User
> Base DN looks something like this:
> ou=Administration,ou=Occupations,ou=Internal,ou=Personnel,dc=<MyClient> 
> ,dc=<Clients
>  Domain>
> The problem I have is that the first ou, which I list as  
> Administration, is
> really a variable, i.e. I could have ou=Administration, or ou=Finance,  
> etc. etc.
> etc. depending on who logs in.
> How do I tell LDAPUserFolder (or LDAP itself) that the first ou is a  
> variable
> field rather than a constant?  I tried doing ou=*,ou=... but that  
> doesn't work.

you cannot. what you need to do is trim the base DN down to the branch  
that they all share. in your case that would be

> ou=Occupations,ou=Internal,ou=Personnel,dc=<MyClient>,dc=<Clients