Making the EOModel to work with LDAP
Making the EOModel to work with LDAP
- Subject: Making the EOModel to work with LDAP
- From: Gustavo Adolfo Pizano <email@hidden>
- Date: Wed, 6 May 2009 16:59:45 +0200
Hello, I searched on google, and found some stuff, but it seems that
the people already had the model some how build, so thats why Im
asking again, forgive me if Im bothering somebody with this topic, :P.
Also I found an eexample of a EOModel that connects to a LDAP server
via JNDI but hte link is broken :(.
Well, now that I understood better, and took a decision on how to
build this app, now I came with the question on building the EOModel
so it will work eith the LDAP server.
I have set up some Entities and some attributes in it. but then my
boss who is the one in charge of the LDAP server, (and BTW he is the
one who is giving me the "clues" on how to make the searches and
all), showed me that I can get certain attributes only, and not the
whole "entity".
For instance.
I have in the LDAP something like
cn=Contacts,o=xws
cn=Feriva,cn=Contacts,o=xws
cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws
contactType=FaxWork,cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws
contactType=Home,cn=4422-Feriva s.r.o.,cn=Feriva,cn=Contacts,o=xws
so :
XWS
---->Contacts
----------->Feriva
----->4422-Feriva s.r.o
------>FaxWork
------>HOme.
well something like that..
so I set up the adaptor of the DB config to JNDI; authentication --
simple. and the url username and password.
but then how do I create the model, because this is different than a
SQL server, this one(LDAP) its a tree like schema.
thanks in advance.
Gustavo
PD If you need more info about the attributes each entity has in the
LDAP let me know.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden