• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

LDAP Authentication problem

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well i installed jforum on tomcat server and its working fine... now there is a small problem.... i hav integrated LDAP authentication......... it works is the sufix is complete.....
i mean it requires the complete dn to authenticate the user... like there is an 'OU' below another 'OU' i hav to hav them both in the suffix...... only after that i can log in......can anyone help me as to how to aoid it so that.... i use only one 'OU' in the sufix....but it searches for the user in all the 'OU's below it???
[originally posted on jforum.net by sourav.bardhan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The supplied LDAPAuthenticator code just creates a FQDN from the supplied user id and tries to get the attributes of the LDAP node pointed to by the FQDN. If it can't, it assumes the user doesn't exist.

You would need to modify this code to so that the DirContext object (dir) does a search of all nodes below your top node. Then process the found nodes appropriately. (deal with duplicates, not found, singleton).
[originally posted on jforum.net by monroe]
 
Remember to always leap before you look. But always take the time to smell the tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic