<?xml version="1.0" encoding="UTF-8"?>
<policy xmlns:jsystem="http://www.novell.com/nxsl/java/java.lang.System">
	<rule>
		<description>Set password expiration time for a given interval from current day</description>
		<conditions>
			<and>
				<if-operation op="equal">modify-password</if-operation>
			</and>
		</conditions>
		<actions>
			<do-set-local-variable name="interval">
				<arg-string>
					<token-text xml:space="preserve">30</token-text>
				</arg-string>
			</do-set-local-variable>
			<do-set-dest-attr-value class-name="User" name="Password Expiration Time" when="after">
				<arg-association>
					<token-association/>
				</arg-association>
				<arg-value type="string">
					<token-xpath expression="round(jsystem:currentTimeMillis() div 1000 + (86400*$interval))"/>
				</arg-value>
			</do-set-dest-attr-value>
		</actions>
	</rule>
</policy>


