[cas-user] How to make CAS 6.1 work with Azure AD?

2019-11-13 Thread Александр Бруквин


I try to make CAS 6.1 work with Azure AD

 

1.  I added  compile 
"org.apereo.cas:cas-server-support-pac4j-webflow:${casServerVersion}" 
dependency to build.gradle and all settings related with azure to 
cas.properties file

 

Logs says „No delegated authentication clients are defined and/or 
configured“ and authentication fails.

What am i doing wrong?

 

The attached files are the logs, cas.properties, build.gradle and 
screenshot of authentication attempt

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/39bc30f3-20cc-4551-a7e8-0946fd98e08b%40apereo.org.


cas.properties
Description: Binary data


build.gradle
Description: Binary data
>gradlew run

> Task :run


 _  _   _ ___ _
/ \  |  _ \| |  _ \| / _ \   / ___|  / \  / ___|
   / _ \ | |_) |  _| | |_) |  _|| | | | | | / _ \ \___ \
  / ___ \|  __/| |___|  _ <| |__| |_| | | |___ / ___ \ ___) |
 /_/   \_\_|   |_|_| \_\_\___/   \/_/   \_\/


CAS Version: 6.1.1
CAS Branch: 6.1.x
CAS Commit Id: 12b12af2c9b9334a782804590cbcd8ebe6660eef
CAS Build Date/Time: 2019-10-30T22:01:10Z
Spring Boot Version: 2.2.0.RELEASE
Spring Version: 5.2.0.RELEASE
Java Home: C:\Program Files\Java\jdk-11.0.4
Java Vendor: Oracle Corporation
Java Version: 11.0.4
JVM Free Memory: 399 MB
JVM Maximum Memory: 2 GB
JVM Total Memory: 510 MB
JCE Installed: Yes
OS Architecture: amd64
OS Name: Windows 10
OS Version: 10.0
OS Date/Time: 2019-11-13T15:28:45.146403500
OS Temp Directory: C:\Users\Aleksandr.Brukvin\AppData\Local\Temp\

Apache Tomcat Version: Apache Tomcat/9.0.27



2019-11-13 15:28:45,187 INFO 
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - 

2019-11-13 15:28:45,308 INFO [org.apereo.cas.web.CasWebApplication] - 
2019-11-13 15:28:45,515 DEBUG [org.apereo.cas.web.CasWebApplicationContext] - 

2019-11-13 15:28:48,997 DEBUG 
[org.apereo.cas.tomcat.CasTomcatServletWebServerFactory] - 
2019-11-13 15:28:48,997 DEBUG 
[org.apereo.cas.tomcat.CasTomcatServletWebServerFactory] - 
2019-11-13 15:28:57,354 DEBUG [org.apereo.cas.support.saml.OpenSamlConfigBean] 
- 
2019-11-13 15:28:59,972 DEBUG 
[org.apereo.cas.support.pac4j.config.support.authentication.Pac4jAuthenticationEventExecutionPlanConfiguration]
 - 
2019-11-13 15:28:59,972 WARN 
[org.apereo.cas.support.pac4j.config.support.authentication.Pac4jAuthenticationEventExecutionPlanConfiguration]
 - 
2019-11-13 15:29:00,046 DEBUG [org.apereo.cas.config.CasCoreConfiguration] - 

2019-11-13 15:29:00,235 DEBUG 
[org.apereo.cas.config.CasCoreTicketsSchedulingConfiguration] - 
2019-11-13 15:29:00,241 DEBUG 
[org.apereo.cas.config.CasCoreTicketsSchedulingConfiguration] - 
2019-11-13 15:29:00,391 DEBUG 
[org.apereo.cas.config.CasPersonDirectoryConfiguration] - 
2019-11-13 15:29:00,616 DEBUG 
[org.apereo.cas.logout.DefaultLogoutExecutionPlan] - 
2019-11-13 15:29:01,518 INFO 
[org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration]
 - <

Using generated security password: 57ce6595-45b9-4122-9418-742ee6cfa76c
>
2019-11-13 15:29:01,786 INFO 
[org.springframework.security.web.access.channel.ChannelProcessingFilter] - 

