TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Server 2003

Notices

Active Directory: ldap_simple_bind_s error codes

Windows Server 2003


Reply
 
Thread Tools Display Modes
Old 28-08-2007, 06:56 AM   #1
bekz
Guest
 
Posts: n/a
Active Directory: ldap_simple_bind_s error codes

Hi All,

Is there any way to find out the exact error message in case of bind
failure.

After googling a bit i found two sol

1. ==> 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
2. ==>
says to analyze few attributes like accountExpires/userAccountControl

which one of these is better? apart from considering that 2nd method
has to do another search and find out the error.

Thanks in advance
becks

  Reply With Quote
Old 28-08-2007, 06:56 AM   #2
bekz
Guest
 
Posts: n/a
Re: Active Directory: ldap_simple_bind_s error codes

On Jul 11, 5:26 pm, Michael Ströder <> wrote:
> bekz wrote:
>
> > 1.http://forum.java.sun.com/thread.jspa?messageID=4227692==> saysto
> > 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


  Reply With Quote
Old 28-08-2007, 06:56 AM   #3
Michael Ströder
Guest
 
Posts: n/a
Re: Active Directory: ldap_simple_bind_s error codes

bekz wrote:
>
> 1. ==> 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. ==>
> 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.
  Reply With Quote
Old 28-08-2007, 06:56 AM   #4
Joe Kaplan
Guest
 
Posts: n/a
Re: Active Directory: ldap_simple_bind_s error codes

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"

--
"bekz" <> wrote in message
news:1184164078.102117.6410@n2g2000hse.googlegroup s.com...
On Jul 11, 5:26 pm, Michael Ströder <> 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



  Reply With Quote
Old 28-08-2007, 06:56 AM   #5
bekz
Guest
 
Posts: n/a
Re: Active Directory: ldap_simple_bind_s error codes

On Jul 11, 5:26 pm, Michael Ströder <> wrote:
> bekz wrote:
>
> > 1.http://forum.java.sun.com/thread.jspa?messageID=4227692==> saysto
> > 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


  Reply With Quote
Old 28-08-2007, 06:56 AM   #6
bekz
Guest
 
Posts: n/a
Re: Active Directory: ldap_simple_bind_s error codes

Thanks a lot Joe!

On Jul 11, 8:29 pm, "Joe Kaplan"
<> 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" <> wrote in message
>
> news:1184164078.102117.6410@n2g2000hse.googlegroup s.com...
> On Jul 11, 5:26 pm, Michael Ströder <> 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



  Reply With Quote
Old 28-08-2007, 06:56 AM   #7
Joe Kaplan
Guest
 
Posts: n/a
Re: Active Directory: ldap_simple_bind_s error codes

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"

--
"bekz" <> wrote in message
news:1184164078.102117.6410@n2g2000hse.googlegroup s.com...
On Jul 11, 5:26 pm, Michael Ströder <> 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



  Reply With Quote
Old 28-08-2007, 06:57 AM   #8
bekz
Guest
 
Posts: n/a
Re: Active Directory: ldap_simple_bind_s error codes

Thanks a lot Joe!

On Jul 11, 8:29 pm, "Joe Kaplan"
<> 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" <> wrote in message
>
> news:1184164078.102117.6410@n2g2000hse.googlegroup s.com...
> On Jul 11, 5:26 pm, Michael Ströder <> 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



  Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error during heavy searching of Active Directory Pickle Matrix Technician Windows Server 2003 4 28-08-2007 08:19 AM
Active Directory: ldap_simple_bind_s error codes bekz Windows Server 2003 1 28-08-2007 06:56 AM
ASP .NET ACTIVE DIRECTORY ERROR jerm Windows Server 2003 1 28-08-2007 06:52 AM
ASP .NET ACTIVE DIRECTORY ERROR jerm Windows Server 2003 1 28-08-2007 06:52 AM
Error Codes TattyFace Windows XP 4 16-08-2007 03:51 PM


< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 09:16 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional