• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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).
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic