try { String defaultNamingContext = string.Empty; using (DirectoryEntry deRoot = new DirectoryEntry("LDAP://RootDSE")) { if (deRoot.Properties["defaultNamingContext"] != null) { defaultNamingContext = deRoot.Properties["defaultNamingContext"].Value.ToString(); } } DirectoryEntry entry = new DirectoryEntry("LDAP://" + defaultNamingContext, "jitendra.so@hXX.com", "XX@!@#$%^"); object nativeObject = entry.NativeObject; bool authenticated = true; } catch(Exception ex) { String msg = ex.Message;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)