This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes ldap hell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "ldap hell" Watch "ldap hell" New topic
Author

ldap hell

Vinnie Jenks
Ranch Hand

Joined: Apr 26, 2004
Posts: 207
I'm in LDAP hell...I simply cannot get this chunk of code to authenticate on our active directory server.

First off, I don't know all that much about AD, LDAP or related stuff. Everything I know about JNDI I've learned in the last 2 hours.

I've been tasked w/ simply retrieving a list of users in AD and listing them out on a page. I wrote a simple class cobbled together from code I found while googling around.

Here's my class:



First I was getting an exception telling me that i was missing the file C:\winnt\krb5.ini. I found an example online, filled out to the best of my knowledge, and placed it in my winnt folder.

The contents of that file are:



Here's the exception I'm getting now:



I've been googling & tweaking for hours...no luck.

I'm completely at wits end...and not for lack of trying. I have no idea what further secret hoops I have to jump through to get this to work...can anyone help me out?

Thanks!

-v
Vinnie Jenks
Ranch Hand

Joined: Apr 26, 2004
Posts: 207
*bump*

Not trying to be irritating here...just wondering if there's any hope for this situation? I've been googling for two weeks now w/ no progress...not one forum has posted a solution for me either...it's looking bad!
 
 
subject: ldap hell
 
Similar Threads
How to approach Single Sign On(SSO)
Active Directory Authentication using java
Help to solve reset User LDAP problem
Change Ldap Password
AD LDAP Authentication & Data Fetch Error.