CAS 5.1 Missing cas.properties

153 views
Skip to first unread message

Nona M

unread,
Jun 27, 2017, 1:33:07 PM6/27/17
to CAS Community
Hi,

I'am trying to implement CAS with ldap on Tomcat for the first time. I am trying to figure out why cas.properties file doesn't get created in target directory after I do my maven build. I do see application.properties in cas/WEB-INF/classes. Are they the same???
Here is my pom.xml:

Thanks for the help.

<?xml version="1.0" encoding="UTF-8"?>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apereo.cas</groupId>
   <artifactId>cas-overlay</artifactId>
   <packaging>war</packaging>
   <version>1.0</version>

    <build>
       <plugins>
           <plugin>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-maven-plugin</artifactId>
               <version>${springboot.version}</version>
               <configuration>
                   <mainClass>org.springframework.boot.loader.WarLauncher</mainClass>
                   <addResources>true</addResources>
               </configuration>
           </plugin>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-war-plugin</artifactId>
               <version>2.6</version>
               <configuration>
                   <warName>cas</warName>
<failOnMissingWebXml>false</failOnMissingWebXml>
                   <recompressZippedFiles>false</recompressZippedFiles>
                   <overlays>
                       <overlay>
                           <groupId>org.apereo.cas</groupId>
                           <artifactId>cas-server-webapp</artifactId>
                                                   
</overlay>
                   </overlays>

                </configuration>
           </plugin>
       </plugins>
       <finalName>cas</finalName>
   </build>

    <dependencies>
<dependency>
           <groupId>org.apereo.cas</groupId>
           <artifactId>cas-server-webapp</artifactId>
           <version>5.1.0</version>
           <type>war</type>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>org.apereo.cas</groupId>
           <artifactId>cas-server-support-ldap</artifactId>
           <version>5.1.0</version>
       </dependency>
       <dependency>
           <groupId>org.apereo.cas</groupId>
           <artifactId>cas-server-support-ldap-core</artifactId>
           <version>5.1.0</version>
       </dependency>
   </dependencies>

    <properties>
       <springboot.version>1.4.2.RELEASE</springboot.version>
       <maven.compiler.source>1.8</maven.compiler.source>
       <maven.compiler.target>1.8</maven.compiler.target>
       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   </properties>

    <repositories>
       <repository>
           <id>sonatype-releases</id>
           <snapshots>
               <enabled>false</enabled>
           </snapshots>
           <releases>
               <enabled>true</enabled>
           </releases>
       </repository>
       <repository>
           <id>sonatype-snapshots</id>
           <snapshots>
               <enabled>true</enabled>
           </snapshots>
           <releases>
               <enabled>false</enabled>
           </releases>
       </repository>
       <repository>
           <id>shibboleth-releases</id>
       </repository>
       <repository>
           <id>spring-milestones</id>
           <url>https://repo.spring.io/milestone</url>
       </repository>
   </repositories>
</project>



Ben Howell-Thomas

unread,
Jun 28, 2017, 11:01:30 AM6/28/17
to cas-...@apereo.org
It's not supposed to be copied.


There's lots of different ways to get the config.  I think we set our servers to get it via the -D vm argument (see bootstrap.properties).

--
- 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 cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/2b16ac0b-e009-4747-b8cc-8dc4d8e6bf2f%40apereo.org.


This email is sent on behalf of Northgate Public Services (UK) Limited and its associated companies including Rave Technologies (India) Pvt Limited (together "Northgate Public Services") and is strictly confidential and intended solely for the addressee(s). 
If you are not the intended recipient of this email you must: (i) not disclose, copy or distribute its contents to any other person nor use its contents in any way or you may be acting unlawfully;  (ii) contact Northgate Public Services immediately on +44(0)1908 264500 quoting the name of the sender and the addressee then delete it from your system.
Northgate Public Services has taken reasonable precautions to ensure that no viruses are contained in this email, but does not accept any responsibility once this email has been transmitted.  You should scan attachments (if any) for viruses.

Northgate Public Services (UK) Limited, registered in England and Wales under number 00968498 with a registered address of Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 4NN.  Rave Technologies (India) Pvt Limited, registered in India under number 117068 with a registered address of 2nd Floor, Ballard House, Adi Marzban Marg, Ballard Estate, Mumbai, Maharashtra, India, 400001.

Julien Whizz

unread,
Jun 29, 2017, 6:53:14 AM6/29/17
to CAS Community
With ./build package, the cas.properties is deployed here /etc/cas/config (by default)

And Follow this doc to add you LDAP properties : https://apereo.github.io/cas/5.1.x/installation/LDAP-Authentication.html

Configuration

To see the relevant list of CAS properties, please review this guide.


And add the :
cas.authn.ldap[0]....
...
Reply all
Reply to author
Forward
0 new messages