Be Excellent To Each Other

And, you know, party on. Dude.

All times are UTC [ DST ]




Reply to topic  [ 1 post ] 
Author Message
 Post subject: .NET! Active Directory!
PostPosted: Thu Sep 11, 2008 15:46 
User avatar
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
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search within this thread:
You are using the 'Ted' forum. Bill doesn't really exist any more. Bogus!
Want to help out with the hosting / advertising costs? That's very nice of you.
Are you on a mobile phone? Try http://beex.co.uk/m/
RIP, Owen. RIP, MrC.

Powered by a very Grim... version of phpBB © 2000, 2002, 2005, 2007 phpBB Group.