ADAM - Can not log on with user name and password to ADAM instance

G

Guest

Hi,

I am using ADAM as my Data Store for my web application and although this
seems to be fine when using windows authentication with my local account when
I try to create a new user and use this to log on to the adam instance an
exception with the following message is thrown "Logon Failure: unknown
username or bad password"

I set up the user in the ADAM instance and have assigned this user as a
member of the Administrators group. I have also given the user a password.

Then I execute the following code

string path = @"LDAP://localhost:389/OU=Devellopment";
string userName = @"Fred"; //MY CREATED USER

try {
DirectoryEntry d = new DirectoryEntry(path);
d.Username = userName;
d.Password = "Password";
object obj = d.NativeObject; //forces checking of credentials
}
catch (Exception ex) {
Console.Writeln(ex.Message);
}

I have used LDP and can bind to this user using the specified username and
password.

When I try to connect to ADAM-ADSIEdit using the this account radio button
and the following credentials

username: Fred
password: "Password"

Another log on box pops up with message "Please enter a valid username and
password for connection".

I have read through the various documentation and checked through the user
groups and can find no way to connect to my adam instance when not using
windows authentication. I think it is something that I am doing wrong when
adding my user to the administrators group.

Any possible help will be excellent as im seriously stuck with this problem.
Thanks Fred
 
O

Ollie Riches

you have spelled 'Development' wrong in your LDAP path could this be the
problem?

HTH

Ollie Riches
 
G

Guest

Hi Ollie,

Thanks for pointing out the spelling misytake. This is not the problem
however as I can connect to my instance of ADAM ok
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top