Logs in a user and returns a SessionID that can be used for authentication. To send the session IDto a file, the arguments -o and -of must be specified before the username and password.
Table 13–25 Result of the udb.login Command
Argument |
Syntax |
Description |
|
---|---|---|---|
o |
[O] |
String |
The name of the formatter |
of |
[O] |
String |
The name of the output file |
u |
[R] |
String |
The username |
p |
[O/R] |
String |
The plaintext user password; required if the encoded password is not available or supplied. |
ep |
[O/R] |
String |
The encoded user password; required if the plaintext password is not available or supplied. |
result |
SessionID |
The session ID |
This example demonstrates saving a session ID being saved for reuse.
serialized
sessionid
# cr_cli -cmd udb.login -o serialized -of sessionid -u admin -p admin |