Author |
Message |
Plissken
|
Post subject: .NET! Active Directory! Posted: Thu Sep 11, 2008 15:46 |
|
|
Excellent Member |
Joined: 30th Mar, 2008 Posts: 5924 Location: Stockport - The Jewel in the Ring
|
Right. I've got an ASP.NET page that needs to do create an InetOrg object in our Active Directory and place it in a specific place.
I've got the InetOrg object created OK, but it places it automagically in the Users group. What I need to do is move it to the Wirelss OU.
Effectively, the Distinguished Name needs to change from "CN=username, CN=Users, DC=domain" to "CN=username, OU=MAC-Wireless, DC=domain"
DirectoryEntry.MoveTo() appears not to work, I suspect because I'm shifting from a container to an OU, and not groups. I think. Unless I'm doing something really wrong.
Haylp! Haylp!
_________________ Mint To Be Stationery - Looking for a Secret Santa gift? Try our online shops at Mint To Be.
Book me in the Face | Tweet me. Tweet me like a British nanny.
|
|
Top |
|
|