2019-11-13 15:29:01,815 INFO 
[org.springframework.security.web.DefaultSecurityFilterChain] - 
2019-11-13 15:29:03,790 DEBUG 
[org.apereo.cas.config.CasCoreAuthenticationPrincipalConfiguration] - 

2019-11-13 15:29:03,850 WARN 
[org.apereo.cas.config.CasCoreServicesConfiguration] - 
2019-11-13 15:29:03,882 WARN 
[org.apereo.cas.config.CasCoreTicketsConfiguration] - 
2019-11-13 15:29:03,886 INFO [org.apereo.cas.util.CoreTicketUtils] - 
2019-11-13 15:29:03,946 DEBUG 
[org.apereo.cas.pm.config.PasswordManagementConfiguration] - 
2019-11-13 15:29:04,077 WARN 
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - 
2019-11-13 15:29:04,091 WARN 
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - 
2019-11-13 15:29:04,093 WARN 
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - 
2019-11-13 15:29:04,093 WARN 
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - 
2019-11-13 15:29:04,253 WARN 
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 
2019-11-13 15:29:04,253 WARN 
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 
2019-11-13 15:29:04,253 WARN 
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 
2019-11-13 15:29:04,255 WARN 
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 
2019-11-13 15:29:06,052 INFO 

[cas-user] Re: Building from Gradle on Heroku - where to change the cas properties ?

2019-11-13 Thread Pol Dellaiera
Thanks Andy,

I finally managed to get it working thanks to you.

I also submitted a PR to improve the official branch that gets deployed on 
Heroku (https://github.com/apereo/cas/pull/4438/) but it has been rejected.

Then I created my own repository that gets deployed on Heroku, find it 
here: https://github.com/drupol/heroku-cas-server

Thanks again.

On Wednesday, November 13, 2019 at 9:57:14 AM UTC+1, Andy Ng wrote:
>
> Hi,
>
> Referring this here:
>
> https://apereo.github.io/cas/6.0.x/configuration/Configuration-Management.html#overview
>
> I am using this for my testing system, and I just checked it does work, 
> and it can be consumed by CAS:
>
> java -server -noverify -Xmx2048M -jar 
> *-Dcas.standalone.configurationDirectory=/mycasproperties* cas.war 
> ${ADDITIONAL_JAVA_PARAM} 
>
>
> And you should be able to see this message if cas properties is loaded:
> 2019-11-13 08:52:18,444 INFO 
> [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] 
> -  [/mycasproperties/cas.properties]]] under profile(s)
>
> See if this would work...
>
> Cheers!
> - Andy
>
>
>
>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/1601bb9a-3024-40be-a8be-299ee876c13e%40apereo.org.


Re: [cas-user] Application Not Authorized to Use CAS, After authentication.

2019-11-13 Thread mohamed gamal
Unfortunatly Mr Abdelrahman, 
>
> we are still facing the same error 

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/82015f25-f74b-46d6-8504-8c85c1f28a2e%40apereo.org.


Re: [cas-user] Re: CAS 6.x Error while deploying cas.war in tomcat

2019-11-13 Thread Dmitriy Kopylenko
For what it's worth - if anyone is deploying CAS 6.1 to external Tomcat 
versions that do not have the newer API, and do not want to either upgrade 
Tomcat or use CAS in the embedded mode, add this line to your cas.properties -> 
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration

and you should be good to go.

Cheers,
D.


From: Nicolas Teste 
Reply: cas-user@apereo.org 
Date: November 13, 2019 at 8:50:17 AM
To: CAS Community 
Subject:  [cas-user] Re: CAS 6.x Error while deploying cas.war in tomcat  

I had the same issue a few days ago trying to upgrade from 6.0 to 6.1 on Debian 
9 and Tomcat 8.5.38 (from backport).
It looks like the method is really missing.

