File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

realm jndi active directory- user details

 
Jon Hodgkinson
Greenhorn
Posts: 6
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
noone have a clue about this?
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PatienceIsAVirtue
 
Jon Hodgkinson
Greenhorn
Posts: 6
  • 0
  • 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
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic