mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-19 01:33:16 +00:00
sync config and sync result
This commit is contained in:
26
src/Core/Models/SyncConfiguration.cs
Normal file
26
src/Core/Models/SyncConfiguration.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.DirectoryServices;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bit.Core.Models
|
||||
{
|
||||
public class SyncConfiguration
|
||||
{
|
||||
public string GroupFilter { get; set; } = "(&(objectClass=group))";
|
||||
public string UserFilter { get; set; } = "(&(objectClass=person))";
|
||||
public bool SyncGroups { get; set; } = true;
|
||||
public bool SyncUsers { get; set; } = true;
|
||||
public string MemberAttribute { get; set; } = "memberOf";
|
||||
public string GroupNameAttribute { get; set; } = "name";
|
||||
public string UserEmailAttribute { get; set; } = "mail";
|
||||
public bool EmailPrefixSuffix { get; set; } = false;
|
||||
public string UserEmailPrefixAttribute { get; set; } = "sAMAccountName";
|
||||
public string UserEmailSuffix { get; set; } = "@companyname.com";
|
||||
public string CreationDateAttribute { get; set; } = "whenCreated";
|
||||
public string RevisionDateAttribute { get; set; } = "whenChanged";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user