HI
DirectoryEntry rootEntry = new DirectoryEntry(ldap ,txtUserName.Text,txtPassword.Text);
DirectorySearcher searcher = new DirectorySearcher(rootEntry);
string Query = "raditobuttonlist1.selectvalue.tostring();"; //example selected value="User"
if (Query == "")
{
searcher.Filter = "(&(!(userAccountControl:1.2.840.113556.1.4.803:=2))(objectCategory=user))";
}
else
{
searcher.Filter = "(&(!(userAccountControl:1.2.840.113556.1.4.803:=2))(objectCategory=user)(" + Query + "))";
}
searcher.SearchScope = SearchScope.Subtree;
--
plz i go all information category wise.
Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/