From 7e6f4aced5738d8dbf2985231f40e67b50d1bd3f Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sat, 19 Jan 2008 17:58:09 +0000 Subject: [PATCH] bug fix git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6763 71c3de6d-444a-0410-be80-ed276b4c234a Originally-Committed-As: 4da8aec86ec27fb5a705553fdcc34d227f7b2db9 --- war/resources/WEB-INF/security/LDAPBindSecurityRealm.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/war/resources/WEB-INF/security/LDAPBindSecurityRealm.groovy b/war/resources/WEB-INF/security/LDAPBindSecurityRealm.groovy index 06fe76e..568e7f5 100644 --- a/war/resources/WEB-INF/security/LDAPBindSecurityRealm.groovy +++ b/war/resources/WEB-INF/security/LDAPBindSecurityRealm.groovy @@ -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,