I estaba siguiendo los pasos descritos en la sección de autenticación de la
base de datos de la documentación (
https://apereo.github.io/cas/5.1.x/installation/Database-Authentication.html )
y el usuario no está autenticado en la forma https : // localhost: 8443 /
cas / login <https://localhost:8443/cas/login>
-
[5.1] Versión del servidor CAS
-
[Tomcat] Contenedor / tipo de entorno / versión (Tomcat, Jetty, Java,
Linux / Windows, etc.)
-
Pasos [
1.-agregar pom.xml
org.apereo.cas
cas-server-support-jdbc
$ {cas.version}
org.postgresql
postgresql
42.1.1
Org.apache.commons commons-collections4 4.1
2.- agregar propiedades en el archivo
cas.properties cas.server.name: https: // localhost: 8443
<https://localhost:8443/>
cas.server.prefix: https: // localhost: 8443 / cas
<https://localhost:8443/cas>
Cas.adminPagesSecurity.ip = 127.0.0.1
Logging.config: archivo: C: /etc/cas/config/log4j2.xml
Cas.serviceRegistry.config.location: classpath: / services
Cas.authn.policy.any.tryAll = true
Cas.authn.accept.users =
Server.ssl.key-store = archivo: C: /etc/cas/crunchifyKey.keystore
server.ssl.key-store-password = changeit
server.ssl.key-password = changeit
Cas.authn.jdbc.query [0] .url = jdbc: postgresql: // localhost: 5432 /
sistema_contable_erp
cas.authn.jdbc.query [0] .user = postgres
cas.authn.jdbc.query [0] .password = 123456
cas.authn.jdbc.query [0] .autocommit = false
cas.authn.jdbc.query [0] .driverClass = org.postgresql.Driver
Cas.authn.jdbc.query [0] .sql = SELECCIONAR contraseña FROM
persona_empresa_usuario WHERE ci_ruc =?
Cas.authn.jdbc.query [0] .healthQuery = seleccionar 1
cas.authn.jdbc.query [0] .isolateInternalQueries = false
cas.authn.jdbc.query [0] .failFast = true
cas.authn.jdbc.query [0] .isolationLevelName = ISOLATION_READ_COMMITTED
cas.authn.jdbc.query [0] .dialect =
org.hibernate.dialect.PostgreSQL95Dialect
cas.authn.jdbc.query [0] .leakThreshold = 10
cas.authn.jdbc.query [0 ] .propagationBehaviorName =
PROPAGATION_REQUIRED cas.authn.jdbc.query [0] .batchSize = 1
cas.authn.jdbc.query [0] .ddlAuto = create-drop
cas.authn.jdbc.query [0] .maxAgeDays = 180
cas .authn.jdbc.query [0] .idleTimeout = 5000
cas.authn.jdbc.query [0] .credentialCriteria =
cas.jdbc.
Cas.authn.jdbc.query [0] .passwordEncoder.type = NINGUNO
]
- Stacktraces y registros CAS DEBUG cuando corresponda. [
2017-07-12 15: 15: 20,864 WARN
[org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <La
autenticación ha fallado. Las credenciales pueden ser incorrectas o CAS
no puede encontrar el controlador de autenticación que admite [0923746663]
de tipo [UsernamePasswordCredential], lo que sugiere un problema de
configuración>
2017-07-12 15: 15: 20,869 INFO [org.apereo.inspektr.audit.support.
Slf4jLoggingAuditTrailManager] - <Registro de pista de auditoría BEGIN
========================================== ===================
WHO: 0923746663
QUÉ: Credenciales suministradas: [0923746663]
ACCIÓN: AUTHENTICATION_FAILED
APLICACIÓN: CAS
WHEN: Wed Jul 12 15:15:20 COT 2017
CLIENTE IP DIRECCIÓN: 0: 0: 0: 0: 0: 0: 0: 1
SERVER DIRECCIÓN IP: 0:
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/4d0ac6b0-61ff-4041-bb4d-f38ddf19eb47%40apereo.org.