Saturday, 10 August 2013

Active Directory user entry, and group entry

Active Directory user entry, and group entry

I'm currently having an issues to where I cannot get my Organizational
Unit to be recognized as an argument with Creating a new Active Directory
user, and assigning them to a OU. It gives me the error,
"GetPrincipalContext" takes 1 argument, and I'm lost as what went wrong.
#region Variables
private string sdomain = "test";
private string sdefaultou = "OU=Dackup Users, OU=Dackup, DC=Test,
Dc=com";
private string sdefaultrootOU = "DC=test, DC=com";
private string sServiceUser = @"ServiceUser";
private string sServicePassword = "ServicePassword";
private string sGroup = "Dackup";
private string sUserName = "LocalTest";
private string sOU = "Organizational Unit locations";

No comments:

Post a Comment