Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Tomcat and Active Directory

 
Author
Posts: 144
5
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope to get Tomcat to use Active Directory. I am using tomcat 5.5.9. I have a simple application that uses form authentication. I have the login.jsp with form submitting to j_secuity_check. I tested this using the tomcat-user.xml. And now I want to add in Active Directory. I have tried adding in this realm to the server.xml


Is this look correct? I am getting this exception:

javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr:
DSID-0C09030B, comment: AcceptSecurityContext error, data 525, v893 ]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2988)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)

Does anyone have a working entry I could see or any guidance? In the documentation it says I need a jar, I wouldn't think Microsoft would make a jar for us Java people

Thanks,
Tom
 
Tom Henricksen
Author
Posts: 144
5
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I chnaged the server.xml to this and it started without error. I presume I need to comment out this first part to add the new realm?

When I tried to authenticate though I was still going against the tomcat users file I have. Is there another piece in the server.xml that needs to be commented out?
Thanks,
Tom
 
Tom Henricksen
Author
Posts: 144
5
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone used tomcat with any other LDAP provider? What entries did you put in the server.xml?

Thanks,
Tom
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!