Quantcast
Viewing all articles
Browse latest Browse all 8156

Active Directory - DirectorySearcher & DirectoryEntry

Hi All,

In my company they are 2 active directories with a trust relationship, that  establish a logical relationship between both domains of the company (domainA and domain B).

My goal is to devolope an app that can assign a user from domain B to a group from domainA.

Is it possible?

I was thinking something like this:

oGroup.Invoke("Add",newobject[] { oUser.Path.ToString() });

//oGroup refers to a group from domainA and oUser refers a user from domain B.

//oGroup is the directory entry from a active directory search for a group from domainA.

//oUser is the directory entry from a active directory search for a user from domainB.

Thanks in advance.

Best Regards,

Rodrigo Guerreiro



Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>