Online ressources
https://github.com/apache/tomcat/blame/master/java/org/apache/catalina/valves/RemoteIpValve.java#L480
https://bz.apache.org/bugzilla/show_bug.cgi?id=57665#c24
seems to indicate that the method is quite new and not available in our distro 
packaged Tomcat

Fixed in:
- master for 9.0.23 onwards
- 8.5.x for 8.5.44 onwards
- 7.0.x for 7.0.97 onwards

Le vendredi 18 octobre 2019 16:48:06 UTC+2, MW a écrit :
I bet it would run with this command: java -jar /path/to/cas.war

However, remove the line in your gradle.properties 

tomcatVersion=9.0.16

Then, replace -tomcat as your appServer value and recompile. 




On Thursday, October 17, 2019 at 9:26:55 AM UTC-6, moncada wrote:
Hello everyone,

I am Ubuntu Bionic whith Tomcat 9.0.16 and CAS 6.1.0-SNAPSHOT

I build the war with the command via overlay:

build.sh package

I copy cas.war in the webapps directory here is the log:

2019-10-17 17:19:27,064 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- 
2019-10-17 17:19:27,246 INFO
[org.apereo.cas.web.CasWebApplicationServletInitializer] - 
2019-10-17 17:19:46,297 DEBUG
[org.apereo.cas.support.saml.OpenSamlConfigBean] - 
2019-10-17 17:19:46,613 WARN
[org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext]
- 
2019-10-17 17:19:46,659 WARN
[org.springframework.boot.context.properties.migrator.PropertiesMigrationListener]
- <
The use of configuration keys that have been renamed was found in the
environment:

Property source 'bootstrapProperties':
Key: cas.authn.throttle.appcode
Replacement: cas.authn.throttle.app-code


Each configuration key has been temporarily mapped to its replacement
for your convenience. To silence this warning, please update your
configuration to use the new keys.
>
2019-10-17 17:19:46,703 ERROR
[org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] - <

***
APPLICATION FAILED TO START
***

Description:

An attempt was made to call a method that does not exist. The attempt
was made from the following location:


org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer.customizeRemoteIpValve(TomcatWebServerFactoryCustomizer.java:186)

The following method did not exist:

    'void
org.apache.catalina.valves.RemoteIpValve.setHostHeader(java.lang.String)'

The method's class, org.apache.catalina.valves.RemoteIpValve, is
available from the following locations:


jar:file:/usr/share/java/tomcat9-catalina-9.0.16.jar!/org/apache/catalina/valves/RemoteIpValve.class

jar:file:/var/lib/tomcat9/webapps/cas/WEB-INF/lib/tomcat-catalina-9.0.27.jar!/org/apache/catalina/valves/RemoteIpValve.class

jar:file:/var/lib/tomcat9/webapps/cas/WEB-INF/lib/tomcat-embed-core-9.0.27.jar!/org/apache/catalina/valves/RemoteIpValve.class

It was loaded from the following location:

    file:/usr/share/java/tomcat9-catalina-9.0.16.jar


Action:

Correct the classpath of your application so that it contains a single,
compatible version of org.apache.catalina.valves.RemoteIpValve


Thanks.

--
Juan Carlos Giménez Moncada
Ticarum / Universidad de Murcia
Campus de Espinardo
30100 Murcia
--
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/42755d7d-96b2-46b0-8d24-72e15a5065e4%40apereo.org.

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 

[cas-user] Re: CAS 6.x Error while deploying cas.war in tomcat

2019-11-13 Thread Nicolas Teste
I had the same issue a few days ago trying to upgrade from 6.0 to 6.1 on 
Debian 9 and Tomcat 8.5.38 (from backport).
It looks like the method is really missing.

Online ressources

   - 
   
https://github.com/apache/tomcat/blame/master/java/org/apache/catalina/valves/RemoteIpValve.java#L480
   - https://bz.apache.org/bugzilla/show_bug.cgi?id=57665#c24

seems to indicate that the method is quite new and not available in our 
distro packaged Tomcat

