Beispiel #1
0
        public UserInformations GetUserFromLDAP(string login, string password, ILogger logger)
        {
            login += "@fri.uniza.sk";

            OptionsLdap options = new OptionsLdap
            {
                SecureSocketLayer = bool.Parse(_ldapSettings.SecureSocketLayer),
                BaseDN            = _ldapSettings.BaseDN,
                HostName          = _ldapSettings.HostName,
                Port = int.Parse(_ldapSettings.Port),
            };

            AuthenticatorLdap authenticatorLdap = new AuthenticatorLdap(options);
            UserInformations  informations      = authenticatorLdap.Authenticate(login, password, logger);

            return(informations);
        }
Beispiel #2
0
 public AuthenticatorLdap(OptionsLdap options)
 {
     _options = options;
 }