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
<PackageReference Include="Rhetos.ActiveDirectorySync" Version="6.0.0" />
<PackageVersion Include="Rhetos.ActiveDirectorySync" Version="6.0.0" />
<PackageReference Include="Rhetos.ActiveDirectorySync" />
paket add Rhetos.ActiveDirectorySync --version 6.0.0
#r "nuget: Rhetos.ActiveDirectorySync, 6.0.0"
#:package Rhetos.ActiveDirectorySync@6.0.0
#addin nuget:?package=Rhetos.ActiveDirectorySync&version=6.0.0
#tool nuget:?package=Rhetos.ActiveDirectorySync&version=6.0.0
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:
- Add 'Rhetos.ActiveDirectorySync' NuGet package, available at the NuGet.org on-line gallery.
Configuring Rhetos users and user groups
- 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. - 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. - 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:
- Set the users permissions directly, inserting the record in
Common.PrincipalPermission
. - Set the user's group permissions, inserting the record in
Common.RolePermission
. - 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 inCommon.PrincipalHasRole
).
- Add a new
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
andTest.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 | Versions 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. |
-
net8.0
- Rhetos.CommonConcepts (>= 6.0.0)
- System.DirectoryServices (>= 8.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.
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 |