ConnectToAD() public static method

public static ConnectToAD ( string ldapPath, string customADAdminAccountName, string customADAdminAccountPwd, bool novellSupport, string guidProp ) : System.DirectoryServices.DirectoryEntry
ldapPath string
customADAdminAccountName string
customADAdminAccountPwd string
novellSupport bool
guidProp string
return System.DirectoryServices.DirectoryEntry
コード例 #1
0
        /* =============================================================================== AD Methods */
        public DirectoryEntry ConnectToObject(string objectPath)
        {
            string sLDAPPath = objectPath;

            if (!sLDAPPath.StartsWith("LDAP://"))
            {
                sLDAPPath = String.Concat("LDAP://", this.IPAddress, "/", sLDAPPath.Replace("/", "\\/"));
            }


            return(Common.ConnectToAD(sLDAPPath, _config.CustomADAdminAccountName, _config.CustomADAdminAccountPwd, _config.NovellSupport, _config.GuidProp));
        }