Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

Set Context.REFERRAL to "follow" #269

Closed vtGeo closed 7 years ago

vtGeo commented 7 years ago

Hello!

This is not an issue but rather a question. I want to connect the catalog to our LDAP/Active Directory. Since our Active directory structure is a bit complex, I need the catalog to search from the root. In order to do that, I think that I simply must set env.put(Context.REFERRAL,"follow"); at some point, but I'm having a hard time finding where. Also, I tried setting user-search-base="" thinking that it might be searching from the root, but no success (NameNotFoundException).

Any clues? --Thanks a lot!

Here a post that explains pretty well the situation. Stack Overflow Post

umacgillivray commented 7 years ago

If you want to set env.put(Context.REFERRAL,"follow"); , it can be done within the "connect" method of the following class (you'll need to recompile): https://github.com/Esri/geoportal-server/blob/develop/geoportal/src/com/esri/gpt/framework/security/identity/ldap/LdapClient.java

vtGeo commented 7 years ago

hey thanks a lot! However, I meant to post this question in the geoportal-server-catalog project... sorry about that. I'll close this one and I already posted the same question on the other project.