package pam
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Pam
Pam contains functions that interface to the PAM library.
module Pam_conv : sig ... endmodule Pam_auth : sig ... endmodule Pam_acct : sig ... endmodule Pam_cred : sig ... endmodule Pam_authtok : sig ... endmodule Pam_item_type : sig ... endmodule Pam_session : sig ... endval pam_start :
service:string ->
user:string ->
conv:((Pam_conv.Message.t, string) Core.Result.t list -> Pam_conv.Result.t) ->
t Core.Or_error.tpam_start initiates a pam transaction. This function works like its C-version except that it calls pam_end on a failure. This should make it easier to chain pam operations in the caller code.
val pam_end : t -> unit Core.Or_error.tval pam_authenticate : t -> flags:Pam_auth.Flag.t list -> unit Core.Or_error.tval pam_acct_mgmt : t -> flags:Pam_acct.Flag.t list -> unit Core.Or_error.tval pam_setcred :
?silent:bool ->
t ->
flag:Pam_cred.Flag.t ->
unit Core.Or_error.tval pam_chauthtok : t -> flags:Pam_authtok.Flag.t list -> unit Core.Or_error.tval pam_open_session :
t ->
flags:Pam_session.Flag.t list ->
unit Core.Or_error.tval pam_close_session :
t ->
flags:Pam_session.Flag.t list ->
unit Core.Or_error.tval pam_getenv : t -> key:string -> string Core.Or_error.tval pam_putenv : t -> key:string -> data:string -> unit Core.Or_error.tval pam_unsetenv : t -> key:string -> unit Core.Or_error.tval pam_getenvlist : t -> string list Core.Or_error.tval pam_get_item :
t ->
item_type:'a Pam_item_type.t ->
'a option Core.Or_error.tval pam_set_item :
t ->
item_type:'a Pam_item_type.t ->
item:'a ->
unit Core.Or_error.t