Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Wrapper around the System.DirectoryServices.AccountManagement namespace.

License

Notifications You must be signed in to change notification settings

dimesoftware/windows-directory

Repository files navigation

Logo

Directory Services

About the project

This is a simple wrapper around Microsoft's directory services assembly.

Installation

🚧 Warning: the packages are not available yet on NuGet.

Use the package manager NuGet to install this library:

dotnet add package Dime.DirectoryServices

Usage

public async Task<boolean> Exists(string userName)
{
  WindowsUserStore store = new WindowsUserStore("Admin", "Admin123");
  string sid = await store.GetSidByLoginName(userName);

  return !string.IsNullOrEmpty(sid);
}

Contributing

PRs Welcome

Pull requests are welcome. Please check out the contribution and code of conduct guidelines.

About

Wrapper around the System.DirectoryServices.AccountManagement namespace.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages