If the password is correct, the authentication attempt succeeds and the JUNOScript server emits the following tag sequence:
<rpc-reply xmlns:junos="URL">
<authentication-response>
<status>success</status>
<message>username</message>
<login-name>remote-username</login-name>
</authentication-response>
</rpc-reply>
The <message> tag element contains the JUNOS username under which the connection is established.
The <login-name> tag element contains the username that the client application provided to an authentication utility such as RADIUS or TACACS+. This tag element appears only if the username differs from the username contained in the <message> tag element.
The JUNOScript session begins, as described in Starting the JUNOScript Session.