[Contents] [Prev] [Next] [Index] [Report an Error]

Providing Only the Username

To omit the password and specify only the username, the application emits the following tag sequence:

<rpc>
    <request-login>
        <username>username</username>
    </request-login>
</rpc>

This tag sequence is appropriate if the application does not obtain the password until the authentication process has already begun. In this case, the JUNOScript server returns the <challenge> tag element within an <rpc-reply> tag element to request the password associated with the username. The tag element encloses the Password: string, which the client application can forward to the screen as a prompt for a user. The echo="no" attribute in the opening <challenge> tag specifies that the password string typed by the user does not echo on the screen. The tag sequence is as follows:

<rpc-reply xmlns:junos="URL">
    <challenge echo="no">Password:</challenge>
</rpc-reply>

The client application obtains the password and emits the following tag sequence to forward it to the JUNOScript server:

<rpc>
    <request-login>
        <username>username</username>
        <challenge-response>password</challenge-response>
    </request-login>
</rpc>

[Contents] [Prev] [Next] [Index] [Report an Error]