Re: [cas-user] Step by step guide for simple CAS server with OpenLDAP authentication

2018-02-26 Thread sami
Hi David,
Yep, already got that.


On 26/02/2018 14:35, David Curry wrote:
> Sami,
>
> Do you have the LDAP dependency in pom.xml?
>
>         
>             org.apereo.cas
>             cas-server-support-ldap
>             ${cas.version}
>         
>
> --Dave
>
>
> --
>
> DAVID A. CURRY, CISSP
> *DIRECTOR OF INFORMATION SECURITY*
> INFORMATION TECHNOLOGY
>
> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
> +1 212 229-5300 x4728 • david.cu...@newschool.edu
> <mailto:david.cu...@newschool.edu>
>
> The New School
>
>
> On Mon, Feb 26, 2018 at 9:18 AM, sami <samiaitali1...@gmail.com
> <mailto:samiaitali1...@gmail.com>> wrote:
>
>
> I've been following this guide throughout
> 
> https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html
> 
> <https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html>,
> and everything has been going smoothly so far; up to the part
> where I needed to add the ldap authentication. The log says cas is
> deployed with errors.
> Catalina logs: https://pastebin.com/eitkHDQs
> And this is my cas.properties file:
>
> cas.server.name <http://cas.server.name>:   
> https://cas.uni.edu
> cas.server.prefix:  ${cas.server.name
> <http://cas.server.name>}/cas
>
> cas.tgc.secure: true
> cas.tgc.crypto.signing.key:
> 
> cas.tgc.crypto.encryption.key:  K
>
> cas.webflow.crypto.signing.key:
> 
> cas.webflow.crypto.encryption.key:  ww==
>
> cas.authn.accept.users:
> cas.adminPagesSecurity.ip=127\.0\.0\.1
>
> logging.config: file:/etc/cas/config/log4j2.xml
> cas.serviceRegistry.config.location: file:/etc/cas/services
>
> cas.authn.ldap[0].order:    0
> cas.authn.ldap[0].name: OpenLDAP
> cas.authn.ldap[0].type: AUTHENTICATED
> cas.authn.ldap[0].ldapUrl:  ldap://ldap.uni.edu
> cas.authn.ldap[0].validatePeriod:   270
> cas.authn.ldap[0].userFilter:   uid={user}
> cas.authn.ldap[0].baseDn:   ou=people,dc=uni,dc=edu
> cas.authn.ldap[0].bindDn:   cn=manager,dc=uni,dc=edu
> cas.authn.ldap[0].bindCredential:   Password
>
> Tried to debug, but being new to this and having 200 lines of
> errors thrown at you doesn't make it much of an easy task.
> I'm hoping someone could point me to the right direction.
> Thanks !
>
>
> On 17/02/2018 21:05, Matthew Uribe wrote:
>> I have found David Curry's guide incredibly helpful. 
>>
>> 
>> https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html
>> 
>> <https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html>
>>
>> Matt
>>
>
>
> On 17/02/2018 21:05, Matthew Uribe wrote:
>> I have found David Curry's guide incredibly helpful. 
>>
>> 
>> https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html
>> 
>> <https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html>
>>
>> Matt
>>
>
> -- 
> - 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
> <mailto:cas-user+unsubscr...@apereo.org>.
> To view this discussion on the web visit
> 
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/13e7d691-1d79-d94c-d15f-63977b81e588%40gmail.com
> 
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/13e7d691-1d79-d94c-d15f-63977b81e588%40gmail.com?utm_medium=email_source=footer>.
>
>
> -- 
> - 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 a topic in the
> Google Groups "CAS Community" group.
> To unsubscribe from this topic, visit
> h

Re: [cas-user] Step by step guide for simple CAS server with OpenLDAP authentication

2018-02-26 Thread sami

I've been following this guide throughout
https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html,
and everything has been going smoothly so far; up to the part where I
needed to add the ldap authentication. The log says cas is deployed with
errors.
Catalina logs: https://pastebin.com/eitkHDQs
And this is my cas.properties file:

cas.server.name:    https://cas.uni.edu
cas.server.prefix:  ${cas.server.name}/cas

cas.tgc.secure: true
cas.tgc.crypto.signing.key:

cas.tgc.crypto.encryption.key:  K

cas.webflow.crypto.signing.key:

cas.webflow.crypto.encryption.key:  ww==

cas.authn.accept.users:
cas.adminPagesSecurity.ip=127\.0\.0\.1

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

cas.authn.ldap[0].order:    0
cas.authn.ldap[0].name: OpenLDAP
cas.authn.ldap[0].type: AUTHENTICATED
cas.authn.ldap[0].ldapUrl:  ldap://ldap.uni.edu
cas.authn.ldap[0].validatePeriod:   270
cas.authn.ldap[0].userFilter:   uid={user}
cas.authn.ldap[0].baseDn:   ou=people,dc=uni,dc=edu
cas.authn.ldap[0].bindDn:   cn=manager,dc=uni,dc=edu
cas.authn.ldap[0].bindCredential:   Password

Tried to debug, but being new to this and having 200 lines of errors
thrown at you doesn't make it much of an easy task.
I'm hoping someone could point me to the right direction.
Thanks !


On 17/02/2018 21:05, Matthew Uribe wrote:
> I have found David Curry's guide incredibly helpful. 
>
> https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html
>
> Matt
>


On 17/02/2018 21:05, Matthew Uribe wrote:
> I have found David Curry's guide incredibly helpful. 
>
> https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html
>
> Matt
>

-- 
- 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/13e7d691-1d79-d94c-d15f-63977b81e588%40gmail.com.


Re: [cas-user] Re: Step by step guide for simple CAS server with OpenLDAP authentication

2018-02-19 Thread sami

  
  
Thank you Matt and
  Matt. I'll take a look at them both.
  
  --
  Sami

On 18/02/2018 23:18, Matthew Hannay
  wrote:


  
This doco is a recent addition ..


https://apereo.github.io/2018/02/06/cas52-gettingstarted-overlay/


--Matt
  
  On Sunday, 18 February 2018 07:05:46 UTC+10, Matthew Uribe
  wrote:
  I have
found David Curry's guide incredibly helpful.
https://dacurry-tns.github.io/deploying-apereo-cas/introduction_overview.html
Matt
  

  
  -- 
  - 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 a topic in
  the Google Groups "CAS Community" group.
  To unsubscribe from this topic, visit https://groups.google.com/a/apereo.org/d/topic/cas-user/LgZzuXvh3OY/unsubscribe.
  To unsubscribe from this group and all its topics, 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/2ee950fd-eb76-4c9a-b979-424178548047%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/ccd6a49b-949c-7ed5-d51b-579a12af9da2%40gmail.com.


[cas-user] Re: Error creating bean with name 'servicesManager'

2016-07-26 Thread Sami Ghayeni
CAS created a collection in my Mongo database. it's name is 
*RegisteredService* and it's empty. there is no error so far:

2016-07-26 11:35:50,596 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - 
2016-07-26 11:35:50,798 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - 
2016-07-26 11:35:56,718 INFO 
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - 
2016-07-26 11:35:56,729 INFO 
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <0 expired tickets 
found and removed.>
2016-07-26 11:36:50,566 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - 
2016-07-26 11:36:50,773 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - 

but just as i add the below json(which i copied from 
/webapps/cas/classes/services/Apereo-1002.json) as a document to the 
collection:

{
  "@class" : "org.jasig.cas.services.RegexRegisteredService",
  "serviceId" : "^https://www.apereo.org;,
  "name" : "Apereo",
  "theme" : "apereo",
  "id" : 1002,
  "description" : "Apereo foundation sample service",
  "proxyPolicy" : {
"@class" : "org.jasig.cas.services.RefuseRegisteredServiceProxyPolicy"
  },
  "evaluationOrder" : 1,
  "usernameAttributeProvider" : {
"@class" : 
"org.jasig.cas.services.DefaultRegisteredServiceUsernameProvider"
  },
  "logoutType" : "BACK_CHANNEL",
  "attributeReleasePolicy" : {
"@class" : "org.jasig.cas.services.ReturnAllowedAttributeReleasePolicy",
"principalAttributesRepository" : {
  "@class" : 
"org.jasig.cas.authentication.principal.DefaultPrincipalAttributesRepository"
},
"authorizedToReleaseCredentialPassword" : false,
"authorizedToReleaseProxyGrantingTicket" : false
  },
  "accessStrategy" : {
"@class" : 
"org.jasig.cas.services.DefaultRegisteredServiceAccessStrategy",
"enabled" : true,
"ssoEnabled" : true
  }
}



i get this error:

2016-07-26 11:37:50,566 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - 
2016-07-26 11:37:50,884 ERROR 
[org.jasig.cas.services.DefaultServicesManagerImpl] - 


what's wrong? how does a registered service looks like syntactically? is 
there any examples?

On Tuesday, July 19, 2016 at 11:03:44 AM UTC+4:30, Sami Ghayeni wrote:
>
> error has gone. it seems to be a problem with the syntax of the service i 
> tried to add. 
>
> On Tuesday, July 19, 2016 at 10:59:41 AM UTC+4:30, Sami Ghayeni wrote:
>>
>> hi, everything was working fine. i don't know what have i changed which 
>> made this error. cas can't start. my pom.xml, cas.properties and 
>> deployerConfigContext.xml are here <https://github.com/asedsami/tmp> so 
>> this post get's a little bit cleaner.
>> these are my logs when i try to start cas: 
>>
>> Jul 19, 2016 10:42:21 AM org.apache.catalina.loader.WebappClassLoaderBase 
>> validateJarFile
>> INFO: 
>> validateJarFile(/home/aseds/coding/tiva/cas/apache-tomcat-7.0.70/webapps/cas/WEB-INF/lib/javax.el-api-3.0.0.jar)
>>  
>> - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: 
>> javax/el/Expression.class
>> Jul 19, 2016 10:42:25 AM org.apache.catalina.startup.TldConfig execute
>> INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable 
>> debug logging for this logger for a complete list of JARs that were scanned 
>> but no TLDs were found in them. Skipping unneeded JARs during scanning can 
>> improve startup time and JSP compilation time.
>> SLF4J: Class path contains multiple SLF4J bindings.
>> SLF4J: Found binding in 
>> [jar:file:/home/aseds/coding/tiva/cas/apache-tomcat-7.0.70/webapps/cas/WEB-INF/lib/cas-server-core-logging-4.2.4-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> SLF4J: Found binding in 
>> [jar:file:/home/aseds/coding/tiva/cas/apache-tomcat-7.0.70/webapps/cas/WEB-INF/lib/log4j-slf4j-impl-2.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
>> explanation.
>> SLF4J: Attempting to locate ILoggerFactory instance from: 
>> org.apache.logging.slf4j.Log4jLoggerFactory
>> SLF4J: ILoggerFactory to be used for logging is: 
>> org.apache.logging.slf4j.Log4jLoggerFactory
>> SLF4J: Actual binding is of type [org.slf4j.impl.CasLoggerFactory]
>> SLF4J: The following set of substitute loggers may have been accessed
>> SLF4J: during the initialization phase. Logging calls during this
>> SLF4J: phase were not honored. However, subsequent logging calls to these
>>

[cas-user] TokenCreadential: Cannot find authentication handler that supports...

2016-07-25 Thread Sami Ghayeni
hi, i made a simple app, the url localhost:4000/app is protected by CAS and 
needs the user to sign in. it works pretty well. after i login to CAS, 
going to localhost:4000/app, it shows me my website and does not ask me to 
login anymore. the problem happens when i try to use a token instead of the 
username:password combination. i don't understand the java code in here 
(JWT 
Authentication) but i made my token this way in node.js:

var jwt = require('jsonwebtoken');

var myService = {"name": "test"};

var token = jwt.sign(myService, 'secret');

console.log(token);

my token is 
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidGVzdCIsImlhdCI6MTQ2OTQ0NTM5MH0.Vfft0UIaZ2isl4kDmw23iNPvDfqlj9VaLc9qf13IcGo


now i go to 
https://localhost/cas/login?service=http%3A%2F%2Flocalhost%3A4000%2Fapp=false=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidGVzdCIsImlhdCI6MTQ2OTQ0NTM5MH0.Vfft0UIaZ2isl4kDmw23iNPvDfqlj9VaLc9qf13IcGo

it shows me the login page if i'm not logged in or the home page of 
protected web app otherwise. at the same time i go to the above url, CAS 
logs:

2016-07-25 15:46:47,370 WARN 
[org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - http://localhost:4000/app]]
 
of type [TokenCredential], which suggests a configuration problem.>
2016-07-25 15:46:47,373 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - http://localhost:4000/app]
WHAT: Supplied credentials: 
[org.jasig.cas.authentication.handler.support.TokenCredential@4565d915[service=http://localhost:4000/app]]
ACTION: AUTHENTICATION_FAILED
APPLICATION: CAS
WHEN: Mon Jul 25 15:46:47 IRDT 2016
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=

>
2016-07-25 15:46:47,375 WARN 
[org.jasig.cas.web.flow.token.TokenAuthenticationAction] - <0 errors, 0 
successes
org.jasig.cas.authentication.AuthenticationException: 0 errors, 0 successes
at 
org.jasig.cas.authentication.PolicyBasedAuthenticationManager.evaluateProducedAuthenticationContext(PolicyBasedAuthenticationManager.java:256)
at 
org.jasig.cas.authentication.PolicyBasedAuthenticationManager.authenticateInternal(PolicyBasedAuthenticationManager.java:242)
at 
org.jasig.cas.authentication.PolicyBasedAuthenticationManager.authenticate(PolicyBasedAuthenticationManager.java:131)
at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at 
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
at 
org.jasig.inspektr.audit.AuditTrailManagementAspect.handleAuditTrail(AuditTrailManagementAspect.java:128)
at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
at 
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at 
com.ryantenney.metrics.spring.MeteredMethodInterceptor.invoke(MeteredMethodInterceptor.java:45)
at 
com.ryantenney.metrics.spring.MeteredMethodInterceptor.invoke(MeteredMethodInterceptor.java:32)
at 
com.ryantenney.metrics.spring.AbstractMetricMethodInterceptor.invoke(AbstractMetricMethodInterceptor.java:59)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at 
com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java:48)
at 
com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java:34)
at 
com.ryantenney.metrics.spring.AbstractMetricMethodInterceptor.invoke(AbstractMetricMethodInterceptor.java:59)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at 
com.ryantenney.metrics.spring.CountedMethodInterceptor.invoke(CountedMethodInterceptor.java:46)
at 

[cas-user] after i log in to cas, the cas management web app returns 404

2016-07-20 Thread Sami Ghayeni
what i did:

1-build the below cas-management-webapp/pom.xml file using the *mvn clean 
package* command:


http://maven.apache.org/POM/4.0.0;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd ">
4.0.0
net.unicon
cas4-svc-mgmt-overlay
war
1.0




org.apache.maven.plugins
maven-war-plugin
2.6

cas-services


org.jasig.cas
cas-management-webapp





org.apache.maven.plugins
maven-compiler-plugin
3.3

${maven.compiler.source}
${maven.compiler.target}




 com.rimerosolutions.maven.plugins
 wrapper-maven-plugin
 0.0.4



cas-services




org.jasig.cas
cas-management-webapp
${cas.version}
war
runtime




4.2.1
1.7
1.7
UTF-8



2- deploy *cas-services.war* to Tomcat
3- in the Tomcat Manager WebApp there is a /cas-services link. clicking on 
it says "*Application Not Authorized to use CAS*", also it's http not 
https. so i should add cas-services as a service, to cas.
4- the /webapps/*cas-services*/WEB-INF/classes/services directory has a 
file which is missing inside the /webapps/*cas*/WEB-INF/classes/services 
directory, the rest is the same. the name of this file is 
*ServicesManagementWebApplication-52497044623301.json* , i copied it so now 
cas//services directory contains this json too.(why there is two 
services directories?)
5- the /webapps/*cas*/WEB-INF/classes/services/
*ServicesManagementWebApplication-52497044623301.json* file now contains 
this content:

{
  "@class" : "org.jasig.cas.services.RegexRegisteredService",
  "serviceId" : "http://localhost:8080/cas-management/callback;,
  "name" : "Services Management Web Application",
  "id" : 52497044623301,
  "description" : "Services Management Web Application",
  "proxyPolicy" : {
"@class" : "org.jasig.cas.services.RefuseRegisteredServiceProxyPolicy"
  },
  "evaluationOrder" : 2,
  "usernameAttributeProvider" : {
"@class" : 
"org.jasig.cas.services.DefaultRegisteredServiceUsernameProvider"
  },
  "logoutType" : "BACK_CHANNEL",
  "attributeReleasePolicy" : {
"@class" : "org.jasig.cas.services.ReturnAllowedAttributeReleasePolicy",
"principalAttributesRepository" : {
  "@class" : 
"org.jasig.cas.authentication.principal.DefaultPrincipalAttributesRepository"
},
"authorizedToReleaseCredentialPassword" : false,
"authorizedToReleaseProxyGrantingTicket" : false
  },
  "accessStrategy" : {
"@class" : 
"org.jasig.cas.services.DefaultRegisteredServiceAccessStrategy",
"enabled" : true,
"ssoEnabled" : true
  }
}

i changed the value of *serviceId* from this

"serviceId" : "http://localhost:8080/cas-management/callback;
to this
"serviceId" : "https://localhost8443/cas-management/callback.*;
so it uses the https protocol, it's port is 8443 and also it accepts urls 
that have characters after the 'callback' word.

6- now i go to https:localhost:8443/cas-services , it redirects me to the 
cas login page.
7- after i login, although the logs says *AUTHENTICATION_SUCCESS*,  
*TICKET_GRANTING_TICKET_CREATED* and *SERVICE_TICKET_CREATED* but after cas 
redirects me to
https://localhost:8443/cas-management/callback?client_name=CasClient=ST-4-U9f3KcWa6llcVbe3mCiV-cas01.example.org
 

i see a 404 page which says:

HTTP Status 404 - /cas-management/callback
--

*type* Status report

*message* */cas-management/callback*

*description* *The requested resource is not available.*
and 

is there documentation related to this i missed? did i do something wrong?
thanks in advance.

-- 
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 post to this group, send email to cas-user@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/976edbea-969e-4b8a-a66e-65f04022857b%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.


[cas-user] Error creating bean with name 'servicesManager'

2016-07-19 Thread Sami Ghayeni
hi, everything was working fine. i don't know what have i changed which 
made this error. cas can't start. my pom.xml, cas.properties and 
deployerConfigContext.xml are here  so 
this post get's a little bit cleaner.
these are my logs when i try to start cas: 

Jul 19, 2016 10:42:21 AM org.apache.catalina.loader.WebappClassLoaderBase 
validateJarFile
INFO: 
validateJarFile(/home/aseds/coding/tiva/cas/apache-tomcat-7.0.70/webapps/cas/WEB-INF/lib/javax.el-api-3.0.0.jar)
 
- jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: 
javax/el/Expression.class
Jul 19, 2016 10:42:25 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable 
debug logging for this logger for a complete list of JARs that were scanned 
but no TLDs were found in them. Skipping unneeded JARs during scanning can 
improve startup time and JSP compilation time.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/home/aseds/coding/tiva/cas/apache-tomcat-7.0.70/webapps/cas/WEB-INF/lib/cas-server-core-logging-4.2.4-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/home/aseds/coding/tiva/cas/apache-tomcat-7.0.70/webapps/cas/WEB-INF/lib/log4j-slf4j-impl-2.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
explanation.
SLF4J: Attempting to locate ILoggerFactory instance from: 
org.apache.logging.slf4j.Log4jLoggerFactory
SLF4J: ILoggerFactory to be used for logging is: 
org.apache.logging.slf4j.Log4jLoggerFactory
SLF4J: Actual binding is of type [org.slf4j.impl.CasLoggerFactory]
SLF4J: The following set of substitute loggers may have been accessed
SLF4J: during the initialization phase. Logging calls during this
SLF4J: phase were not honored. However, subsequent logging calls to these
SLF4J: loggers will work as normally expected.
SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger
SLF4J: org.reflections.Reflections
2016-07-19 10:42:26,395 INFO [org.jasig.cas.CasEnvironmentContextListener] 
- <
 Welcome to CAS ***
CAS Version: 4.2.4-SNAPSHOT
Build Date/Time: 2016-07-17T07:26:26.000+04:30
Java Home: /usr/java/jdk1.7.0_79/jre
Java Vendor: Oracle Corporation
Java Version: 1.7.0_79
OS Architecture: amd64
OS Name: Linux
OS Version: 3.19.8-100.fc20.x86_64
***
>
2016-07-19 10:42:36,715 WARN 
[org.springframework.web.context.support.XmlWebApplicationContext] - 

2016-07-19 10:42:36,743 ERROR 
[org.springframework.web.context.ContextLoader] - (DefaultServicesManagerImpl.java:94)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 90 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.jasig.cas.services.RegisteredService]: Specified class is 
an interface
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:101)
at 
org.springframework.data.convert.ReflectionEntityInstantiator.createInstance(ReflectionEntityInstantiator.java:61)
... 118 more
>
Jul 19, 2016 10:42:36 AM org.apache.catalina.core.StandardContext 
startInternal
SEVERE: One or more listeners failed to start. Full details will be found 
in the appropriate container log file
Jul 19, 2016 10:42:36 AM org.apache.catalina.core.StandardContext 
startInternal
SEVERE: Context [/cas] startup failed due to previous errors
Jul 19, 2016 10:42:36 AM org.apache.catalina.loader.WebappClassLoaderBase 
clearReferencesThreads
SEVERE: The web application [/cas] appears to have started a thread named 
[cluster-ClusterId{value='578dc4d42ea75d4867e1ef5f', 
description='null'}-ds023105.mlab.com:23105] but has failed to stop it. 
This is very likely to create a memory leak.


thanks.

-- 
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 post to this group, send email to cas-user@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/f28a43aa-98fe-4d7c-8dcc-53de5dd8b96c%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.


Re: [cas-user] Unable to integrate Mongo-Service-Management in CAS 4.2.0

2016-05-20 Thread Sami Ghayeni
first of all, thank you for your time. 
and here <https://github.com/asedsami/tmp/blob/master/problem.md> are the 
logs and my exact properties.

On Monday, May 16, 2016 at 7:40:55 PM UTC+4:30, Misagh Moayyed wrote:
>
> You are going to have to share some logs. Your host is probably malformed. 
> Just needs to be the host.
> --Misagh 
> On Mon, May 16, 2016 at 1:31 AM, Sami Ghayeni <s.sami@gmail.com 
> > wrote:
>
> in the CAS documentations there is an example for 
> MongoDB-Authentication(by example i mean a code sample that is should write 
> inside cas.properties), but for Mongo-Service-Management, there is not any 
> example.
>
> MongoDB-Authentication 
> <http://apereo.github.io/cas/4.2.x/installation/MongoDb-Authentication.html>
>
> cas.authn.mongo.collection.name=users
> cas.authn.mongo.db.host=mongodb://user:passw...@ds061954.somewhere.com:61954/database
> cas.authn.mongo.attributes=attribute1,attribute2
> cas.authn.mongo.username.attribute=username
> cas.authn.mongo.password.attribute=password
>
>
> i did as such and it's working. (i didn't change the third line though, i 
> don't know what it is.)
>
> but in the Mongo-Service-Mangement 
> <http://apereo.github.io/cas/4.2.x/installation/Mongo-Service-Management.html>
>  
> documentation
>
> mongodb.host=mongodb database 
> url
> mongodb.port=mongodb database port
> mongodb.userId=mongodb userid to bind
> mongodb.userPassword=mongodb password to bind
> cas.service.registry.mongo.db=Collection name to store service 
> definitions
>
>
> now here we have cas.service.registry.mongo.db so it's probably the name 
> of our db, but they say it's a Collection name. is that a typo?
> should the url include the port, the username and password and the name of 
> the database?
> the below code is what i did, and it made the /cas path to return 404 Not 
> Found!
>
> mongodb.host=mongodb://myUserName:mypassw...@ds061360.mlab.com:61360/mydb
> mongodb.port=61360
> mongodb.userId=mydb.myUserName
> mongodb.userPassword=myPassword 
> <http://myUserName:mypassw...@ds061360.mlab.com:61360/mydbmongodb.port=61360mongodb.userId=mydb.myUserNamemongodb.userPassword=myPassword>
> cas.service.registry.mongo.db=services
> mongodb.timeout=5000
>
> as i said this make CAS to be unavailable, so i tried changing the url by 
> removing the username and password, or db name, or the port from the url, 
> none of them works.
> the _id of the database user in mlab.com is mydb.myUserName, i changed it 
> to myUserName but this didn't help either. can you provide an example or 
> explain what am i doing wrong?
>
> thank you for any help you are able to provide
>
> -- 
> 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+u...@apereo.org .
> To post to this group, send email to cas-...@apereo.org .
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/
> .
> To view this discussion on the web visit 
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/911947c0-de6c-4101-a965-19e59f2a737f%40apereo.org
>  
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/911947c0-de6c-4101-a965-19e59f2a737f%40apereo.org?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/a/apereo.org/d/optout.
>
>

-- 
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 post to this group, send email to cas-user@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ff61bfef-0d79-4cf8-b7d7-4c73fc00a22d%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.


[cas-user] Unable to integrate Mongo-Service-Management in CAS 4.2.0

2016-05-16 Thread Sami Ghayeni
in the CAS documentations there is an example for MongoDB-Authentication(by 
example i mean a code sample that is should write inside cas.properties), 
but for Mongo-Service-Management, there is not any example.

MongoDB-Authentication 


cas.authn.mongo.collection.name=users
cas.authn.mongo.db.host=mongodb://user:passw...@ds061954.somewhere.com:61954/database
cas.authn.mongo.attributes=attribute1,attribute2
cas.authn.mongo.username.attribute=username
cas.authn.mongo.password.attribute=password


i did as such and it's working. (i didn't change the third line though, i 
don't know what it is.)

but in the Mongo-Service-Mangement 
 
documentation

mongodb.host=mongodb database url
mongodb.port=mongodb database port
mongodb.userId=mongodb userid to bind
mongodb.userPassword=mongodb password to bind
cas.service.registry.mongo.db=Collection name to store service definitions


now here we have cas.service.registry.mongo.db so it's probably the name of 
our db, but they say it's a Collection name. is that a typo?
should the url include the port, the username and password and the name of 
the database?
the below code is what i did, and it made the /cas path to return 404 Not 
Found!

mongodb.host=mongodb://myUserName:mypassw...@ds061360.mlab.com:61360/mydb
mongodb.port=61360
mongodb.userId=mydb.myUserName
mongodb.userPassword=myPassword
cas.service.registry.mongo.db=services
mongodb.timeout=5000

as i said this make CAS to be unavailable, so i tried changing the url by 
removing the username and password, or db name, or the port from the url, 
none of them works.
the _id of the database user in mlab.com is mydb.myUserName, i changed it 
to myUserName but this didn't help either. can you provide an example or 
explain what am i doing wrong?

thank you for any help you are able to provide

-- 
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 post to this group, send email to cas-user@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/911947c0-de6c-4101-a965-19e59f2a737f%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.