Fixed in:
> - master for 9.0.23 onwards
> - 8.5.x for 8.5.44 onwards
> - 7.0.x for 7.0.97 onwards
>
>
Le vendredi 18 octobre 2019 16:48:06 UTC+2, MW a écrit :
>
> I bet it would run with this command: java -jar /path/to/cas.war
>
> However, remove the line in your gradle.properties 
>
> tomcatVersion=9.0.16
>
> Then, replace -tomcat as your appServer value and recompile. 
>
>
>
>
> On Thursday, October 17, 2019 at 9:26:55 AM UTC-6, moncada wrote:
>
>> Hello everyone, 
>>
>> I am Ubuntu Bionic whith Tomcat 9.0.16 and CAS 6.1.0-SNAPSHOT 
>>
>> I build the war with the command via overlay: 
>>
>> build.sh package 
>>
>> I copy cas.war in the webapps directory here is the log: 
>>
>> 2019-10-17 17:19:27,064 INFO 
>> [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
>>  
>>
>> - > [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]> 
>> 2019-10-17 17:19:27,246 INFO 
>> [org.apereo.cas.web.CasWebApplicationServletInitializer] - > following profiles are active: standalone> 
>> 2019-10-17 17:19:46,297 DEBUG 
>> [org.apereo.cas.support.saml.OpenSamlConfigBean] - > successfully.> 
>> 2019-10-17 17:19:46,613 WARN 
>> [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext]
>>  
>>
>> - > refresh attempt: 
>> org.springframework.beans.factory.BeanCreationException: Error creating 
>> bean with name 'tomcatServletWebServerFactory' defined in class path 
>> resource 
>> [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]:
>>  
>>
>> Initialization of bean failed; nested exception is 
>> java.lang.NoSuchMethodError: 'void 
>> org.apache.catalina.valves.RemoteIpValve.setHostHeader(java.lang.String)'> 
>>
>> 2019-10-17 17:19:46,659 WARN 
>> [org.springframework.boot.context.properties.migrator.PropertiesMigrationListener]
>>  
>>
>> - < 
>> The use of configuration keys that have been renamed was found in the 
>> environment: 
>>
>> Property source 'bootstrapProperties': 
>> Key: cas.authn.throttle.appcode 
>> Replacement: cas.authn.throttle.app-code 
>>
>>
>> Each configuration key has been temporarily mapped to its replacement 
>> for your convenience. To silence this warning, please update your 
>> configuration to use the new keys. 
>> > 
>> 2019-10-17 17:19:46,703 ERROR 
>> [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] - < 
>>
>> *** 
>> APPLICATION FAILED TO START 
>> *** 
>>
>> Description: 
>>
>> An attempt was made to call a method that does not exist. The attempt 
>> was made from the following location: 
>>
>>
>> org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer.customizeRemoteIpValve(TomcatWebServerFactoryCustomizer.java:186)
>>  
>>
>>
>> The following method did not exist: 
>>
>> 'void 
>> org.apache.catalina.valves.RemoteIpValve.setHostHeader(java.lang.String)' 
>>
>> The method's class, org.apache.catalina.valves.RemoteIpValve, is 
>> available from the following locations: 
>>
>>
>> jar:file:/usr/share/java/tomcat9-catalina-9.0.16.jar!/org/apache/catalina/valves/RemoteIpValve.class
>>  
>>
>>
>> jar:file:/var/lib/tomcat9/webapps/cas/WEB-INF/lib/tomcat-catalina-9.0.27.jar!/org/apache/catalina/valves/RemoteIpValve.class
>>  
>>
>>
>> jar:file:/var/lib/tomcat9/webapps/cas/WEB-INF/lib/tomcat-embed-core-9.0.27.jar!/org/apache/catalina/valves/RemoteIpValve.class
>>  
>>
>>
>> It was loaded from the following location: 
>>
>> file:/usr/share/java/tomcat9-catalina-9.0.16.jar 
>>
>>
>> Action: 
>>
>> Correct the classpath of your application so that it contains a single, 
>> compatible version of org.apache.catalina.valves.RemoteIpValve 
>>
>>
>> Thanks. 
>>
>> -- 
>> Juan Carlos Giménez Moncada 
>> Ticarum / Universidad de Murcia 
>> Campus de Espinardo 
>> 30100 Murcia 
>>
>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/42755d7d-96b2-46b0-8d24-72e15a5065e4%40apereo.org.


Re: [cas-user] Re: Building from Gradle on Heroku - where to change the cas properties ?

2019-11-13 Thread Anmol Budhewar
hello
I am attaching the cas.properties file screenshot and also a cas.properties
file so I need to know how to connect
ldap with cas server. the version of cas is 5.1 which is in maven.
kindly check my mail please give me the any solution .

On Wed, Nov 13, 2019 at 2:47 PM Pol Dellaiera  wrote:

> Hello Anmol,
>
> Please use the proper thread for your question or create a new one.
>
> Thanks.
>
> On Wednesday, November 13, 2019 at 10:14:47 AM UTC+1, Anmol Budhewar wrote:
>>
>> Hello,
>>Thank you for your response, currently I am using cas 5.1 in maven
>> project. Not using the gradle can you help me in maven to connect the cas
>> with
>> LDAP.
>>
>> -Anmol
>>
>> On Wed, Nov 13, 2019 at 2:27 PM Andy Ng  wrote:
>>
>>> Hi,
>>>
>>> Referring this here:
>>>
>>> https://apereo.github.io/cas/6.0.x/configuration/Configuration-Management.html#overview
>>>
>>> I am using this for my testing system, and I just checked it does work,
>>> and it can be consumed by CAS:
>>>
>>> java -server -noverify -Xmx2048M -jar
>>> *-Dcas.standalone.configurationDirectory=/mycasproperties* cas.war
>>> ${ADDITIONAL_JAVA_PARAM}
>>>
>>>
>>> And you should be able to see this message if cas properties is loaded:
>>> 2019-11-13 08:52:18,444 INFO
>>> [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
>>> - >> [/mycasproperties/cas.properties]]] under profile(s)
>>>
>>> See if this would work...
>>>
>>> Cheers!
>>> - Andy
>>>
>>>
>>>
>>> --
>>> - 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-...@apereo.org.
>>> To view this discussion on the web visit
>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/cee0bfd6-bf40-48ba-bda3-e7202e2a2d63%40apereo.org
>>> 
>>> .
>>>
>> --
> - 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+unsubscr...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/c4548ac7-9799-4fcf-af38-64dc2fd045a0%40apereo.org
> 
> .
>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CADit65YgR6aETB3XO%3DkTYfvug0WfBVg6oLM9W1bqEorT%2BHoA8g%40mail.gmail.com.
cas.server.name: https://cas.example.org:8443
cas.server.prefix: https://cas.example.org:8443/cas

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

