Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 03-12-2008, 04:35 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2007
Posts: 26
Exclamation Local machine account validation using C# .NET 2.0


Hi..

I have a login dialog with user name and password.I want two types of authentications.

1> Local machine username_passowrd authentication.(ie the one present in Control panel_administrative tools_Computer management_local users and grps_users.)

2>Active directory(AD) username_passowrd authentication.

Can neone show some light with a C# snippet..?
garv84 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 03-12-2008, 05:23 PM   #2 (permalink)
Canon 1000D
 
astroutkarsh's Avatar
 
Join Date: Apr 2007
Location: Pune
Posts: 80
Default Re: Local machine account validation using C# .NET 2.0

hello
there are many ways to do this.
you need to use windows services to get account name / User name.
If you want to user ADS, then you need to use LDAP for ADS access.
Can you provide more details i.e. what exactly you want to do?
__________________
Canon 1000D + 18-55 + 50mm f/1.8 + 55-250 IS :-)
astroutkarsh is offline  
Old 03-12-2008, 07:16 PM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2007
Posts: 26
Default Re: Local machine account validation using C# .NET 2.0

As i said i have a simple login form which requires username and pssword as credentials to be provided correctly in order to log into a particular application.My first priority is to authenticate against local machine accounts for username and pswd...ie the u_name and pswd that we need to login to the system.

How can i use windows services to validate the username and pswd using C#..?

Thanks for replying.can you provide me a solution.
garv84 is offline  
Old 04-12-2008, 11:23 AM   #4 (permalink)
Canon 1000D
 
astroutkarsh's Avatar
 
Join Date: Apr 2007
Location: Pune
Posts: 80
Default Re: Local machine account validation using C# .NET 2.0

I m bizy, so just giving few links here

http://microsoft.apress.com/feature/...b-applications

http://msdn.microsoft.com/en-us/library/aa302397.aspx

http://powershelllive.com/blogs/lunc...o-objects.aspx


I will edit n update my post for rest of the things ( Windows service) in few hours.
Till then go thru above links.
__________________
Canon 1000D + 18-55 + 50mm f/1.8 + 55-250 IS :-)
astroutkarsh is offline  
Old 04-12-2008, 11:45 AM   #5 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2007
Posts: 26
Smile Re: Local machine account validation using C# .NET 2.0

That will be great.thanks.

using System.DirectoryServices;
string username = System.Environment.UserName;

this gives me the current windows logon username and i can easily validate that wth the one entered by the user in the login_form.But what about the password validation...?

thanks for the links regarding AD authentication of the credentials.looking forward 4ur next posts.Thanks again.
garv84 is offline  
Old 04-12-2008, 07:53 PM   #6 (permalink)
Canon 1000D
 
astroutkarsh's Avatar
 
Join Date: Apr 2007
Location: Pune
Posts: 80
Default Re: Local machine account validation using C# .NET 2.0

w/c.
sorry for late Repl.

Due to security permissions, windows does not allow to validate Password. You need to find some other-way.

http://support.microsoft.com/kb/316748 this link will give you a brief idea abt security etc.

Most of the time these are the Intranet Web Applications that uses AD Uses Authe / Machine Users.
These URLs (Intranet) are placed in Trused Site zone and verified against Username only.
still if u need password validation, Search on ASP.Net forum or Expert Exchange.
Let me know if u want something more.
__________________
Canon 1000D + 18-55 + 50mm f/1.8 + 55-250 IS :-)
astroutkarsh is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE Validation [G.M.P.] choudang QnA (read only) 3 09-11-2005 12:58 AM
how to host PHP on local machine?? iinfi QnA (read only) 1 15-08-2005 11:05 PM

 
Latest Threads
- by gforz
- by soumya
- by Sujeet
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:01 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2