473,698 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5249
you have spelled 'Development' wrong in your LDAP path could this be the
problem?

HTH

Ollie Riches

"Frederick" <Fr*******@disc ussions.microso ft.com> wrote in message
news:A7******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.com> wrote in message
news:A7******** *************** ***********@mic rosoft.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
2904
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 able to see the account user name and password". I am trying to build a case for using NT accounts rather than SQL internal accounts. What are the steps required to access the locally saved password? Thanks, Chris
3
7848
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 people have solved this problem. But I have searched Google groups for a couple days but still couldn't get a solution. I copied the code from: ...
3
2437
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 object :(((( Anyone pls help me to solve this problem!!! thanks in advance,
2
316
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 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...
1
1228
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 Wizard controls to use these providers instead of the standard providers?
0
1209
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, I have my local account as the Administrator. However, when I try to go to the security tab on the ASP.NET 2.0 Configuration site I get an error - Logon failure: unknown user name or bad password. In the event log I see that the local user...
11
1856
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 and I am trying to figure out how to get the user ID that logged in. Can anyone help me. I have samples if anyone needs them.
0
1555
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 don't appear to work for ADAM (the stated properties do not exist). I would like to compare a password that is entered in my application against the password policy to validate the password. Thank you,
0
2042
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 the same windows user successfully and browse through the entire tree successfully. The error is as below
0
8676
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9161
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8867
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7732
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6522
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.