Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
System.DirectoryServices.DirectoryEntry entry =
new System.DirectoryServices.DirectoryEntry("LDAP://Path");
System.DirectoryServices.DirectorySearcher mySearcher = new
System.DirectoryServices.DirectorySearcher(entry);
mySearcher.Filter = ("(anr= John)");
foreach(System.DirectoryServices.SearchResult result in
mySearcher.FindAll())
{
Console.WriteLine( result.GetDirectoryEntry().Path );
}
while (myReader.Read())
{
/Auslesen der PersonId und Speichern in String
string sql_alias = myReader["PersonId"].ToString();
/*Nur TemporärMessageBox.Show(sql_alias);*/
System.DirectoryServices.DirectoryEntry entry = new System.DirectoryServices.DirectoryEntry("LDAP://arptest,DC=intern");
System.DirectoryServices.DirectorySearcher mySearcher = new System.DirectoryServices.DirectorySearcher(entry);
mySearcher.Filter = ("(anr= John)");
foreach(System.DirectoryServices.SearchResult result in
mySearcher.FindAll())
{
Console.WriteLine( result.GetDirectoryEntry().Path );
}
mySearcher.Filter = ("(anr="+sql_alias+")");
Norbert Eder hat gesagt.:UserPrincipal müsste der Canonical Name sein, wenns mich nicht ganz täuscht, ergo das Kürzel cn.
Aber da gibts eh super Infos im Netz, Stichwort LDAP, denn darauf baut das Active Directory auf.