Sun N1 Service Provisioning System 5.2 Command-Line Interface Reference Manual

udb.login

Logs in a user and returns a SessionID that can be used for authentication. To send the session ID to a file, the arguments -o and -of must be specified before the username and password. The usage of -o and -of options is shown inTable 1–1

Table 14–25 Result of the udb.login Command

Argument 

Syntax 

Description 

Required 

String 

The username 

[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 


Example 14–1 Example of Sending the Session ID to a File

This example demonstrates how to save a session ID for reuse.

Name of formatter

serialized

Name of output file

sessionid


# cr_cli -cmd udb.login -o serialized -of sessionid -u admin -p admin