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: Fri, 30 Sep 2005 08:31:10 +1000
Thanks Chuck.
I think its actually talking to the directory now, but its making a
new error :
java/lang/NullPointerException
Stack Trace:
java.lang.NullPointerException
at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch
(LdapNamingEnumeration.java:110)
at com.sun.jndi.ldap.LdapNamingEnumeration.nextAux
(LdapNamingEnumeration.java:244)
at com.sun.jndi.ldap.LdapNamingEnumeration.nextImpl
(LdapNamingEnumeration.java:235)
at com.sun.jndi.ldap.LdapNamingEnumeration.next
(LdapNamingEnumeration.java:183)
at _JNDIWorker.doNext(_JNDIWorker.java:202)
at _JNDIWorker$2.performOperation(_JNDIWorker.java:190)
at JNDIPlugIn.performChannelOperation(JNDIPlugIn.java:284)
at _JNDIWorker.next(_JNDIWorker.java:195)
at JNDIChannel.fetchRow(JNDIChannel.java:324)
Anyone have any ideas about this one ?
On 30/09/2005, at 2:51 AM, Chuck Hill wrote:
On Sep 28, 2005, at 8:58 PM, Owen McKerrow wrote:
The URL I'm using is ldap://ldap.uow.edu.au:389/o=university of
wollongong,c=AU
URLs can't have spaces. works for me.
Chuck
On 29/09/2005, at 1:40 PM, Chuck Hill wrote:
On Sep 28, 2005, at 6:24 PM, Owen McKerrow wrote:
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 ??
Try this:
(cn=Owen McKerrow,o=university of wollongong,c=AU)
What LDAP url are you using?
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)
Looks like is it not finding something in the LDAP data:
LDAP_NO_SUCH_OBJECT: Indicates the target object cannot be found.
This code is not returned on following operations:
Search operations that find the search base but cannot find any
entries that match the search filter.
Bind operations.
I've not seen this before, but my guess would be how / where your
are connecting to the server tree vs where you are querying.
Chuck
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:
40global-village.net
This email sent to email@hidden
--
Coming in 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve
specific problems. http://www.global-village.net/products/
practical_webobjects
Owen McKerrow
WebMaster, emlab
http://emlab.uow.edu.au
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
"As of tomorrow, employees will only be able to access the
building using individual security cards. Pictures will be taken
next Wednesday employees will receive their cards in two weeks."
- "Dilbert Quotes" Winner, Fred Dales, Microsoft Corp
--
Coming in 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/
practical_webobjects
Owen McKerrow
WebMaster, emlab
http://emlab.uow.edu.au
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
"I like the way this project has somehow, against all common sense,
got itself made."
- Peter Jackson, "The Lord of The Rings"
_______________________________________________
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