Re: Active Directory: ldap_simple_bind_s error codes
- From: bekz <becks007@xxxxxxxxx>
- Date: Wed, 11 Jul 2007 16:14:57 -0000
Thanks a lot Joe!
On Jul 11, 8:29 pm, "Joe Kaplan"
<joseph.e.kap...@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
The extended server error codes are pretty helpful, as they tell you the
exact reason the bind failed. This only works for simple bind (not for
secure for whatever reason), but it is very useful. It is probably easier
than trying to determine if the user is locked, account expired, account
disabled, password expired or password set to change at next logon.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"http://www.directoryprogramming.net
--"bekz" <becks...@xxxxxxxxx> wrote in message
news:1184164078.102117.6410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jul 11, 5:26 pm, Michael Ströder <mich...@xxxxxxxxxxxx> wrote:
bekz wrote:
1.http://forum.java.sun.com/thread.jspa?messageID=4227692==> says to
use ldap_get_option() to get the error string and then parse and
extract the error codes. To my understanding this is an extended error
message
You should do this in any case.
2.http://blogs.msdn.com/jpelak/archive/2006/01/08/510563.aspx==>
says to analyze few attributes like accountExpires/userAccountControl
This could be an additional source for information what went wrong. But
these are proprietary attributes in AD. You may also not have the right
to read the user entry before binding.
Ciao, Michael.
Hi Ciao,
Thanks for the reply
I will be having the access to do the search which is achieved using
another user credentials.
Thanks
becks
.
- References:
- Active Directory: ldap_simple_bind_s error codes
- From: bekz
- Re: Active Directory: ldap_simple_bind_s error codes
- From: Michael Ströder
- Re: Active Directory: ldap_simple_bind_s error codes
- From: bekz
- Re: Active Directory: ldap_simple_bind_s error codes
- From: Joe Kaplan
- Active Directory: ldap_simple_bind_s error codes
- Prev by Date: Re: adprep failure, adding 2003 R2 x64 server to 2000 domain Optio
- Next by Date: Global Catalog Server Configuration
- Previous by thread: Re: Active Directory: ldap_simple_bind_s error codes
- Next by thread: RE: event id 1411
- Index(es):
Relevant Pages
|