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;
}
Aggregations