Пример #1
0
        public static DSNAME CreateDSNameForObject(DsServer srv, string dn)
        {
            // Get the GUID first
            Guid?guid = LdapUtility.GetObjectGuid(srv, dn);

            string sid = GetObjectStringSid(srv, dn);

            return(DrsuapiClient.CreateDsName(dn, guid.Value, sid));
        }