| Author: akku 26 Aug 2008 | Member Level: Silver | Rating:  Points: 1 |
Check This
http://bytes.com/forum/thread388513.html
|
| Author: mythili d 26 Aug 2008 | Member Level: Silver | Rating:  Points: 6 |
use this namespace System.DirectoryServices
and this is working code to validate a user name and password from windows login account in c#.net you can get a lot of code converters online . hope this helps
try { Roman.Data.BO.SymmCrypto cryp = new Roman.Data.BO.SymmCrypto(Roman.Data.BO.SymmCrypto.SymmProvEnum.DES); string unencryp = cryp.Decrypting(password, System.Web.Configuration.WebConfigurationManager.AppSettings["CryptoKey"]);
DirectoryEntry de = new DirectoryEntry(System.Web.Configuration.WebConfigurationManager.AppSettings["FullDomain"], username, unencryp); string name = de.Name; return true; } catch (Exception ex) { return false; }
|