string tolower ( string expr )
tolower converts all upper case characters in the string to lower case. Leaves all other characters unchanged. The tolower function is frequently used in search and comparison expressions to make them case-insensitive.
The following example accepts user inputs of "adrian", "Adrian", or "ADRIAN" and returns "adrian".
#this returns "adrian" tolower("Adrian");
string toupper( string str )
toupper returns a copy of str with all characters converted to uppercase, if possible. Some characters such as !£$%^& or numbers do not have an uppercase equivalent.
user = "ADRIAN" if ( user == toupper("Adrian")) { accept; } if (tolower(input("User:"))=="adrian") accept;
list uname ()
The uname function returns a list containing the following uname information from the policy server:
print("Master OS is :" + uname());
These are the built-in password functions available to use within the policy file.
Name | Description |
---|---|
getgrouppasswd | Request a name and password of someone in the specified group on the policy server or agent. |
getstringpasswd | Request a password from the user to match one generated using pmpasswd. |
getuserpasswd | Request a user’s password on the policy server or agent. |
© 2021 One Identity LLC. ALL RIGHTS RESERVED. Feedback Conditions d’utilisation Confidentialité