GeeCON Prague 2014*
The moose likes Tomcat and the fly likes realm jndi active directory- user details Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "realm jndi active directory- user details" Watch "realm jndi active directory- user details" New topic
Author

realm jndi active directory- user details

Jon Hodgkinson
Greenhorn

Joined: Nov 16, 2006
Posts: 6
I've successfully connected to active directory through realm and returned the user groups, now im trying to return some extra details about the user such as their email address.

<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionURL="ldap://xxxx/"
connectionName="xxx"
connectionPassword="xxx"

userBase="OU=xxx,DC=xxx,DC=xx,DC=com"
userSearch="(sAMAccountName={0})"

userRoleName="memberOf"


roleSubtree ="true"

userSubtree="true"
/>

This returns the roles of the user and I can get the email address by setting
userRoleName="mail"


But I dont seem to be able to return both. Im totally lost on this so any help is much appreciated. All I need is a pointer in the right direction.

Many Thanks in advance
Jon Hodgkinson
Greenhorn

Joined: Nov 16, 2006
Posts: 6
noone have a clue about this?
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
PatienceIsAVirtue
Jon Hodgkinson
Greenhorn

Joined: Nov 16, 2006
Posts: 6
Tried to be patient sorry,

I've tried everything I can think of, so Im assuming its not possible. It is annoying there is such a lack of knowledge on this subject.
shyamkgurram kumar
Greenhorn

Joined: Feb 22, 2007
Posts: 1
Hi,

Please help me in getting the users from the active directory.

Its urgent
Shyam
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: realm jndi active directory- user details