Sun Identity Manager Deployment Reference

ResourceFormRules

The ResourceFormRules library is a default library of rules that enable you to customize values and choices used in several of the UserForms, which in turn are frequently used to select user attributes for resources.

Inputs:

See Table 4–10.

You must specify the following for a custom ResourceFormRules rule:

AuthType 

EndUserLibrary

SubType 

Not specified 

Called 

By UserForms, specifically

  • sample\forms\AccessEnforcerUserForm.xml

  • sample\forms\ADUserForm.xml

  • sample\forms\AIXUserForm.xml

  • sample\forms\HP-UXUserForm.xml

  • sample\forms\NDSUserForm.xml

  • sample\forms\RedHatLinuxUserForm.xml

  • sample\forms\SolarisUserForm.xml

  • sample\forms\SUSELinuxUserForm.xml

Returns 

A list of strings 

Predefined Rule: 

ResourceFormRuleLibrary 

Predefined Rules 

None 

The following table describes the example ResourceFormRules.

Table 4–10 Example ResourceFormRules

Rule Name 

Input Variable 

Description 

ListObjects 

  • resourceType

  • resourceName

  • resourceInstance

Returns a list of resource objects, such as groups, that can be used by multiple forms.

ListGroups 

  • resourceName

  • resourceInstance

Returns a list of groups that can be used by multiple forms. NOTE: This rule is provided for backward compatibility.

getDefaultShell 

resourceType

Returns a the default shell for a particular resourceType that can be used by multiple forms. Ensure that each resourceType has the same default shell as specified in the ResourceAdapter. 

Exchange Servers 

None 

Returns a list of Exchange servers. 

You can update this list to include the Exchange servers in your environment. 

Home Directory Servers 

None 

Returns a list of systems serving user home directories. 

You can update this list to include the systems that serve home directory drives in your environment. 

AD Login Scripts 

None 

Returns a list of user login scripts. 

You can update this list to include the login batch scripts in your environment. 

Home Directory Drive Letters 

None 

Returns a list of home directory mapped drive letters. 

You can update this list to include the common home directory map drive letters in your environment. 

Home Directory Volumes 

None 

Returns a list of home directory volume names. 

You can update this list to include the common home directory volume names in your environment. Identity Manager uses this value with the Home Directory server to create a user’s home directory. The volume must exist and it must be shared on the selected home directory server. 

NDS Home Directory Servers 

None 

Returns a list of systems serving user home directories. 

You can update this list to include the systems that serve home directory drives in your environment. 

NDS Home Directory Types 

None 

Returns a list of home directory mapped drive letters. 

You can update this list to include the common home directory map drive letters in your environment. 

NDS Home Directory Volumes 

None 

Returns a list of home directory volume names. 

You can update this list to include the common home directory volume names in your environment. Identity Manager uses this value with the Home Directory server to create a user’s home directory. The volume must exist and it must be shared on the selected home directory server. 

NDS Template 

  • resourceName

  • ndsTemplate

  • attrList

Returns an NDS Template object. 

Is Mail User 

objectClasses 

Returns 1 if the objectClasses list contains all the following classes, otherwise returns 0:

  • inetuser

  • ipuser

  • inetmailuser

  • inetlocalmailrecipient

  • userpresenceprofile

getResourceAttribute 

  • resName

  • attrNam

Returns the value of the requested resource attribute.