/* REXX */
/* ================================================================ */
/*                                                                  */
/* COPYRIGHT =                                                      */
/* Licensed Material - Property of IBM                              */
/*                                                                  */
/* 5724-I63, 5724-H88, 5655-N01, 5733-W61                           */
/* (C) Copyright IBM Corp. 1999, 2008                               */
/* All Rights Reserved                                              */
/* US Government Users Restricted Rights - Use, duplication or      */
/* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.*/
/*                                                                  */
/* ================================================================ */
<!-- import documents/buildInfo -->
/* ================================================================ */
<!--                                                               -->
<!-- Change History:                                               -->
<!--                                                               -->
<!--  492063 H28W700 20080114   DMB: Remove rexx code step         -->
<!--  512969 V7.0   20080421 PXT: Delete comments in generated jobs-->
<!--  514321 V7.0   20080423 PXT: Remove proxy servant process     -->
<!--  511429 V7.0   20080519   DMB: Create admin id in bbosbrac    -->
<!--511429.1 V7.0   20080519   DMB: fix some comments              -->
<!--  534888 V7.0   20080708 PDOP: Common timestamp and build info -->
<!-- ============================================================= -->

say 'WebSphere Application Server RACF Setup                             '
say '-- Common Groups and users                                          '
say '-- Generated on ${ZDATE} at ${ZTIMEL}'

trace commands                                                            
say 'Create WebSpere configuration group.                                     '
<!-- if (${zConfigurationGroupGID}token != *token) -->
"ADDGROUP ${zConfigurationGroup} OMVS(GID(${zConfigurationGroupGID}))"
<!-- endif -->
<!-- if (${zConfigurationGroupGID}token == *token) -->
"ADDGROUP ${zConfigurationGroup} OMVS(AUTOGID)"
<!-- endif -->
say

say 'Creating group for WebSpere unauthenticated userid.                      '
<!-- if (${zLocalUserGroupGID}token != *token) -->
"ADDGROUP ${zLocalUserGroup} OMVS(GID(${zLocalUserGroupGID}))"
<!-- endif -->
<!-- if (${zLocalUserGroupGID}token == *token) -->
"ADDGROUP ${zLocalUserGroup} OMVS(AUTOGID)"
<!-- endif -->
say

say 'Adding WebSpere controller user ID.                    '
<!-- if (${zControlUid}token != *token) --> 
"ADDUSER ${zControlUserid} DFLTGRP(${zConfigurationGroup}) OMVS(UID(${zControlUid}) HOME(${zUserIDHomeDirectory}/" || ,
"${zConfigurationGroup}) PROGRAM(/bin/sh)) NAME('WAS CR OWNER')  NOPASSWORD NOOIDCARD"
<!-- endif -->
<!-- if (${zControlUid}token == *token) --> 
"ADDUSER ${zControlUserid} DFLTGRP(${zConfigurationGroup}) OMVS(AUTOUID HOME(${zUserIDHomeDirectory}/" || ,
"${zConfigurationGroup}) PROGRAM(/bin/sh)) NAME('WAS CR OWNER')  NOPASSWORD NOOIDCARD"
<!-- endif -->                                                                     
say

say 'Adding WebSpere administrator user ID'
<!-- if (${zAdminUid}token != *token) -->
"ADDUSER ${zAdminUserid} DFLTGRP(${zConfigurationGroup}) OMVS(UID(${zAdminUid}) " || ,
" HOME(${zUserIDHomeDirectory}/${zConfigurationGroup}) PROGRAM(/bin/sh)) NAME('WAS ADMINISTRATOR') " || ,
" NOPASSWORD NOOIDCARD"
<!-- endif -->
<!-- if (${zAdminUid}token == *token) -->
"ADDUSER ${zAdminUserid} DFLTGRP(${zConfigurationGroup}) OMVS(AUTOUID " || ,
" HOME(${zUserIDHomeDirectory}/${zConfigurationGroup}) PROGRAM(/bin/sh)) NAME('WAS ADMINISTRATOR') " || ,
" NOPASSWORD NOOIDCARD"
<!-- endif -->
say
                                                                           
say 'End of generated commands.                                          ' 