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
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