Cake Addin for working with Active Directory.
Stable | Pre-release | |
---|---|---|
GitHub Release | - | |
NuGet | ||
Come join in the conversation about Cake.CsvHelper in our Gitter Chat Room
To build this package we are using Cake.
On Windows PowerShell run:
./build
This Addin only contains the functionality that we needed. We are more than happy to accept pull requests that will grow this library. It uses the LandPy.ActiveDirectory library for all Active Directory interaction.
//Beta version
#addin nuget:https://www.myget.org/F/beta-builds/api/v2?package=Cake.ActiveDirectory
// Release version
#addin nuget:?package=Cake.ActiveDirectory
CreateUser("cake-user", "cake-group", new UserSettings {
LoginName = "domainAdmin",
Password = "adminPassword",
DomainName = "Cake.net"});
UpdateUser("employeeId", "1234", new UserSettings {
LoginName = "domainAdmin",
Password = "adminPassword",
DomainName = "Cake.net",
Email = "test@cake-yeah.com" });
var upn = FindUserPrincipalNameByProperty("proxyAddresses", "jdoe@example.com", new UserSettings {
LoginName = "domainAdmin",
Password = "adminPassword",
DomainName = "Cake.net" });