Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

realm jndi active directory- user details

 
Jon Hodgkinson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
noone have a clue about this?
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PatienceIsAVirtue
 
Jon Hodgkinson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Its urgent
Shyam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic