none
Active Directory - DirectorySearcher & DirectoryEntry RRS feed

  • Question

  • 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 (domain A and domain B).

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

    Is it possible?

    I was thinking something like this:

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

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

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

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

    Thanks in advance.

    Best Regards,

    Rodrigo Guerreiro


    • Edited by Rodrigo13828 Tuesday, December 3, 2013 4:02 PM Gramar
    Tuesday, December 3, 2013 4:01 PM

Answers