/// <summary>
 /// Initializes an instance.
 /// </summary>
 /// <param name="store"></param>
 /// <param name="optionsAccessor"></param>
 /// <param name="passwordHasher"></param>
 /// <param name="userValidators"></param>
 /// <param name="passwordValidators"></param>
 /// <param name="keyNormalizer"></param>
 /// <param name="errors"></param>
 /// <param name="services"></param>
 /// <param name="logger"></param>
 /// <param name="ldapOptions"></param>
 public LdapUserManager(
     IUserStore <TUser> store, IOptions <IdentityOptions> optionsAccessor, IPasswordHasher <TUser> passwordHasher, IEnumerable <IUserValidator <TUser> > userValidators, IEnumerable <IPasswordValidator <TUser> > passwordValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, IServiceProvider services, ILogger <UserManager <TUser> > logger, IOptions <LdapAuthenticationOptions> ldapOptions
     ) : base(
         store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger
         )
 {
     _ldapOptions = ldapOptions.Value;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance with the the given options.
 /// </summary>
 /// <param name="options"></param>
 public LdapAuthentication(LdapAuthenticationOptions options)
 {
     _options    = options;
     _connection = new LdapConnection
     {
         SecureSocketLayer = false
     };
 }