logging.config: file:/etc/cas/config/log4j2.xml
# cas.serviceRegistry.config.location: classpath:/services

server.ssl.keyStore=file:/opt/mkyongkeystore 
server.ssl.keyStorePassword=changeit
server.ssl.keyPassword=changeit


#cas.spring.cloud.jdbc.sql=SELECT id, name, value FROM CAS_SETTINGS_TABLE
#cas.spring.cloud.jdbc.url=
#cas.spring.cloud.jdbc.user=
#cas.spring.cloud.jdbc.password=
#cas.spring.cloud.jdbc.driverClass=

#Query Database Authentication
#cas.authn.jdbc.query[0].sql=SELECT * FROM table WHERE name=?
# cas.authn.jdbc.query[0].healthQuery=
# cas.authn.jdbc.query[0].isolateInternalQueries=false
# cas.authn.jdbc.query[0].url=jdbc:hsqldb:mem:cas-hsql-database
# 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.HSQLDialect
# 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].user=user
# cas.authn.jdbc.query[0].ddlAuto=create-drop
# cas.authn.jdbc.query[0].maxAgeDays=180
# cas.authn.jdbc.query[0].password=secret
# cas.authn.jdbc.query[0].autocommit=false
# cas.authn.jdbc.query[0].driverClass=org.hsqldb.jdbcDriver
# cas.authn.jdbc.query[0].idleTimeout=5000
# cas.authn.jdbc.query[0].credentialCriteria=
# cas.authn.jdbc.query[0].name=
# 

