• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

LDAP 'meaningful response' question

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Using strictly LDAP, is there any way to get meaningful responses back from an AD server? As in, are there ways to receive password expiration or pending expiration once a user is located in the directories? I'm using the where environment is the hashtable full of values and it does the look up. I'm beginning to believe this is too basic for my needs.

In all my tests I'm only receiving an exception and no extra data. The LDAP error 'Invalid Credentials' is the response I get for both wrong username/password as well as if it's an expired password...but I actually need a way to tell the user 'password expired.'

I was hoping I'd also receive some kind of constant I could translate to the user...can this be done with LDAP?

Thank you.
 
G Lambert
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, it appears I'll answer my own question as I think I've found the answer and it is NO.

http://java.sun.com/products/jndi/tutorial/ldap/models/exceptions.html

- lists all possible response codes from LDAP. Asking for anything outside this list won't be accomplished using the protocol alone (or even in conjunction, I don't know).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic