Last post Jan 11, 2006 10:01 AM by dunnry
Jan 09, 2006 05:13 PM|thepichi|LINK
Hi all, I'm trying to login from a Web App. I'm having a problem when I try to get the "logonaccouncontrol" property. It's increasing by 2 every time a log in fails. Any ideas??
Her you have part of my code:
DirectoryEntry de =
DirectorySearcher search =
search.Filter = "(SAMAccountName=" + username + ")";
result = search.FindOne();
ResultPropertyCollection props = result.Properties;
--------- this value is = 2 after the first time I log in with a wrong password
_badPasswordAttempts = (
result1 = search.FindOne();
ResultPropertyCollection properties = result1.Properties;
Note that I create two DirectoryEntry objects, I'm using the second one in order to validate the user's password, if you any other idea would be welcome.
Thanks in advance.
Jan 11, 2006 10:01 AM|dunnry|LINK