Rhetos.ActiveDirectorySync 6.0.0

Prefix Reserved
dotnet add package Rhetos.ActiveDirectorySync --version 6.0.0
                    
NuGet\Install-Package Rhetos.ActiveDirectorySync -Version 6.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rhetos.ActiveDirectorySync" Version="6.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rhetos.ActiveDirectorySync" Version="6.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Rhetos.ActiveDirectorySync" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rhetos.ActiveDirectorySync --version 6.0.0
                    
#r "nuget: Rhetos.ActiveDirectorySync, 6.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rhetos.ActiveDirectorySync@6.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rhetos.ActiveDirectorySync&version=6.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Rhetos.ActiveDirectorySync&version=6.0.0
                    
Install as a Cake Tool

ActiveDirectorySync

ActiveDirectorySync is a plugin package for Rhetos development platform. It synchronizes the Rhetos principals and roles with Active Directory by automatically adding or removing principal-role and role-role membership relations.

Installation

Installing this package to a Rhetos application:

  1. Add 'Rhetos.ActiveDirectorySync' NuGet package, available at the NuGet.org on-line gallery.

Configuring Rhetos users and user groups

  1. To allow a domain user to use Rhetos application, insert the record in the Common.Principal entity. The principal's name must have domain name prefix.
  2. To allow a domain user group to be used for assigning permissions to users, insert the record in the Common.Role entity. The role's name must have domain name prefix.
  3. ActiveDirectorySync will automatically handle relation between the inserted principals and role, based on information from Active Directory.

To set the users permissions, the following methods are available:

  1. Set the users permissions directly, inserting the record in Common.PrincipalPermission.
  2. Set the user's group permissions, inserting the record in Common.RolePermission.
  3. Create a group of permissions and assign it to the user or user group:
    • Add a new Common.Role without domain name prefix (it will not be bound to the domain user group) that will serve as a permission group.
    • Set the role's permissions in Common.RolePermission.
    • Assign the role to the user's group (insert in Common.RoleInheritsRole) or directly to the user (insert in Common.PrincipalHasRole).

How to contribute

Contributions are very welcome. The easiest way is to fork this repo, and then make a pull request from your fork. The first time you make a pull request, you may be asked to sign a Contributor Agreement. For more info see How to Contribute on Rhetos wiki.

Building and testing the source code

  • Note: This package is already available at the NuGet.org online gallery. You don't need to build it from source in order to use it in your application.
  • To build the package from source, run Clean.bat, Build.bat and Test.bat.
  • For the test script to work, you need to create an empty database and a settings file test\Rhetos.ActiveDirectorySync.TestApp\rhetos-app.local.settings.json with the database connection string (configuration key "ConnectionStrings:RhetosConnectionString").
  • The build output is a NuGet package in the "Install" subfolder.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.0 131 9/8/2025
5.0.0 618 3/25/2022
2.0.0 652 9/25/2020
1.10.0 1,346 8/11/2017
1.9.0 1,245 7/20/2017
1.8.0 1,236 6/30/2017
1.7.0 1,268 3/9/2017
1.6.0 1,280 2/27/2017
1.5.0 1,267 2/13/2017
1.4.0 1,319 12/13/2016
1.3.0 1,244 12/8/2016
1.2.0 1,296 10/19/2016
1.1.0 1,589 9/16/2016