cas.adminPagesSecurity.ip=^([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])$
cas.adminPagesSecurity.ldap.type=AUTHENTICATED
cas.adminPagesSecurity.ldap.ldapUrl=ldaps://adserver.developer.local
cas.adminPagesSecurity.ldap.useSsl=true
cas.adminPagesSecurity.ldap.useStartTls=false
cas.adminPagesSecurity.ldap.connectTimeout=5000
cas.adminPagesSecurity.ldap.baseDn=ou=User Accounts,dc=developer,dc=local
cas.adminPagesSecurity.ldap.userFilter=(sAMAccountName={user})
cas.adminPagesSecurity.ldap.subtreeSearch=true
cas.adminPagesSecurity.ldap.bindDn=cn=ADUSER,ou=User Accounts,dc=developer,dc=local
cas.adminPagesSecurity.ldap.bindCredential=xxxxxxxxxxxxx
cas.adminPagesSecurity.ldap.principalAttributePassword=
cas.adminPagesSecurity.ldap.ldapAuthz.rolePrefix=ROLE_
cas.adminPagesSecurity.ldap.ldapAuthz.roleAttribute=distinguishedName
cas.adminPagesSecurity.adminRoles[0]=ROLE_CN=TEST ADMIN,OU=USER ACCOUNTS,DC=DEVELOPER,DC=LOCAL
2017-09-14 17:05:51,728 DEBUG [org.apereo.cas.web.ldap.LdapAuthenticationProvider] - <Executing LDAP authentication request for user [testadmin]>
2017-09-14 17:05:53,837 DEBUG [org.apereo.cas.web.ldap.LdapAuthenticationProvider] - <LDAP response: [[org.ldaptive.auth.AuthenticationResponse@138934696::authenticationResultCode=AUTHENTICATION_HANDLER_SUCCESS, resolvedDn=CN=Test Admin,OU=User Accounts,DC=developer,DC=local, ldapEntry=[dn=CN=Test Admin,OU=User Accounts,DC=developer,DC=local[[mail[test...@myemaildomain.com]], [GUID[testadmin]], [uSNCreated[22950]], [badPwdCount[0]], [countryCode[0]], [userParameters[m: d ]], [whenChanged[20170912210900.0Z]], [objectClass[top, person, organizationalPerson, user]], [primaryGroupID[513]], [givenName[Test]], [BillingLocationId[25]], [objectGUID[???}?B??$??]], [BillingAccountNumber[0431381]], [instanceType[4]], [objectSid[o?hG3o~???^]], [whenCreated[20060504053320.0Z]], [adminCount[1]], [dSCorePropagationData[20081126172248.0Z, 20081126172440.0Z, 16010108151056.0Z]], [sn[Admin]], [userAccountControl[66048]], [lastLogonTimestamp[131497241403024643]], [cn[Test Admin]], [codePage[0]], [accountExpires[9223372036854775807]], [sAMAccountName[testadmin]], [sAMAccountType[805306368]], [userPrincipalName[testadmin@developer]], [LanguageId[en]], [displayName[Test Admin]], [pwdLastSet[128445099571052935]], [TrackId[4]], [name[Test Admin]], [lastLogon[131498784000051542]], [objectCategory[CN=Person,CN=Schema,CN=Configuration,DC=developer,DC=local]], [lastLogoff[0]], [distinguishedName[CN=Test Admin,OU=User Accounts,DC=developer,DC=local]], [memberOf[CN=Static Developers,OU=User Accounts,DC=developer,DC=local, CN=Administrators,CN=Builtin,DC=developer,DC=local, CN=CAS,OU=User Accounts,DC=developer,DC=local, CN=SVN Documents,OU=User Accounts,DC=developer,DC=local, CN=WSS_ADMIN_WPG,CN=Users,DC=developer,DC=local, CN=WPI Developers,OU=User Accounts,DC=developer,DC=local, CN=__ExchangeFullAdmin,OU=User Accounts,DC=developer,DC=local, CN=Domain Admins,CN=Users,DC=developer,DC=local, CN=PHP Developers,OU=User Accounts,DC=developer,DC=local, CN=Schema Admins,CN=Users,DC=developer,DC=local, CN=Enterprise Admins,CN=Users,DC=developer,DC=local, CN=VPN,OU=User Accounts,DC=developer,DC=local]], [badPasswordTime[131354220137319729]], [logonCount[32333]], [uSNChanged[29529278]]], responseControls=null, messageId=-1], accountState=null, result=true, resultCode=SUCCESS, message=null, controls=null]]>
2017-09-14 17:05:53,838 DEBUG [org.apereo.cas.web.ldap.LdapAuthenticationProvider] - <Collected user profile [#CommonProfile# | id: testadmin | attributes: {BillingLocationId=[25], lastLogoff=[0], logonCount=[32333], mail=[test...@myemaildomain.com], userParameters=[m: d ], LanguageId=[en], lastLogonTimestamp=[131497241403024643], accountExpires=[9223372036854775807], displayName=[Test Admin], distinguishedName=[CN=Test Admin,OU=User Accounts,DC=developer,DC=local], countryCode=[0], objectGUID=[???}?B??$??], dSCorePropagationData=[20081126172248.0Z, 20081126172440.0Z, 16010108151056.0Z], uSNCreated=[22950], sn=[Admin], memberOf=[CN=Static Developers,OU=User Accounts,DC=developer,DC=local, CN=Administrators,CN=Builtin,DC=developer,DC=local, CN=CAS,OU=User Accounts,DC=developer,DC=local, CN=SVN Documents,OU=User Accounts,DC=developer,DC=local, CN=WSS_ADMIN_WPG,CN=Users,DC=developer,DC=local, CN=WPI Developers,OU=User Accounts,DC=developer,DC=local, CN=__ExchangeFullAdmin,OU=User Accounts,DC=developer,DC=local, CN=Domain Admins,CN=Users,DC=developer,DC=local, CN=PHP Developers,OU=User Accounts,DC=developer,DC=local, CN=Schema Admins,CN=Users,DC=developer,DC=local, CN=Enterprise Admins,CN=Users,DC=developer,DC=local, CN=VPN,OU=User Accounts,DC=developer,DC=local], codePage=[0], userAccountControl=[66048], userPrincipalName=[testadmin@developer], lastLogon=[131498784000051542], TrackId=[4], whenCreated=[20060504053320.0Z], badPasswordTime=[131354220137319729], uSNChanged=[29529278], sAMAccountName=[testadmin], givenName=[Test], instanceType=[4], objectClass=[top, person, organizationalPerson, user], cn=[Test Admin], BillingAccountNumber=[0431381], whenChanged=[20170912210900.0Z], GUID=[testadmin], primaryGroupID=[513], adminCount=[1], sAMAccountType=[805306368], name=[Test Admin], objectSid=[o?hG3o~???^], badPwdCount=[0], pwdLastSet=[128445099571052935], objectCategory=[CN=Person,CN=Schema,CN=Configuration,DC=developer,DC=local]} | roles: [] | permissions: [] | isRemembered: false | clientName: null | linkedId: null |]>
2017-09-14 17:05:53,838 DEBUG [org.apereo.cas.authorization.BaseUseAttributesAuthorizationGenerator] - <Attempting to get details for user [testadmin].>
2017-09-14 17:05:53,838 DEBUG [org.apereo.cas.configuration.support.Beans] - <Constructed LDAP search filter [(sAMAccountName=testadmin)]>
2017-09-14 17:05:54,508 DEBUG [org.apereo.cas.authorization.BaseUseAttributesAuthorizationGenerator] - <LDAP user search response: [[org.ldaptive.Response@543776551::result=[org.ldaptive.SearchResult@164530940::entries=[[dn=CN=Test Admin,OU=User Accounts,DC=developer,DC=local[[distinguishedName[CN=Test Admin,OU=User Accounts,DC=developer,DC=local]]], responseControls=null, messageId=-1]], references=[]], resultCode=SUCCESS, message=null, matchedDn=null, responseControls=null, referralURLs=null, messageId=-1]]>
2017-09-14 17:05:54,509 DEBUG [org.apereo.cas.web.ldap.LdapAuthenticationProvider] - <Assembled user profile with roles after generating authorization claims [#CommonProfile# | id: testadmin | attributes: {BillingLocationId=[25], lastLogoff=[0], logonCount=[32333], mail=[test...@myemaildomain.com], userParameters=[m: d ], LanguageId=[en], lastLogonTimestamp=[131497241403024643], accountExpires=[9223372036854775807], displayName=[Test Admin], distinguishedName=[CN=Test Admin,OU=User Accounts,DC=developer,DC=local], countryCode=[0], objectGUID=[???}?B??$??], dSCorePropagationData=[20081126172248.0Z, 20081126172440.0Z, 16010108151056.0Z], uSNCreated=[22950], sn=[Admin], memberOf=[CN=Static Developers,OU=User Accounts,DC=developer,DC=local, CN=Administrators,CN=Builtin,DC=developer,DC=local, CN=CAS,OU=User Accounts,DC=developer,DC=local, CN=SVN Documents,OU=User Accounts,DC=developer,DC=local, CN=WSS_ADMIN_WPG,CN=Users,DC=developer,DC=local, CN=WPI Developers,OU=User Accounts,DC=developer,DC=local, CN=__ExchangeFullAdmin,OU=User Accounts,DC=developer,DC=local, CN=Domain Admins,CN=Users,DC=developer,DC=local, CN=PHP Developers,OU=User Accounts,DC=developer,DC=local, CN=Schema Admins,CN=Users,DC=developer,DC=local, CN=Enterprise Admins,CN=Users,DC=developer,DC=local, CN=VPN,OU=User Accounts,DC=developer,DC=local], codePage=[0], userAccountControl=[66048], userPrincipalName=[testadmin@developer], lastLogon=[131498784000051542], TrackId=[4], whenCreated=[20060504053320.0Z], badPasswordTime=[131354220137319729], uSNChanged=[29529278], sAMAccountName=[testadmin], givenName=[Test], instanceType=[4], objectClass=[top, person, organizationalPerson, user], cn=[Test Admin], BillingAccountNumber=[0431381], whenChanged=[20170912210900.0Z], GUID=[testadmin], primaryGroupID=[513], adminCount=[1], sAMAccountType=[805306368], name=[Test Admin], objectSid=[o?hG3o~???^], badPwdCount=[0], pwdLastSet=[128445099571052935], objectCategory=[CN=Person,CN=Schema,CN=Configuration,DC=developer,DC=local]} | roles: [ROLE_CN=TEST ADMIN,OU=USER ACCOUNTS,DC=DEVELOPER,DC=LOCAL] | permissions: [] | isRemembered: false | clientName: null | linkedId: null |]>
2017-09-14 17:05:54,509 DEBUG [org.apereo.cas.web.ldap.LdapAuthenticationProvider] - <List of authorities remapped from profile roles are [[ROLE_CN=TEST ADMIN,OU=USER ACCOUNTS,DC=DEVELOPER,DC=LOCAL]]>
2017-09-14 17:05:54,509 DEBUG [org.apereo.cas.web.ldap.LdapAuthenticationProvider] - <Executing authorization for expected admin roles [[ROLE_ACTUATOR, ROLE_CN=TEST ADMIN,OU=USER ACCOUNTS,DC=DEVELOPER,DC=LOCAL]]>
2017-09-14 17:05:54,615 DEBUG [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file found for [classpath:custom_messages_en] - neither plain properties nor XML>
2017-09-14 17:05:54,620 DEBUG [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file found for [classpath:custom_messages] - neither plain properties nor XML>
2017-09-14 17:05:54,627 DEBUG [org.apereo.cas.web.view.CasReloadableMessageBundle] - <No properties file found for [classpath:messages_en] - neither plain properties nor XML>
2017-09-14 17:05:54,629 DEBUG [org.apereo.cas.web.view.CasReloadableMessageBundle] - <Re-caching properties for filename [classpath:messages] - file hasn't been modified>
Thanks Andy.
Normal CAS authentications are working fine with the service definition that I have and the service redirects are working as you indicated.
I don’t think there are any service redirects (or any services that need to be defined) for the spring security method. At least if I setup to use spring security with a master account and just swap out the following lines of my cas.properties:
cas.adminPagesSecurity.ldap.type=AUTHENTICATED
cas.adminPagesSecurity.ldap.ldapUrl=ldaps://adserver.developer.local
cas.adminPagesSecurity.ldap.useSsl=true
cas.adminPagesSecurity.ldap.useStartTls=false
cas.adminPagesSecurity.ldap.connectTimeout=5000
cas.adminPagesSecurity.ldap.baseDn=ou=User Accounts,dc=developer,dc=local
cas.adminPagesSecurity.ldap.userFilter=(sAMAccountName={user})
cas.adminPagesSecurity.ldap.subtreeSearch=true
cas.adminPagesSecurity.ldap.bindDn=cn=ADUSER,ou=User Accounts,dc=developer,dc=local
cas.adminPagesSecurity.ldap.bindCredential=xxxxxxxxxxxxx
cas.adminPagesSecurity.ldap.principalAttributePassword=
cas.adminPagesSecurity.ldap.ldapAuthz.rolePrefix=ROLE_
cas.adminPagesSecurity.ldap.ldapAuthz.roleAttribute=distinguishedName
cas.adminPagesSecurity.adminRoles[0]=ROLE_CN=TEST ADMIN,OU=USER ACCOUNTS,DC=DEVELOPER,DC=LOCAL
and replace them with these lines instead:
security.basic.enabled=true
security.basic.realm=CAS
security.user.name=master
security.user.password=6b934cf6-8162-4dba-878b-ed10eb3ac105
and then navigate to https://cas.developer.local/cas/status and I am presented with the Basic Authentication dialog where I put in the above credentials and the status page loads as desired.
Doug
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/ab4431b1-1198-4d9a-b5a7-c6b4393ed006%40apereo.org.