by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:12

    apereocas-bot on gh-pages

    Published docs [gh-pages]. (compare)

  • 09:51

    mmoayyed on master

    update tests Trigger dependency update (compare)

  • Sep 23 17:10

    apereocas-bot on gh-pages

    Published docs [gh-pages]. (compare)

  • Sep 23 16:46

    mmoayyed on master

    re-enable aws tests; expose con… update notes (compare)

  • Sep 23 16:37

    mmoayyed on 6.2.x

    cherry pick session-store auto-… Merge branch '6.2.x' of github.… (compare)

  • Sep 23 15:51
    mmoayyed commented #4944
  • Sep 23 15:48

    mmoayyed on master

    fix tests (compare)

  • Sep 23 15:48
    leleuj commented #4944
  • Sep 23 14:45
    mmoayyed commented #4944
  • Sep 23 14:44
    leleuj commented #4944
  • Sep 23 14:22

    mmoayyed on master

    fix tests (compare)

  • Sep 23 13:59

    apereocas-bot on gh-pages

    Published docs [gh-pages]. (compare)

  • Sep 23 13:43

    mmoayyed on master

    Fix session replication autocon… (compare)

  • Sep 23 13:43
    mmoayyed closed #4944
  • Sep 23 13:43
    mmoayyed labeled #4944
  • Sep 23 13:43
    mmoayyed labeled #4944
  • Sep 23 13:43
    mmoayyed labeled #4944
  • Sep 23 13:42

    mmoayyed on master

    add tests (compare)

  • Sep 23 06:44
    codecov[bot] commented #4944
  • Sep 23 06:24
    apereocas-bot labeled #4944
Sebastian Dobrea
@TKSds
i have a problem with reset pw, on mysql jdbc setup
i get through the reset password flow ok, and get the password was changed succesfully view
I see that my query reaches the db
but the data in the table does not change, it seems that the query is rolledback for some reason
any ideas?
my setup is mysql 5.7 and cas 5.2.9
when i run the query by hand it works ok
Sebastian Dobrea
@TKSds
or is there anyway to log the queries in cas?
Sebastian Dobrea
@TKSds
nvm i figured it out
napoleon211092
@napoleon211092
[CAS Management user roles]

Hi all,

I have trouble with user role in CAS Management
If I use user.json file store in directory /etc/cas/config like below, CAS Management worked well.
Here is user.json file
{
"casuser" : {
"@class" : "org.apereo.cas.mgmt.authz.json.UserAuthorizationDefinition",
"roles" : [ "ROLE_ADMIN" ]
}
}
But, how to apply this properties as CAS Overlay properties store in MongoDB?
Or how to indicate CAS-managment or CAS Overlay user's roles always is "ROLE_ADMIN"?
Please help me.
Thank you in advance.

Sebastian Dobrea
@TKSds
any ideas how to specify which version of tomcat/jetty for cas to use?
HamzaTheProDJ
@HamzaOukhmou_twitter
sup
uni-cthulu
@uni-cthulu

Could someone point me in the right direction to correcting this error in 6.2.1?

There was a problem initializing the LoggerContext [/cas] using configuration at [null]

