Re: ADAM Authentication



ADAM users must be authenticated with either Simple bind or Digest auth.
You are using SASL bind with SPNEGO which only authenticates Windows users
via pass through authentication.

In LDP, change to simple bind and try again. Also, make sure the ADAM user
is enabled as well as having a password set.

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
--
"louis" <louis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:810A83BC-B59F-4F42-AF00-A971175052BC@xxxxxxxxxxxxxxxx
I have setup ADAM using the "Mary Baker" examples in the guide, used the
dsmgt to change the security, set a password of "ABC123", turned the
security
back on using dsmgt. I cannot get any of several test routines to
authenticate, also will not authenticate using the "LDP" utility. Output
here:
=================================
0 = ldap_set_option(ld, LDAP_OPT_ENCRYPT, 0)
res = ldap_bind_s(ld, NULL, &NtAuthIdentity, NEGOTIATE (1158)); // v.3
{NtAuthIdentity: User='CN=Mary Baker,ou=ADAM users,o=Microsoft,c=us'; Pwd=
<unavailable>; domain = 'LouisXP'.}
Error <49>: ldap_bind_s() failed: Invalid Credentials.
Server error: 8009030C: LdapErr: DSID-0C090441, comment:
AcceptSecurityContext error, data 52e, va28
Error 0x8009030C The logon attempt failed
-----------
I have changed the user to enabled (as documented in several posts). This
is all running on the same XP PRO sp2 machine.
Any help appreciated. Thanks.


.



Relevant Pages

  • Re: ADAM Authentication
    ... Your code will be different for authenticating users in ADAM vs. Active ... you need to use simple bind while with AD you ... If you just want to authenticate a user, you only need a bind operation. ... Joe Kaplan-MS MVP Directory Services Programming ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM & SASL Bind for Windows Security Principals
    ... - Use simple bind to authenticate an ADAM user ... Use simple bind to authenticate Windows user who is configured as a bind ... proxy object in ADAM ...
    (microsoft.public.windows.server.active_directory)
  • Re: How do I bind to LDAP with a username/password
    ... authenticating against an LDAP server with a username and password. ... Failure to bind indicates a failure to authenticate. ... You can attempt to bind with some given credentials, ...
    (comp.lang.java.programmer)
  • Re: How do I bind to LDAP with a username/password
    ... authenticating against an LDAP server with a username and password. ... Failure to bind indicates a failure to authenticate. ... You can attempt to bind with some given credentials, ...
    (comp.lang.java.programmer)
  • Re: ADAM Authentication
    ... Changing to simple bind seem to work. ... sUserName = "Mary Baker" ... Dim dsSystem As New DirectorySearcher ... authenticate, also will not authenticate using the "LDP" utility. ...
    (microsoft.public.windows.server.active_directory)