Re: Making the EOModel to work with LDAP
Re: Making the EOModel to work with LDAP
- Subject: Re: Making the EOModel to work with LDAP
- From: Gustavo Adolfo Pizano <email@hidden>
- Date: Wed, 6 May 2009 20:04:18 +0200
yes, I fact I based my code to make the authentication to the server,
which was successful, but I didn't see how they set up the EOModel for
LDAP, I saw was how thye set up the model for the different
authentication procedures. I downloaded the code form the apress, and
look at it closely, and realize they used inheritance for the
different types of authentication, but in the case in LDAP, the dn of
ldap and server were coded inside the EO for LDAPAuthentication... and
that's what I did to authenticate, but no to construct a whole model
as I need.
Anyway I will take a look at it once again, maybe I missed something.
Gustavo
On May 6, 2009, at 7:43 PM, David Avendasora wrote:
Hey Gustavo,
Do you have Practical WebObjects, Right?
Chapter 4 goes into a lot of detail on how to build authentication
into a WO application including how to setup the model, and it
demonstrates how to setup LDAP-based authentication.
I would start with that. If you still run into problems there will
likely be more people that can help you because you will have a
solid foundation already.
Dave
On May 6, 2009, at 10:59 AM, Gustavo Adolfo Pizano wrote:
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
_______________________________________________
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