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 <[email protected] 
> <javascript:>> 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:[email protected]: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:[email protected]:61360/mydb
> mongodb.port=61360
> mongodb.userId=mydb.myUserName
> mongodb.userPassword=myPassword 
> <http://myUserName:[email protected]: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 [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>.
> 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&utm_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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to