Author: anubha.saxena | Posted on: 11/4/2009 4:00:46 AM | Views : 474

Dear frnds ,,
 
Plz help me out ? hoe to use setpassword method for resetting AD password. I m trying bt it is showing some error?
 
string strLogin = txt_usrid.Text.Trim();      
        string strNewPasswd = txt_newpwd.Text.Trim();
        string ADMUSER = "CONFIGADMIN";
        string ADMPWD = "$NEWPASSWORD$";
 
        DirectoryEntry objRootEntry = new DirectoryEntry("LDAP://ITSSBLRDC002", ADMUSER, ADMPWD, AuthenticationTypes.Secure);
            DirectorySearcher objADSearcher = new DirectorySearcher(objRootEntry);
            objADSearcher.Filter = String.Format(@"(& ...

Go to the complete details ...