git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6763 71c3de6d-444a-0410-be80-ed276b4c234a

Originally-Committed-As: 4da8aec86ec27fb5a705553fdcc34d227f7b2db9
This commit is contained in:
kohsuke 2008-01-19 17:58:09 +00:00
parent 376aae67f9
commit 7e6f4aced5

View file

@ -6,6 +6,7 @@ import org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulato
import org.acegisecurity.ldap.DefaultInitialDirContextFactory
import org.acegisecurity.ldap.search.FilterBasedLdapUserSearch
import org.acegisecurity.providers.rememberme.RememberMeAuthenticationProvider
import hudson.model.Hudson
/*
Configure LDAP as the authentication realm.
@ -42,7 +43,7 @@ authenticationManager(ProviderManager) {
// these providers apply everywhere
bean(RememberMeAuthenticationProvider) {
key = app.getSecretKey();
key = Hudson.getInstance().getSecretKey();
},
// this doesn't mean we allow anonymous access.
// we just authenticate anonymous users as such,