Noob question about{...}

75 views
Skip to first unread message

vallee.romain

unread,
Oct 8, 2019, 3:53:28 PM10/8/19
to CAS Community
Hello.
I spend a lot of Time to configure 5.x cas, and,now,i have to configure 6.0 with some news in cas.properties like this stuf :
${configurationkey}....
I understand that a "shortcut" to a configuration path, but where can we find this path ?

In documentation, impossible to find complete path to this :

{configurationKey}.dialect (for jpa ticket)

Thank you so much

Ray Bon

unread,
Oct 8, 2019, 4:07:59 PM10/8/19
to cas-...@apereo.org
Start with the item in the left hand menu (eg ldap authentication), https://apereo.github.io/cas/6.0.x/installation/LDAP-Authentication.html

There you will find specific properties and the configurationkey and a link to the common properties, https://apereo.github.io/cas/6.0.x/configuration/Configuration-Properties-Common.html#ldap-connection-settings.

Ray
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.

Andy Ng

unread,
Oct 8, 2019, 9:43:53 PM10/8/19
to CAS Community
Hello,

I also agree this part of the documentation is hard to understand unless you read through the whole doc word by word


You saw that there is a line here:
Hazelcast settings for this feature are available here under the configuration key cas.ticket.registry.hazelcast.



With the following line
# ${configurationKey}.cluster.members=123.456.789.000,123.456.789.001
# ${configurationKey}.cluster.instanceName=localhost
# ${configurationKey}.cluster.port=5701


In the example of Hazelcast Ticket, that means if you want to set members for Hazelcast, you need to use the following syntax:

[cas.ticket.registry.hazelcast] => # ${configurationKey}.cluster.members=123.456.789.000,123.456.789.001
cas.ticket.registry.hazelcast.cluster.members=123.456.789.000,123.456.789.001


The cas.ticket.registry.hazelcast is the {$configurationKey}, you plug it in and it would works.


Principal transformation settings for this feature are available here under the configuration key cas.authn.radius.

In this case, the config for Radius Principal transformation settings should be:
cas.authn.radius.principalTransformation.pattern=(.+)@example.org


See if the above helps, thanks.

Cheers!
- Andy






vallee.romain

unread,
Oct 9, 2019, 3:06:31 AM10/9/19
to CAS Community
thank you for your answers !!
what you mean is 
that this configuration key is only present in the doc, not in the configuration file????

Andy Ng

unread,
Oct 9, 2019, 3:11:00 AM10/9/19
to CAS Community
Hello,

> what you mean is that this configuration key is only present in the doc, not in the configuration file????
Yup. ${configurationKey} is not a working mechanism, don't put ${configurationKey}.cluster.instanceName in your cas.properties file, instead, put this cas.ticket.registry.hazelcast.cluster.members.

${configurationKey} is just the way of CAS like to document their properties...

- Andy

vallee.romain

unread,
Oct 9, 2019, 3:16:14 AM10/9/19
to CAS Community
I thought it was a new feature of version 6 !
Reply all
Reply to author
Forward
0 new messages