473,385 Members | 1,518 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,385 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 5229
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.