Re: Connecting to LDAP with EOModler
Re: Connecting to LDAP with EOModler
- Subject: Re: Connecting to LDAP with EOModler
- From: Owen McKerrow <email@hidden>
- Date: Thu, 29 Sep 2005 11:24:09 +1000
Ok I looked at the LDAP tree using LDapper and manually made a simple
Person entity.
This is the info I get from LDApper
dn: uid=3826,ou=People,o=University of Wollongong, c=au
objectClass: top
objectClass: person
objectClass: organizationalperson
objectClass: inetOrgPerson
objectClass: ctCalUser
sn: McKerrow
cn: Owen McKerrow
givenName: Owen
telephoneNumber: 5517
description: -
uid: 3826
uid: owen
ou: Education
physicalDeliveryOfficeName: Faculty of Education
title: Mr
So I made an entity with the following attributes and settings for
testing purposes :
Attribute : fullName, coloum : cn, external type : Directory String
Attribute : lastName, coloum : sn, external type : Directory String
Attribute : uid, coloum : uid, external type : relativeDistinguishedName
However Im still receiving strange messages.
1) If I have a user name and password (cn=Owen McKerrow,o=university
of wollongong,c=AU) entered in to the Adaptor Info I get this :
JNDIAdaptorException: Cannot create InitialDirContext:
javax.naming.NamingException: Cannot parse url: wollongong,c=AU [Root
exception is java.net.MalformedURLException: Invalid URI:
wollongong,c=AU]
Stack Trace:
JNDIAdaptorException: Cannot create InitialDirContext:
javax.naming.NamingException: Cannot parse url: wollongong,c=AU [Root
exception is java.net.MalformedURLException: Invalid URI:
wollongong,c=AU]
at JNDIPlugIn.createInitialDirContext(JNDIPlugIn.java:198)
at JNDIContext._connect(JNDIContext.java:113)
at JNDIContext._tryConnect(JNDIContext.java:102)
at JNDIContext._channelWillOpen(JNDIContext.java:68)
at JNDIChannel.openChannel(JNDIChannel.java:127)
Aren't "organization" names allowed to have spaces in them ? It seems
to me to be trying to parse just the wollongong bit, not the whole
thing ??
2) If I leave the username and password entry blank ( which works
fine from LDapper) and try and inspect my person entity I get this
message
JNDIAdaptorException: Cannot search (&(objectClass=person)):
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such
Object]; remaining name ''
Stack Trace:
JNDIAdaptorException: Cannot search (&(objectClass=person)):
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such
Object]; remaining name ''
at _JNDIWorker.doApply(_JNDIWorker.java:181)
at _JNDIWorker$1.performOperation(_JNDIWorker.java:152)
at JNDIPlugIn.performChannelOperation(JNDIPlugIn.java:284)
at _JNDIWorker.apply(_JNDIWorker.java:158)
at JNDIChannel.selectAttributes(JNDIChannel.java:252)
Any help would be greatly appreciated.
Thanks
Owen
On 29/09/2005, at 10:01 AM, Owen McKerrow wrote:
Hi All,
Im having a brief foray into WO and LDAP . However I have already
run into a little problem ( I am a complete newbie when it comes to
LDAP).
Cannot get schema: javax.naming.NameNotFoundException: [LDAP: error
code 32 - No Such Object]; remaining name ''
Im assuming this means that the schema isn't public ? As per the
API notes
"The JNDI adaptor supports reverse engineering of data sources, but
reverse engineering can only be used if the server to be modeled
accepts connections and makes information about the schema publicly
available. Not all public LDAP servers publish a schema"
So how does one go about getting the schema then ? Im only going to
be using it for lookups, I won't be writing back to it.
Owen McKerrow
WebMaster, emlab
http://emlab.uow.edu.au
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - -
'The test of a first-rate intelligence is the ability to hold two
opposed ideas in the mind at the same time and still be able to
function.'
-F.Scott Fitzgerald,
_______________________________________________
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