473,394 Members | 1,706 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,394 software developers and data experts.

Query on User Authentication aganist ADS

Hi

I have a query, i have put the code here.

I am using VS 2005, C#.Net.

This is working fine when i am install the Win OS 2003 with ADS, but

after few days it starts entering the exception and gives the message
"

Logon Failure : unknown user name or bad password"

I am a bit confused and want to know the reason for this.

Can someone help me and let me know the reason and solution for this

because i cann't reinstall the OS all the time.
// Start of Code
using (DirectoryEntry deDirEntry = new

DirectoryEntry("LDAP://" + UserDomainTextBox.Text,
UserNameTextBox.Text,
UserPassTextBox.Text,
AuthenticationTypes.Secure))

try
{
string name = deDirEntry.Name.ToString();

MessageBox.Show("Welcome to '" + deDirEntry.Name
+

"'");

}
catch (Exception exp)
{
MessageBox.Show("Sorry, Invalid User");

}

// End of Code
Thanks for the help

Regards,
Govardhan

Jul 3 '07 #1
1 1283
On Mon, 02 Jul 2007 23:49:34 -0700, apondu <ap****@gmail.comwrote:
[question duplicated from at least one other newsgroup snipped]
Please do not multi-post. Learn to cross-post properly, if you must
cross-post at all.

(And of course, please don't post the same thing twice)
Jul 3 '07 #2

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

Similar topics

4
by: Tim Daneliuk | last post by:
OK, I've Googled for this and cannot seem to quite find what I need. So, I turn to the Gentle Geniuses here for help. Here is what I need to do from within a script: Given a username and a...
1
by: A Lake | last post by:
I'm trying to get user details using ASP under IIS (Win2000) with the following code: Set User = GetObject("WinNT://domainname/" & mid(strNTUser,8) & ",user") strNTUserFullName= User.Fullname ...
0
by: DavidC | last post by:
Hi there, I am needing to query a .NET webservice from a classic ASP page. It works absolutely fine under anonymous authentication however I want to turn NTLM authentication on in order for me to...
7
by: poi | last post by:
I query a Win2K domain controller to get the users inside a global group. But my query only shows "name" and "name@xxx.xxx.xxx" , it does not show it as "domain\name". Where can I get the...
5
by: Matthew Louden | last post by:
I wrote ASP.NET application that access SQL Server database. When I run the application, it yields "Login failed for user '<COMPUTER_NAME>\ASPNET'" error message. I then did the following, but...
0
by: Andrew Connell | last post by:
I have a case where I need to be able to query Active Directory to look up a user by their WINNT:\\DOMAIN\USERACCOUNT. The site is authenticating the users (it's a CMS site and they must be...
15
by: Tom Nowak | last post by:
I am writing a webapp in which a user is required to enter a login id and password on a login form. I have forms authenticaion coded in my web.config. Once the user is logged in, I want to use the...
2
by: Patrick Olurotimi Ige | last post by:
Is it possible to execute a query or do some validation before loading a page.. I have a survey page and i want to validate users before loading the page. I have done it in the page_load. But...
3
by: maria.s | last post by:
Hi, I've got a problem with an LDAP query submitted from my ASP.NET application. Configuration: Windows 2003 Server Standard Ed., the application uses Windows Integrated Authentication and is...
0
by: apondu | last post by:
Hi I have a query, i have put the code here. I am using VS 2005, C#.Net. This is working fine when i am install the Win OS 2003 with ADS, but after few days it starts entering the...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.