good evening, he configures the connection through LDAP through CAS with the following config in cas.properties:
cas.server.name: https://URL:8443
cas.server.prefix: https://URL/cas
cas.adminPagesSecurity.ip=127\.0\.0\.1
logging.config: file:/etc/cas/config/log4j2.xml
cas.authn.ldap[0].order: 0
cas.authn.ldap[0].name: Active Directory
cas.authn.ldap[0].type: AD
cas.authn.ldap[0].ldapUrl: ldap://URL
cas.authn.ldap[0].validatePeriod: 270
cas.authn.ldap[0].poolPassivator: NONE
cas.authn.ldap[0].userFilter: sAMAccountName={user}
cas.authn.ldap[0].baseDn: ou=X,dc=X,dc=local
cas.authn.ldap[0].dnFormat: cn=%s,ou=X,dc=X,dc=local
Once with the configuration and the debugging of the LOG, I notice that with the default user (casuser) the following is shown and registered correctly:
2018-06-28 09:57:31,169 DEBUG [org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler] - <Attempting authentication internally for transformed credential [UsernamePasswordCredential(username=casuser)]
2018-06-28 09:57:31,169 DEBUG [org.apereo.cas.authentication.DefaultAuthenticationBuilder] - <Recording authentication handler result success under key [AcceptUsersAuthenticationHandler]>
On the other hand, with the username and password of the AD the following is shown:
2018-06-28 09:55:43,015 DEBUG [org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler] - <Attempting authentication internally for transformed credential [UsernamePasswordCredential(username=USER)]>
2018-06-28 09:55:43,015 DEBUG [org.apereo.cas.authentication.AcceptUsersAuthenticationHandler] - <[USER] was not found in the map.>
2018-06-28 09:55:43,016 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [UsernamePasswordCredential
(username=USER)] of type [UsernamePasswordCredential]. Examine the configuration to ensure a method of authentication is defined and analyze CAS logs at DEBUG level to trace the authentication event.>
2018-06-28 09:55:43,016 DEBUG [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <[AcceptUsersAuthenticationHandler] exception details: [USER not found in backing map.].>
2018-06-28 09:55:43,016 DEBUG [org.apereo.cas.authentication.DefaultAuthenticationBuilder] - <Recording authentication handler failure under key [AcceptUsersAuthenticationHandler]>
2018-06-28 09:55:43,021 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
Can you help me?
Thank you!
--
DAVID A. CURRY, CISSP
DIRECTOR OF INFORMATION SECURITY
INFORMATION TECHNOLOGY
71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • david...@newschool.edu
Tipo Informe de estado
mensaje /cas/login
:(
--
DAVID A. CURRY, CISSP
DIRECTOR OF INFORMATION SECURITY
INFORMATION TECHNOLOGY
71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • david...@newschool.edu
--
DAVID A. CURRY, CISSP
DIRECTOR OF INFORMATION SECURITY
INFORMATION TECHNOLOGY
71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • david...@newschool.edu
--
DAVID A. CURRY, CISSP
DIRECTOR OF INFORMATION SECURITY
INFORMATION TECHNOLOGY
71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • david...@newschool.edu
Carlos,
Assuming you’re generating a WAR file:
mvn clean package
Thanks,
Tom