GET_LOGIN
This script function retrieves the login information or the password of a certain entry in the specified Login object. The parameters Name and Type decide upon the entry. For more information, see Login (LOGIN).
Important!
- You can only retrieve the login entries of self-defined systems or applications, not operating systems. Ensure that the Type parameter you define is also available in the UC_LOGIN_TYPES variable. For more information, seeUC_LOGIN_TYPES - Defining Additional Platform and System Types for Login Objects
- Do not use percent (%) or caret (^) characters in passwords.
- GET_LOGIN retrieves the password in encrypted form. You can use the password with the Agent Job Messenger (CMD start parameter), where it is decrypted. For more information, see Agent Job Messenger.
Syntax
GET_LOGIN (Login object, Name, Type, Information)
Syntax |
Description/Format |
---|---|
Login object |
The name of a Login object. |
Name |
The name of the entry in the Login object. |
Type |
The type of the login entry. |
Information |
The information that should be read. Allowed values: |
Return Code |
---|
The relevant information. 20476 - The specified object does not exist or is not of login type. |
Examples
The following example reads the login information and the password of the backend system entry SVN from the Login object and runs a command run via the Job Messenger afterward that specifies the login data.
:SET &LOGIN# = GET_ATT(LOGIN)
:SET &LI# = GET_LOGIN(&LOGIN#,SVN,SVN,LOGIN_INFO)
:SET &PW# = GET_LOGIN(&LOGIN#,SVN,SVN,PASSWORD)
&UC_JOBMD CMD="&SVN_CMD# checkout ""&SVN_URI#"" ""&SVN_DIR#"" --username &LI# --password &PW#"
See also:
seealso