Example #1
0
        public async Task LoadChildren(ILdapConnection connection, CancellationToken cancellationToken = default)
        {
            var entries = await connection.Search <VoteEntry>(this.Dn, null,
                                                              LdapObjectTypes.VotedEntry, LdapConnection.SCOPE_ONE, cancellationToken);

            foreach (var voteEntry in entries)
            {
                if (voteEntry.Active)
                {
                    this.ActiveVoteEntries.Add(voteEntry);
                }
                else
                {
                    this.InactiveVoteEntries.Add(voteEntry);
                }
            }
        }
Example #2
0
 public DivisionManager(ILdapConnection connection, LdapConfig config)
 {
     this._connection = connection;
     this._config     = config;
 }
Example #3
0
 public TribeManager(ILdapConnection connection, LdapConfig config)
 {
     this._connection = connection;
     this._config     = config;
 }
 public VotedGroupManager(ILdapConnection connection, LdapConfig config)
 {
     this._connection = connection;
     this._config     = config;
 }
 public MemberManager(ILdapConnection connection, LdapConfig config, IDivisionManager divisionManager)
 {
     this._connection      = connection;
     this._config          = config;
     this._divisionManager = divisionManager;
 }
Example #6
0
 public LdapUserStore(ILdapConnection connection, LdapConfig config, ILogger <LdapUserStore> logger)
 {
     this._connection = connection;
     this._config     = config;
     this._logger     = logger;
 }