Jmcarrasc0.ActiveDirectory.Consult
1.0.1
dotnet add package Jmcarrasc0.ActiveDirectory.Consult --version 1.0.1
NuGet\Install-Package Jmcarrasc0.ActiveDirectory.Consult -Version 1.0.1
<PackageReference Include="Jmcarrasc0.ActiveDirectory.Consult" Version="1.0.1" />
paket add Jmcarrasc0.ActiveDirectory.Consult --version 1.0.1
#r "nuget: Jmcarrasc0.ActiveDirectory.Consult, 1.0.1"
// Install Jmcarrasc0.ActiveDirectory.Consult as a Cake Addin #addin nuget:?package=Jmcarrasc0.ActiveDirectory.Consult&version=1.0.1 // Install Jmcarrasc0.ActiveDirectory.Consult as a Cake Tool #tool nuget:?package=Jmcarrasc0.ActiveDirectory.Consult&version=1.0.1
Jmcarrasc0 - ActiveDirectory.Consult
<a href="https://www.patreon.com/join/jmcarrasc0?"><img src="https://i.postimg.cc/hPcgmRWQ/jmcarrasc0-logo.png" alt="jmcarrasco logo" ></a>
ActiveDirectory.Consult is a nuget package based on .NET for Active Directory user queries and application authentication.
Quick install
Mail.Sending is constantly in development! Try it out now:
NuGet
PM> Install-Package Jmcarrasc0.ActiveDirectory.Consult -Version 1.0.1
or
.NET CLI
> dotnet add package Jmcarrasc0.ActiveDirectory.Consult --version 1.0.1
PackageReference
<PackageReference Include="Jmcarrasc0.ActiveDirectory.Consult" Version="1.0.1" />
Paket CLI
> paket add Jmcarrasc0.ActiveDirectory.Consult --version 1.0.1
Script & Interactive
> #r "nuget: Jmcarrasc0.ActiveDirectory.Consult, 1.0.1"
Cake
// Install Jmcarrasc0.ActiveDirectory.Consult as a Cake Addin
#addin nuget:?package=Jmcarrasc0.ActiveDirectory.Consult&version=1.0.1
// Install Jmcarrasc0.ActiveDirectory.Consult as a Cake Tool
#tool nuget:?package=Jmcarrasc0.ActiveDirectory.Consult&version=1.0.1
<br> <br>
How to use it
It is very easy to implement
C#
using Jmcarrasc0.ActiveDirectory.Consult;
/// <summary>
/// Function to obtain data by user
/// </summary>
void GetUserActiveDirectorybyUsrName(string user, string ldap)
{
var ad = new ActiveDirectory();
var result = ad.GetUserActiveDirectorybyUsrName(user, ldap);
}
/// <summary>
/// Function to List all users in Active Directory
/// </summary>
void GetListUserActiveDirectory(string ldap)
{
var ad = new ActiveDirectory();
var result = ad.GetListUserActiveDirectory(ldap);
}
/// <summary>
/// Function to login with Active Directory
/// </summary>
void LoginActiveDirectory(string userName, string pass, string ldap, string domainName)
{
var ad = new ActiveDirectory();
var result = ad.LoginActiveDirectory(userName,pass,ldap,domainName);
}
<br> <br>
VB.NET
Imports Jmcarrasc0.ActiveDirectory.Consult;
'Function to obtain data by user
Private Sub GetUserActiveDirectorybyUsrName(ByVal user As String, ByVal ldap As String)
Dim ad = New ActiveDirectory()
Dim result = ad.GetUserActiveDirectorybyUsrName(user, ldap)
End Sub
'Function to List all users in Active Directory
Private Sub GetListUserActiveDirectory(ByVal ldap As String)
Dim ad = New ActiveDirectory()
Dim result = ad.GetListUserActiveDirectory(ldap)
End Sub
'Function to login with Active Directory
Private Sub LoginActiveDirectory(ByVal userName As String, ByVal pass As String, ByVal ldap As String, ByVal domainName As String)
Dim ad = New ActiveDirectory()
Dim result = ad.LoginActiveDirectory(userName, pass, ldap, domainName)
End Sub
<br> <br>
Compatibily Support
Mail.Sending is a nuget package compatible with the following Frameworks
- .NET 6
- .NET 5
- .NET Core 3.1
<br> <br>
Copyright and license
Code copyright 2022 Juan Carrasco. Code released under the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- System.DirectoryServices (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Ajuste en la funciones de consulta