Search in sources :

Example 1 with JcifsConfig

use of org.apereo.cas.support.spnego.authentication.handler.support.JcifsConfig in project cas by apereo.

the class SpnegoConfiguration method jcifsConfig.

@Bean
@RefreshScope
public JcifsConfig jcifsConfig() {
    final JcifsConfig c = new JcifsConfig();
    final SpnegoProperties spnego = casProperties.getAuthn().getSpnego();
    c.setJcifsDomain(spnego.getJcifsDomain());
    c.setJcifsDomainController(spnego.getJcifsDomainController());
    c.setJcifsNetbiosCachePolicy(spnego.getCachePolicy());
    c.setJcifsNetbiosWins(spnego.getJcifsNetbiosWins());
    c.setJcifsPassword(spnego.getJcifsPassword());
    c.setJcifsServicePassword(spnego.getJcifsServicePassword());
    c.setJcifsServicePrincipal(spnego.getJcifsServicePrincipal());
    c.setJcifsSocketTimeout(spnego.getTimeout());
    c.setJcifsUsername(spnego.getJcifsUsername());
    c.setKerberosConf(spnego.getKerberosConf());
    c.setKerberosDebug(spnego.getKerberosDebug());
    c.setKerberosKdc(spnego.getKerberosKdc());
    c.setKerberosRealm(spnego.getKerberosRealm());
    c.setLoginConf(spnego.getLoginConf());
    c.setUseSubjectCredsOnly(spnego.isUseSubjectCredsOnly());
    return c;
}
Also used : JcifsConfig(org.apereo.cas.support.spnego.authentication.handler.support.JcifsConfig) SpnegoProperties(org.apereo.cas.configuration.model.support.spnego.SpnegoProperties) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

SpnegoProperties (org.apereo.cas.configuration.model.support.spnego.SpnegoProperties)1 JcifsConfig (org.apereo.cas.support.spnego.authentication.handler.support.JcifsConfig)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1