コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="config"></param>
 public LdapAuthenticationService(IOptions <LdapConfig> config)
 {
     _config     = config.Value;
     _connection = new LdapConnection {
         SecureSocketLayer = _config.UseSSL
     };
 }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="config"></param>
        public LdapAuthenticationService(LdapConfig config)
        {
            _config     = config;
            _connection = new LdapConnection {
                SecureSocketLayer = _config.UseSSL
            };

            ApplicationUser.adminType = config.AdminEmployeeType;
        }