CreatePamAccess
Creates a PAM application access right.
Syntax
IPam CreatePamAccess ()
Return value
A PAM application access right for the zone.
Discussion
A PAM (Pluggable Authentication Module) application right gives a user the ability to access the authorized PAM-enabled application.
The right is not stored in Active Directory until you call the Commitmethod.
Example
The following code sample illustrates using the CreatePamAccess method in a script:
... // Get the zone object IHierarchicalZone objZone = cims.GetZoneByPath("cn=" + strZone + "," + strContainerDN) as IHierarchicalZone; if (objZone == null) { Console.WriteLine("Zone " + strZone + " does not exist."); } else { IPam objPam = objZone.GetPamAccess(strName); if (objPam != null) { Console.WriteLine("PAM " + strName + " already exists."); } else { objPam = objZone.CreatePamAccess(); objPam.Name = strName; objPam.Application = strApp; objPam.Description = "optional description"; objPam.Commit(); } } ...