next up previous contents index
次へ: SANE_NET_EXIT 上へ: Remote Procedure Call Requests 戻る: SANE_NET_CANCEL   目次   索引


SANE_NET_AUTHORIZE

This RPC is used to pass authorization data from the net client to the net server.

request: reply:
SANE_String resource SANE_Word dummy
SANE_String username  
SANE_String password  
The resource argument specifies the name of the resource to be authorized. This argument should be set to the string returned in the resource argument of the RPC reply that required this authorization call. The username and password are the name of the user that is accessing the resource and the password for the specified resource/user pair.

Since the password is not encrypted during network transmission, it is recommended to use the following extension:

If the server adds the string `$MD5$' to the resource-name followed by a random string not longer then 128 bytes, the client may answer with the MD5 digest of the concatenation of the password and the random string. To differentiate between the MD5 digest and a strange password the client prepends the MD5 digest with the string `$MD5$'.

In the reply, dummy is completely unused. Note that there is no direct failure indication. This is unnecessary since a net client will retry the RPC that resulted in the authorization request until that call succeeds (or until the request is cancelled). The RPC that resulted in the authorization request continues after the reply from the client and may fail with SANE_STATUS_ACCESS_DENIED.


next up previous contents index
次へ: SANE_NET_EXIT 上へ: Remote Procedure Call Requests 戻る: SANE_NET_CANCEL   目次   索引
MATSUBAYASHI 'Shaolin' Kohji 平成14年10月29日