473,320 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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
Oct 17 '05 #1
2 5224
you have spelled 'Development' wrong in your LDAP path could this be the
problem?

HTH

Ollie Riches

"Frederick" <Fr*******@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
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

Oct 17 '05 #2
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

"Ollie Riches" wrote:
you have spelled 'Development' wrong in your LDAP path could this be the
problem?

HTH

Ollie Riches

"Frederick" <Fr*******@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
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


Oct 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Terri | last post by:
When I make change in the Connection screen in an adp I get the message "Your password will not be encrypted before it is saved to the file. Users who view the source contents of the file will be...
3
by: Lekyan | last post by:
I have problem setting the password for an ADAM user using C#. I used the SetPassword code given in the Microsoft page, changed several parameters, but ran into an exception. I wonder if other...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
2
by: Frederick | last post by:
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...
1
by: John | last post by:
Hi I have created custom membership/role/profile providers as per the web.config below. My questions are; 1. Have I defined them correctly? 2. How can I make the Login and Create User...
0
by: shikarishambu | last post by:
I am trying to get my ASP.NET web application to use ADAM as the membership provider. I have an ADAM instance setup on my machine (Windows 2003 server) running under Network Services account. And,...
11
by: Matthew | last post by:
Ok let me try to explain this as good as I can. I am creating this application where it contains a userlogin class. The user logs in before entering the main apploication. I want to do audit trails...
0
by: =?Utf-8?B?SmFzb24gUmljaG1laWVy?= | last post by:
Can someone provide me with a code snippet of how to retrieve the password policy for an instance of ADAM? I have found a few articles that explain how to do this in Active Directory but they...
0
by: choukse | last post by:
Hi All, I am trying to bind to ADAM instance with a windows user through JNDI and it keeps failing. My ADAM and AD is running on same Windows 2k3 server. But, through LDP I am able to bind with...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.