I get the error when loading the cas.war with Tomcat 8.5. I do not receive this error when running the embedded Tomcat.
mohsensaeedi
@mohsensaeedi
I switched to cas management from version 5.2 to 5.3.6 with tomcat 8. I have a problem with cas-management log. I define loggoing.config and set /var/log/tomcat8 as logging path. I am using cas version 5.2.6 too without any problem on that server.
When i change /var/lib/tomcat8/webapps/cas-management/WEB-INF/classes/log4j2.xml file, it works. but cas-management doesn't read log4j config from /etc/cas/config/log4j2-management.xml
what is the problem?
On this server cas read log4j2.xml file and apply the settings.
After cas management load it uses log4j2-management.xml setting. I think the problem occur during WAR deploy.
Sebastian Dobrea
@TKSds
I am trying to deploy my cas app inside a local jetty webserver
and I'm getting this error when trying to start jetty
java.lang.IllegalArgumentException: Unable to find the main class to restart
even though I specified the main class in multiple ways
anyone any ideeas?
bifyu
@bifyu
I'm seeking some clarification on Authentication Throttling. We're using 5.0.x, but the documentation doesn't seem to differ much in subsequent versions for this question. https://apereo.github.io/cas/5.0.x/installation/Configuring-Authentication-Throttling.html
The docs describe both throttling by IP address, and IP address and username. How do we ensure the latter so the throttling is also per username? The cas.properties documentation includes a cas.authn.throttle.usernameParameter=username property, but doesn't explain its purpose. I don't see anything else that looks like it may be relevant?
2 replies
kotinkc
@kotinkc
hello everyone,
  • we are using CAS 3.5.0 war file from (https://repo1.maven.org/maven2/org/jasig/cas/cas-server-webapp/3.5.0/).
    -deployed CAS war in tomact server and done basic configuration.
    -from url (https://localhost:8443/cas) we are able to login succussfully.
  • But we are trying to use CAS REST API(https:localhost:8443/cas/v1/tickets?username=*&password=*) to get token.
    but we are getting request error (to test this we are using Postman).
    Please let us know how to get token through REST API?
ssrinathraju
@ssrinathraju

Hi All,
I've started using cas-overlay-template and in some places, I'm seeing that it is not recommended to run it with ./build.sh bootrun command?

Is this means we shouldn't run it as a spring boot application?

sujithuvionics
@sujithuvionics
Hi All, I try to impliment CAS using Spring Boot, Anybody have example?
Calavera Gaming Tv
@CalaveraGaming_twitter
Hi Sujithuvionics
i am try to
ssrinathraju
@ssrinathraju

Hi @sujithuvionics @CalaveraGaming_twitter
Are you also facing this problem after adding a few dependencies?

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.18.RELEASE:run (default-cli) on project cas-overlay: Could not exec java

We are able to run by just cloning it, It is failing after adding dependencies
Martin Klícha
@Manasssek_twitter

Hi all,
we are currently working on integration Domino/CAS/SecurEnvoy (2fa) using SAML. We are in situation, where CAS authenticate user with second factor and generate final callback response. Then we got following error.

2020-09-16 14:23:18,170 ERROR [org.jasig.cas.client.util.CommonUtils] - <Error getting response from host: [cas.uniqa.cz] with path: [/cas/p3/serviceValidate] and protocol: [https] Error Message: Connection refused (Connection refused)>
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[?:?]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[?:?]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) ~[?:?]

Ports 8080 and 8443 a opened and we are using self-signed ssl certificate. I can access https://cas.uniqa.cz/cas/p3/serviceValidate from browser on 8443.

Anybody saw similar error. Is ti CAS internal error? We are using CAS 6.0.

Thanks for any suggestion.

Martin

Lukáš Krejza
@gryffus
Hello, i am trying to deploy CAS and i am now in process of deploying cas-management. When starting the container in tomcat, i get this error: [2020-09-17 15:39:42] [info] #033[33m2020-09-17 15:39:42,189 WARN [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlController' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.SamlController]: Factory method 'samlController' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAggregateResolver' defined in class path resource [org/apereo/cas/mgmt/config/CasManagementSamlConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.mgmt.MetadataAggregateResolver]: Factory method 'metadataAggregateResolver' threw exception; nested exception is java.lang.NullPointerException>#033[m
Lukáš Krejza
@gryffus
This is full catalina.out log: https://paste.opensuse.org/view/raw/63535954
springnirps
@springnirps
Does it matter where I place my login webflow config and registration component? Anywhere in src/main/java I assume?
Lukáš Krejza
@gryffus
What are all the CAS modules? I can see cas, cas-management, cas-configserver - what is the difference between management and configserver? Are they both active? I am wondering why i cannot start the cas-management war in tomcat, while cas itself runs without problems

Could my cas-manager problem be related to following:
[2020-09-18 09:28:59] [info] #033[32m2020-09-18 09:28:59,546 INFO [org.apereo.cas.mgmt.factory.FormDataFactory] - <CAS Server returned 404 status code from endpoint https://casserver.herokuapp.com/cas/actuator/discoveryProfile. Using default FormData values.>#033[m
?

How do i fix it? Is management somehow connecting to cas server? How? What ports does it use? What i need to do for cas-management to be able to successfully connect to cas?

Lukáš Krejza
@gryffus

Ok one thing might be, that i had not management.properties in /etc... The installation guide in cas-management-overlay seems to be missing following step:
./gradlew[.bat] copyCasConfiguration

BTW, what is the archived cas-management-gradle-overlay project? Is it not working anymore? So for "cas-overlay-template" i should build it with graddle, as specified in the readme, and "cas-management-overlay" should be built with maven?
The documentation is not very good IMHO :(

springnirps
@springnirps
cas 6, what is teh dependency for AbStractCasWebflowConfigurer? Tried cas-server-core-webflow-api but still cannot resolve
Lukáš Krejza
@gryffus
How do i switch to JSON persistence storage? I have specified cas.serviceRegistry.json.location=file:/etc/cas/services in /etc/cas/config/cas.properties, but i am still getting "Runtime memory is used as the persistence storage" in the logs...
springnirps
@springnirps
@gryffus memory is the default. It will read and reload from JSON into memory
N.M.
@reinchek

Hi! I really need help about a problem with CAS 6.2.0 and JDBC: i've to connect through JDBC to a MySQL 5.1.48 to match login data in a database... but each connection attempt returns

cas_1 | 2020-09-18 13:31:29,817 ERROR [org.apereo.cas.authentication.PolicyBasedAuthenticationManager] - <[QueryDatabaseAuthenticationHandler]: [SQL exception while executing query for email-xx-test@gmail.com / Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required]>

I understand that's a compatibility problem... but I was unable to solve it.

N.M.
@reinchek
I've resolved forcing the compatible version of mysql-connector-java driver:
dependencies {
    // Other CAS dependencies/modules may be listed here...
    implementation "org.apereo.cas:cas-server-support-json-service-registry:${casServerVersion}"
    implementation "org.apereo.cas:cas-server-support-jdbc:${project.'cas.version'}"
    implementation("mysql:mysql-connector-java") {
        version {
            strictly '5.1.48'
        }
    }
}
Lukáš Krejza
@gryffus

Ok, so i have used cas.serviceRegistry.json.location and it is working!!! Finally i have running cas with cas-management.
Now i have a problem with starting cas-management war overlay. When i restart tomcat, it just freezes when deploying cas-management, however when i restart tomcat without cas-management and then deploy cas-management after start of cas, it loads without any problems....

Is anyone else experiencing this?

VikashChandra1996
@VikashChandra1996
Hi All, I am trying to implement password management in CAS 5.2.9. I need to insert value in PM_TABLE_ACCOUNTS but unable to do so. Can any one tell me the entity calss of this table and all the tables related to password management
Lukáš Krejza
@gryffus

Hello, is it possible to use CAS for an app (running IIS with NTLM+Basic auth) that is unaware of CAS in any way? For example using it as proxy in the same way as WAP: https://docs.microsoft.com/en-us/windows-server/remote/media/publishing-applications-using-ad-fs-preauthentication/webapplicationproxy_httpbasicflow.png
?

Or do i have to use the CAS .net client ( https://github.com/apereo/dotnet-cas-client ) and modify the web application to be aware of CAS ?

We use CAS in combination with HAProxy, if it helps anyhow
sunkid0315
@sunkid0315

D:\06_Java\jdk-11.0.8\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:D:\06_Java\ideaIU-2020.2.1.win\lib\idea_rt.jar=64946:D:\06_Java\ideaIU-2020.2.1.win\bin -Dfile.encoding=UTF-8 @C:\Users\SunKid\AppData\Local\Temp\idea_arg_file1498904897 org.apereo.cas.CasConfigurationServerWebApplication debug -DskipCheckstyle=true


/ | / \ / | / | __ / () __ / | __
| | /
\ _ \ | | / | ' | || |/ ` | _ \ / \ '__\ \ / / \ '|
| |_
/ \ ) | | || () | | | | | | (| | ) | / | \ V / / |
_// ___/ _\/|| ||| ||_, | |__/ \|| \/ _||
|
/

CAS Version: Not Available
CAS Branch: Not Available
CAS Commit Id: Not Available
CAS Build Date/Time: 2020-09-24T07:19:09.721Z
Spring Boot Version: 2.3.4.RELEASE
Spring Version: 5.2.9.RELEASE
Java Home: D:\06_Java\jdk-11.0.8
Java Vendor: Oracle Corporation
Java Version: 11.0.8
JVM Free Memory: 91 MB
JVM Maximum Memory: 1 GB
JVM Total Memory: 154 MB
JCE Installed: Yes
OS Architecture: amd64
OS Name: Windows 10
OS Version: 10.0
OS Date/Time: 2020-09-24T16:44:04.376714800

OS Temp Directory: C:\Users\SunKid\AppData\Local\Temp\

2020-09-24 16:44:04.405 INFO 15236 --- [ main] a.c.CasConfigurationServerWebApplication : No active profile set, falling back to default profiles: default
2020-09-24 16:44:07.071 INFO 15236 --- [ main] o.s.c.c.s.GenericScope : BeanFactory id=a08fadf7-6c58-30b2-8c55-d1d80046f706
2020-09-24 16:44:07.239 WARN 15236 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
2020-09-24 16:44:07.255 INFO 15236 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-09-24 16:44:07.266 ERROR 15236 --- [ main] o.s.b.SpringApplication : Application run failed

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:161) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) [spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
at org.springframework.boot.builder.SpringApplicationBuilder.run(Sp

why
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
somebody can resolve it ?
help me please