Guest User

Untitled

a guest
Nov 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. AdminServices.AdminSoapClient x = new AdminServices.AdminSoapClient();
  2. x.ClientCredentials.Windows.ClientCredential = new NetworkCredential(userName, pwd);
  3. x.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
  4. //x.ClientCredentials.Windows.AllowNtlm = true;
  5. x.Open();
  6. x.CreateSite(@"http://rad/sites/toto/",
  7. "Pas de Titre",
  8. "Pas de Description",
  9. 1033,
  10. "STS#0",
  11. @"RM-ADFarmadmin",
  12. null,
  13. null,
  14. null,
  15. null);
Add Comment
Please, Sign In to add comment