JDBC Model - to - JNDI Model Relationship Question
JDBC Model - to - JNDI Model Relationship Question
- Subject: JDBC Model - to - JNDI Model Relationship Question
- From: Anthony Glover <email@hidden>
- Date: Fri, 27 Feb 2004 15:17:48 -0600
Hi,
I have two models:
One is a JDBC model with an AppUser entity.
The other is a JNDI model with an InetOrgPerson entity.
The InetOrgPerson entity is based upon an OpenLDAP schema and contains
a relativeDistinguishedName as the primary key.
I also have this same attribute in my AppUser entity and it is used to
establish a relationship between the two models.
The values I use for the key are like "uid=myusername". Also, my search
base is something like "ou=employees,ou=people,dc=company,dc=com". Note
that my directory tree also has
"ou=others,ou=people,dc=company,dc=com".
This all seems to work and I am able to traverse from an AppUser over
to an InetOrgPerson.
The problem that I have is that I am now needing to be able to traverse
a relationship from AppUser over to InetOrgPerson in which the search
base may be either an 'employee' or an 'others'. I think the only
solution to my problem is to combine the two branches and place
everyone in the same "ou=people,dc=company,dc=com" tree and eliminate
the extra division of employees and other.
Has anyone ran into this type of problem before with LDAP modeling? Any
other ideas on best how to resolve this issue. I'm hesitant to combine
the groups of users, but it was just an arbitrary division on my part
when setting up the directory and it is probably overkill anyway.
Thanks,
Tony
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.