Hi,
we are using cas 5.1.5. Our MongoDb installation stores all users in 
'admin' database
With shell can auth without problem:  bin/mongo -u cas-adm -p cas-adm  
--authenticationDatabase admin then use the cas database

Is there any way to tell CAS the authenticationDatabase parameter?

My cas properties:
## 
# MongoDb Ticket Registry
# 
cas.ticket.registry.mongo.idleTimeout=30000
cas.ticket.registry.mongo.port=27017
cas.ticket.registry.mongo.dropCollection=false
cas.ticket.registry.mongo.socketKeepAlive=false
cas.ticket.registry.mongo.password=cas-adm
cas.ticket.registry.mongo.collectionName=cas-ticket-registry
cas.ticket.registry.mongo.databaseName=cas-mongo-database
cas.ticket.registry.mongo.timeout=5000
cas.ticket.registry.mongo.userId=cas-adm
cas.ticket.registry.mongo.writeConcern=NORMAL
cas.ticket.registry.mongo.host=localhost

cas.ticket.mongo.conns.lifetime=60000
cas.ticket.mongo.conns.perHost=10

Of course if i set databaseName=admin, the collections are created in 
'admin' db not in 'cas-mongo-database'

It seems to me that the only way to auth is that the user is in 
'cas-mongo-database' not in 'admin' :(

Thanks

-- 
- 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/2fab3477-e3c0-47d6-a8f6-92e32f0c0c60%40apereo.org.

Reply via email to