Re: [cas-user] Ldap authentication with CAS 5.3.9

238 views
Skip to first unread message
Message has been deleted

Ray Bon

unread,
Apr 9, 2019, 11:18:49 AM4/9/19
to cas-...@apereo.org
Raphael,

Tomcat logs are in TOMCAT_HOME/logs.

Ray

On Tue, 2019-04-09 at 02:11 -0700, Raphaël CHANE wrote:
hello,

I am trying to get CAS to work with AD, but i've got this error on tomcat logs "<Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports". I'm trying to see the cas logs but they are missing??


  GNU nano 2.7.4                                            Fichier : log4j2.xml                                             Modifié 

<?xml version="1.0" encoding="UTF-8" ?>
<!-- Specify the refresh internal in seconds. -->
<Configuration monitorInterval="5" packages="org.apereo.cas.logging">
    <Properties>
        <!--
        Default log directory is the current directory but that can be overridden with -Dcas.log.dir=<logdir>
        Or you can change this property to a new default
        -->
        <Property name="cas.log.dir" >/var/log/cas</Property>
        <!-- To see more CAS specific logging, adjust this property to info or debug or run server with -Dcas.log.leve=debug -->
        <Property name="cas.log.level" >debug</Property>
    </Properties>




I did some research and saw that it was no longer necessary to use the deployerConfigContext.xml file with cas 5.3.x.

here is my cas.properties and my pom.xml




cas.server.name=https://casxxx.xx
cas.server.prefix=${server.name}/cas

#TGC Cookie
cas.tgc.secure=true
cas.tgc.crypto.signing.key=xxx
cas.tgc.crypto.encryption.key=xxx

cas.webflow.crypto.signing.key=xxx
cas.webflow.crypto.encryption.key=xxx

#LDAP
cas.authn.accept.users=
cas.authn.ldap[0].order=0
cas.authn.ldap[0].name=Active Directory
cas.authn.ldap[0].type=AUTHENTICATED
cas.authn.ldap[0].ldapUrl=ldaps://ldapxxx.xx
cas.authn.ldap[0].validatePeriod=270
cas.authn.ldap[0].poolPassivator=NONE
cas.authn.ldap[0].userFilter=uid={user}
cas.authn.ldap[0].baseDn=ou=ldapusers,dc=xxx,dc=xxx,dc=xx
cas.authn.ldap[0].dnFormat=uid=%s,ou=ldapusers,dc=ldap,dc=xxx,dc=xx
cas.authn.ldap[0].bindCredential=&lPrAc1EedlI:0


logging.level.org.apereo=DEBUG




cas.adminPagesSecurity.ip=127\.0\.0\.1

logging.config: file:/etc/cas/config/log4j2.xml



pom.xml


     <dependency>
                    <groupId>org.apereo.cas</groupId>
                    <artifactId>cas-server-webapp${app.server}</artifactId>
                    <version>${cas.version}</version>
                    <type>war</type>
                    <scope>runtime</scope>
                </dependency>
                <dependency>
                    <groupId>org.apereo.cas</groupId>
                    <artifactId>cas-server-support-json-service-registry</artifactId>
                    <version>${cas.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apereo.cas</groupId>
                        <artifactId>cas-server-support-ldap</artifactId>
                        <version>${cas.version}</version>
                </dependency>
                <!--
                ...Additional dependencies may be placed here...
                -->
            </dependencies>



kind regards,

Raphael


Raphaël CHANE

unread,
Apr 10, 2019, 2:19:25 AM4/10/19
to CAS Community
Thanks Ray

Raphaël CHANE

unread,
Apr 10, 2019, 8:57:41 AM4/10/19
to CAS Community
SOLVED PROBLEM
Reply all
Reply to author
Forward
0 new messages