blob: 759bcf745e62fbfe3551f60f4ad3ab92300ea758 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project basedir="." default="all" name="Fortress Sample Data">
<taskdef classname="org.apache.directory.fortress.core.ant.FortressAntTask" name="FortressAdmin" >
<classpath path="${java.class.path}"/>
</taskdef>
<target name="all">
<FortressAdmin>
<deluser>
<user userId="rbacuser1"/>
</deluser>
<adduser>
<user userId="rbacuser1" password="secret" description="Demo Test User 4" ou="demousrs1" cn="JoeUser4" sn="User4" pwPolicy="Test1" beginTime="0000" endTime="0000" beginDate="20090101" endDate="20990101" beginLockDate="" endLockDate="" dayMask="1234567" timeout="0" />
</adduser>
<deluserrole>
<userrole userId="rbacuser1" name="rbacrole1"/>
<userrole userId="rbacuser1" name="rbacrole2"/>
</deluserrole>
<adduserrole>
<userrole userId="rbacuser1" name="rbacrole1" beginTime="0000" endTime="0000" beginDate="" endDate="" beginLockDate="" endLockDate="" dayMask="" timeout="0"/>
<userrole userId="rbacuser1" name="rbacrole2" beginTime="0000" endTime="0000" beginDate="" endDate="" beginLockDate="" endLockDate="" dayMask="" timeout="0"/>
</adduserrole>
<delrole>
<role name="rbacrole1"/>
<role name="rbacrole2"/>
</delrole>
<addrole>
<role name="rbacrole1" description="Used for RBAC Accelerator Testing" />
<role name="rbacrole2" description="Used for RBAC Accelerator Testing" />
</addrole>
<delpermobj>
<permobj objName="/rbac/cal2.jsp"/>
</delpermobj>
<addpermobj>
<permobj objName="/rbac/cal2.jsp" description="Fortress Web Demo App Object 2" ou="demoapps1" type="Ant"/>
</addpermobj>
<delpermop>
<permop opName="8am" objName="/rbac/cal2.jsp"/>
<permop opName="9am" objName="/rbac/cal2.jsp"/>
<permop opName="10am" objName="/rbac/cal2.jsp"/>
<permop opName="11am" objName="/rbac/cal2.jsp"/>
<permop opName="12pm" objName="/rbac/cal2.jsp"/>
<permop opName="1pm" objName="/rbac/cal2.jsp"/>
<permop opName="2pm" objName="/rbac/cal2.jsp"/>
<permop opName="3pm" objName="/rbac/cal2.jsp"/>
<permop opName="4pm" objName="/rbac/cal2.jsp"/>
<permop opName="5pm" objName="/rbac/cal2.jsp"/>
<permop opName="6pm" objName="/rbac/cal2.jsp"/>
</delpermop>
<addpermop>
<permop opName="8am" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="9am" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="10am" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="11am" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="12pm" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="1pm" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="2pm" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="3pm" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="4pm" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="5pm" objName="/rbac/cal2.jsp" type="Ant"/>
<permop opName="6pm" objName="/rbac/cal2.jsp" type="Ant"/>
</addpermop>
<delpermgrant>
<permgrant objName="/rbac/cal2.jsp" opName="8am" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="10am" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="12pm" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="2pm" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="4pm" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="6pm" roleNm="rbacrole1"/>
</delpermgrant>
<addpermgrant>
<permgrant objName="/rbac/cal2.jsp" opName="8am" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="10am" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="12pm" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="2pm" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="4pm" roleNm="rbacrole1"/>
<permgrant objName="/rbac/cal2.jsp" opName="6pm" roleNm="rbacrole1"/>
</addpermgrant>
<addorgunit>
<orgunit name="demousrs1" typeName="USER" description="Test User Org for Rbac Accelerator Sample"/>
<orgunit name="demoapps1" typeName="PERM" description="Test Perm Org for Rbac Accelerator Sample"/>
</addorgunit>
</FortressAdmin>
</target>
</project>