Re: [cas-user] Re: Building from Gradle on Heroku - where to change the cas properties ?

2019-11-13 Thread Pol Dellaiera
Hello Anmol,

Please use the proper thread for your question or create a new one.

Thanks.

On Wednesday, November 13, 2019 at 10:14:47 AM UTC+1, Anmol Budhewar wrote:
>
> Hello, 
>Thank you for your response, currently I am using cas 5.1 in maven 
> project. Not using the gradle can you help me in maven to connect the cas 
> with 
> LDAP.
>
> -Anmol
>
> On Wed, Nov 13, 2019 at 2:27 PM Andy Ng > 
> wrote:
>
>> Hi,
>>
>> Referring this here:
>>
>> https://apereo.github.io/cas/6.0.x/configuration/Configuration-Management.html#overview
>>
>> I am using this for my testing system, and I just checked it does work, 
>> and it can be consumed by CAS:
>>
>> java -server -noverify -Xmx2048M -jar 
>> *-Dcas.standalone.configurationDirectory=/mycasproperties* cas.war 
>> ${ADDITIONAL_JAVA_PARAM} 
>>
>>
>> And you should be able to see this message if cas properties is loaded:
>> 2019-11-13 08:52:18,444 INFO 
>> [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
>>  
>> - > [/mycasproperties/cas.properties]]] under profile(s)
>>
>> See if this would work...
>>
>> Cheers!
>> - Andy
>>
>>
>>
>> -- 
>> - 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-...@apereo.org .
>> To view this discussion on the web visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/cee0bfd6-bf40-48ba-bda3-e7202e2a2d63%40apereo.org
>>  
>> 
>> .
>>
>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/c4548ac7-9799-4fcf-af38-64dc2fd045a0%40apereo.org.


Re: [cas-user] Re: Building from Gradle on Heroku - where to change the cas properties ?

2019-11-13 Thread Anmol Budhewar
Hello,
   Thank you for your response, currently I am using cas 5.1 in maven
project. Not using the gradle can you help me in maven to connect the cas
with
LDAP.

-Anmol

On Wed, Nov 13, 2019 at 2:27 PM Andy Ng  wrote:

> Hi,
>
> Referring this here:
>
> https://apereo.github.io/cas/6.0.x/configuration/Configuration-Management.html#overview
>
> I am using this for my testing system, and I just checked it does work,
> and it can be consumed by CAS:
>
> java -server -noverify -Xmx2048M -jar
> *-Dcas.standalone.configurationDirectory=/mycasproperties* cas.war
> ${ADDITIONAL_JAVA_PARAM}
>
>
> And you should be able to see this message if cas properties is loaded:
> 2019-11-13 08:52:18,444 INFO
> [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
> -  [/mycasproperties/cas.properties]]] under profile(s)
>
> See if this would work...
>
> Cheers!
> - Andy
>
>
>
> --
> - 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+unsubscr...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/cee0bfd6-bf40-48ba-bda3-e7202e2a2d63%40apereo.org
> 
> .
>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CADit65bJ%3De6NX13kF7f1h20%2B8CEK4D58wUJ-rZHqY9ZZLA%2BMUQ%40mail.gmail.com.


[cas-user] Re: Building from Gradle on Heroku - where to change the cas properties ?

2019-11-13 Thread Andy Ng
Hi,

Referring this here:
https://apereo.github.io/cas/6.0.x/configuration/Configuration-Management.html#overview

I am using this for my testing system, and I just checked it does work, and 
it can be consumed by CAS:

java -server -noverify -Xmx2048M -jar 
*-Dcas.standalone.configurationDirectory=/mycasproperties* cas.war 
${ADDITIONAL_JAVA_PARAM} 


And you should be able to see this message if cas properties is loaded:
2019-11-13 08:52:18,444 INFO 
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/cee0bfd6-bf40-48ba-bda3-e7202e2a2d63%40apereo.org.