i have the groups names in the database
after getting them i get the manager from the active directory using directory searcher
like this
public string getGroupManagersMail(string groupname)
{
DirectoryEntry drtEnt = new DirectoryEntry("LDPA=//DC=domain,DC=mil");
DirectorySearcher ds = new DirectedorySearcher(drtEnt, "sAMAccountName" + groupname);
ds.PropertiesToLoad.Add("managedby");
SearchResult sr = ds.FindOne();
i do able to get his CN,OU,DC and displayd name of the manager
but i cant get his mail.
i have tried to search in the active directory by creating a new directory
entry with the params that i got in the searchresult but it didn't work
could be because the dispalys name is not in english
does anyone know the answer?
}