DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 02 Jul 2007 23:51:11 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.security        back       

Thread Index
  1    apondu


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
Date:Mon, 02 Jul 2007 23:51:11 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us