CAS5.1.5 Remote Address Authentication not work

84 views
Skip to first unread message

Kent Lu

unread,
Dec 7, 2017, 3:25:28 AM12/7/17
to CAS Community
Hi everyone,

I use CAS 5.1.5 want to user remote address authentication, but when i went to login, also on the login page,  This is my step, which step is wrong? 

thanks.

=============================================================
WHO: audit:unknown
WHAT: [event=success,timestamp=Thu Dec 07 16:27:21 CST 2017,source=RankedAuthenticationProviderWebflowEventResolver]
ACTION: AUTHENTICATION_EVENT_TRIGGERED
APPLICATION: CAS
WHEN: Thu Dec 07 16:27:21 CST 2017
CLIENT IP ADDRESS: 10.110.214.57
SERVER IP ADDRESS: 172.17.0.4
=============================================================





-------------

1. build.gradle >> add "compile "org.apereo.cas:cas-server-support-generic-remote-webflow:5.1.5"

2. application.properties  >>

  cas.authn.remoteAddress.ipAddressRange=10.0.0.0/255.0.0.0






Kent Lu

unread,
Dec 7, 2017, 9:52:56 AM12/7/17
to CAS Community

This is my CAS startup log .... if anyone have only ideal can tell me thanks....


[22:51:34][DEBUG][org.apereo.cas.config.CasCoreAuthenticationConfiguration][ServerService Thread Pool -- 409] - Configuring authentication execution plan [CasRemoteAuthenticationConfiguration]
[22:51:34][DEBUG][org.apereo.cas.adaptors.generic.remote.RemoteAddressAuthenticationHandler][ServerService Thread Pool -- 409] - InetAddress network: [/10.0.0.0]
[22:51:34][DEBUG][org.apereo.cas.adaptors.generic.remote.RemoteAddressAuthenticationHandler][ServerService Thread Pool -- 409] - InetAddress netmask: [/255.0.0.0]
[22:51:34][DEBUG][org.apereo.cas.config.CasPersonDirectoryConfiguration][ServerService Thread Pool -- 409] - Final list of attribute repositories is [[]]
[22:51:34][DEBUG][org.apereo.cas.config.CasCoreAuthenticationPrincipalConfiguration][ServerService Thread Pool -- 409] - Attribute repository sources are not available for principal resolution so principal resolver will echo back the principal resolved during authentication directly.
[22:51:34][DEBUG][org.apereo.cas.authentication.DefaultAuthenticationEventExecutionPlan][ServerService Thread Pool -- 409] - Registering handler [admin] principal resolver [org.apereo.cas.authentication.principal.resolvers.ChainingPrincipalResolver@179ab2ee[chain=[org.apereo.cas.authentication.principal.resolvers.EchoingPrincipalResolver@1652e491[]]]] into the execution plan 
...
...
[22:51:36][DEBUG][org.apereo.cas.web.flow.AbstractCasWebflowConfigurer][ServerService Thread Pool -- 409] - Initializing CAS webflow configuration...
[22:51:36][DEBUG][org.apereo.cas.web.flow.AbstractCasWebflowConfigurer][ServerService Thread Pool -- 409] - Created evaluate action for expression [remoteAddressCheck]
[22:51:36][DEBUG][org.apereo.cas.web.flow.AbstractCasWebflowConfigurer][ServerService Thread Pool -- 409] - Created action state [startAuthenticate]
[22:51:36][DEBUG][org.apereo.cas.web.flow.AbstractCasWebflowConfigurer][ServerService Thread Pool -- 409] - Added action to the action state [startAuthenticate] list of actions: [list[[EvaluateAction@2cd4ba29 expression = remoteAddressCheck, resultExpression = [null]]]]
[22:51:36][DEBUG][org.apereo.cas.web.flow.AbstractCasWebflowConfigurer][ServerService Thread Pool -- 409] - Created evaluate action for expression [clearWebflowCredentialsAction]
[22:51:36][INFO ][org.springframework.web.servlet.handler.SimpleUrlHandlerMapping][ServerService Thread Pool -- 409] - Root mapping to handler of type [class org.apereo.cas.config.CasWebAppConfiguration$2]
[22:51:36][DEBUG][org.apereo.cas.web.flow.AbstractCasWebflowConfigurer][ServerService Thread Pool -- 409] - Initializing CAS webflow configuration...
[22:51:36][DEBUG][org.apereo.cas.web.flow.AbstractCasWebflowConfigurer][ServerService Thread Pool -- 409] - Created end state state [viewRedirectToUnauthorizedUrlView] on flow id [login], backed by view factory [org.springframework.webflow.engine.support.ActionExecutingViewFactory@7dbcf70d]
Reply all
Reply to author
Forward
0 new messages