Ahh
So, looks like you can't search without a bind, which means you must know the bindDN format - you can't look it up.
The fallback method may be the best approach.
Terry
From: jose garcia [mailto:josegar74@anonymised.com]
Sent: Thursday, 11 November 2010 3:55 PM
To: Rankine, Terry (CESRE, Kensington)
Cc: cstieber@anonymised.com; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] LDAP support in 2.6 version
Hi Terry
Thanks for explanation. The error in the log is:
2010-10-30 14:22:05,814 WARN [geonetwork.ldap] - Raised exception during LDAP access
2010-10-30 14:22:05,814 WARN [geonetwork.ldap] - (C) Message :[LDAP: error code 1 - 00000000: LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece ]
I'll try your suggestion to build the old path if something is wrong with the find technique.
Regards,
Jose García
On Thu, Nov 11, 2010 at 3:14 AM, <Terry.Rankine@anonymised.com> wrote:
LDAP support patch was designed to work out what the DN to bind as was, then use that during the bind.
It takes the uid, and searches for it in LDAP, to get its bindDN.
For active directory,
1. Can you search the tree anonymously?
2. Can you show us what an entry looks like in ldif form.
What errors do you get in the geonetwork log file?
As for the patch - you could always add
String path;
try {
path = LDAPUtil.findUserDN(getUrl(), uidFilter, usersBaseDN);
}
if (path == null || path.length() == 0)
path = the old path constructor.
Would account for a null find, and assume that something is wrong with the find technique.
Terry
-----Original Message-----
From: cstieber [mailto:cstieber@anonymised.com]
Sent: Thursday, 11 November 2010 4:22 AM
To: geonetwork-users@lists.sourceforge.net<mailto:geonetwork-users@anonymised.comurceforge.net>
Subject: Re: [GeoNetwork-users] LDAP support in 2.6 version
I have been trying to set up geonetwork with LDAP and trying to connect to
Active Directory.. so far no luck.
these are the parameters i am using:
Host: nrn.nrcan.gc.ca<http://nrn.nrcan.gc.ca>
Port: 389
Base: dc=nrn,dc=nrcan,dc=gc,dc=ca
Users: users
Name: cn
Profile:
any suggestions?
Thanks,
Chris
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/LDAP-support-in-2-6-version-tp5720320p5726343.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork