Jeremy Wadsworth
My Contribution to the ASP.NET Community


Welcome   
Welcome to my personal website. Here you will find blog posts related to web development as well as personal related interests. If you're here for the source code to my Personal Web Site Kit, please register and you'll receive an email when your account has been approved.


Latest Blog Entries

 Tuesday, September 29, 2009


The directory service cannot perform the requested operation on the RDN attribute of an object    

This error cropped up while writing some Methods to modify existing Active Directory user accounts. This error occurs if you try to use DirectoryEntry.CommitChanges to update the CN attribute of an entry object. If you search around a little you'll find the short answer is to use the DirectoryEntry.Rename method for changing the name. However, it's important to note that the Rename method needs the format "CN=Joe Smith". For example.
objEntry.Rename("CN=" & strFirstName & " " & strLastName)



jeremy at 11:35 PM | (62) Comments | Add a comment | Permalink







Join WebHost4Life.com






If you would like to help support this project, please click the button below to make a small donation.