Plasma GitLab Archive
Projects Blog Knowledge

Module Rpc_auth_local


module Rpc_auth_local: sig .. end
Return the authentication method AUTH_LOCAL.

Note that you need another authentication method that operates at message level (like AUTH_NONE, AUTH_SYS, AUTH_DH), otherwise you will get an error Auth_too_weak. AUTH_LOCAL overrides the result of the other authentication method.


val server_auth_method : unit -> Rpc_server.auth_method
Return the authentication method AUTH_LOCAL.

Note that you need another authentication method that operates at message level (like AUTH_NONE, AUTH_SYS, AUTH_DH), otherwise you will get an error Auth_too_weak. AUTH_LOCAL overrides the result of the other authentication method.

val get_peer_credentials : Unix.file_descr -> int * int
Return the pair (euid,egid) for a Unix domain socket. The function raises Invalid_argument if it is not available for this operating system.
val peek_peer_credentials : Unix.file_descr -> int * int
Peeks at the next message and returns the pair (euid,egid) for a Unix domain socket. This function must be called before data is read from the socket (and it blocks until data is available). The function raises Invalid_argument if it is not available for this operating system. The exception Not_found is raised if the credentials cannot be extracted from the control block. peek_peer_credentials seems to be more portable than get_peer_credentials.
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml