Hi,
i'm trying to setup a test GN 2.10.2 instance (we're still running
2.8.0), and since the switch to spring auth it fails to login the
default admin/admin user/pass. I'm probably doing something wrong but i
don't see where the problem is on my side
- took the gn 2.10.2 war from sourceforge
- changed config.xml to point at an empty postgresql database, populated
with default setup at first webapp startup
- changed log4j.cfg to enable jeeves logging
- this tomcat instance is setupped behind an nginx RP, and is also
hosting other working webapps
On the default homepage, trying to login as admin/admin fails (ie it
displays srv/eng/login.form again) and in the log i have this:
2013-11-28 10:11:08,399 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] - Public
object - authentication not attempted
2013-11-28 10:11:08,403 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] - Secure
object: FilterInvocation: URL:
/j_spring_security_check?redirectUrl=/srv/eng/main.home; Attributes:
[denyAll]
2013-11-28 10:11:08,403 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] -
Previously Authenticated:
org.springframework.security.authentication.AnonymousAuthenticationToken@anonymised.com:
Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true;
Details:
org.springframework.security.web.authentication.WebAuthenticationDetails@anonymised.com:
RemoteIpAddress: 195.221.122.114; SessionId:
47A7C50F347DEA0CED54719E8E899D1E; Granted Authorities: ROLE_ANONYMOUS
2013-11-28 10:11:08,919 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] - Public
object - authentication not attempted
2013-11-28 10:11:08,922 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] - Secure
object: FilterInvocation: URL: /srv/eng/login.form; Attributes: [permitAll]
2013-11-28 10:11:08,922 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] -
Previously Authenticated:
org.springframework.security.authentication.AnonymousAuthenticationToken@anonymised.com:
Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true;
Details:
org.springframework.security.web.authentication.WebAuthenticationDetails@anonymised.com:
RemoteIpAddress: 195.221.122.114; SessionId:
47A7C50F347DEA0CED54719E8E899D1E; Granted Authorities: ROLE_ANONYMOUS
2013-11-28 10:11:08,922 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] -
Authorization successful
2013-11-28 10:11:08,922 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] -
RunAsManager did not change Authentication object
If i try to login on apps/search/ it also fails, and the log shows:
2013-11-28 10:19:03,903 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] - Public
object - authentication not attempted
2013-11-28 10:19:03,907 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] - Secure
object: FilterInvocation: URL: /j_spring_security_check; Attributes:
[denyAll]
2013-11-28 10:19:03,907 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] -
Previously Authenticated:
org.springframework.security.authentication.AnonymousAuthenticationToken@anonymised.com:
Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true;
Details:
org.springframework.security.web.authentication.WebAuthenticationDetails@anonymised.com:
RemoteIpAddress: 195.221.122.114; SessionId:
47A7C50F347DEA0CED54719E8E899D1E; Granted Authorities: ROLE_ANONYMOUS
2013-11-28 10:19:04,017 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] - Public
object - authentication not attempted
2013-11-28 10:19:04,021 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] - Secure
object: FilterInvocation: URL: /srv/eng/xml.info?type=me; Attributes:
[permitAll]
2013-11-28 10:19:04,021 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] -
Previously Authenticated:
org.springframework.security.authentication.AnonymousAuthenticationToken@anonymised.com:
Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true;
Details:
org.springframework.security.web.authentication.WebAuthenticationDetails@anonymised.com:
RemoteIpAddress: 195.221.122.114; SessionId:
47A7C50F347DEA0CED54719E8E899D1E; Granted Authorities: ROLE_ANONYMOUS
2013-11-28 10:19:04,021 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] -
Authorization successful
2013-11-28 10:19:04,021 DEBUG
[jeeves.config.springutil.GeonetworkFilterSecurityInterceptor] -
RunAsManager did not change Authentication object
and xml.info returns
<info>
<me authenticated="false" />
</info>
Did the default admin password change ? What's wrong with default spring
setup ? Any idea ?
Landry