You all seem to be missing his original question.  :)

Zac, some properties include default values in their definitions. For example, in WEB-INF/spring-configuration/ticketExpirationPolicies.xml:

  <bean id="grantingTicketExpirationPolicy" 
class="org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy"
        p:maxTimeToLiveInSeconds="${tgt.maxTimeToLiveInSeconds:28800}"
        p:timeToKillInSeconds="${tgt.timeToKillInSeconds:7200}"/>

You can see that it tries to use the values of tgt.maxTimeToLiveInSeconds and tgt.timeToKillInSeconds from the cas.properites files. If those values are not specified, it includes default values of 28800 and 7200, respectively.

The host.name property is required to be specified because it is used without a default value:

# find . -type f | xargs grep host.name
./WEB-INF/cas.properties:# host.name is used to generate unique Service Ticket 
IDs and SAMLArtifacts.  This is usually set to the specific
./WEB-INF/cas.properties:host.name=cas01.example.org
./WEB-INF/cas-servlet.xml:        p:casTicketSuffix="${host.name}">
./WEB-INF/spring-configuration/uniqueIdGenerators.xml:                  index="1" 
value="${host.name}" />
./WEB-INF/spring-configuration/uniqueIdGenerators.xml:                  index="1" 
value="${host.name}" />
./WEB-INF/spring-configuration/uniqueIdGenerators.xml:                  index="1" 
value="${host.name}" />

I don't know if other values are also used without a default defined, but it probably wouldn't be too hard to find out with a careful find+grep command.

If you want to update the documentation, I think it could be useful to comments that indicate the required properties to the default cas.properties file.

        Andy

--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to