package pam

  1. Overview
  2. Docs

Module PamSource

Pam contains functions that interface to the PAM library.

Sourcemodule Pam_conv : sig ... end
Sourcemodule Pam_auth : sig ... end
Sourcemodule Pam_acct : sig ... end
Sourcemodule Pam_cred : sig ... end
Sourcemodule Pam_authtok : sig ... end
Sourcetype pam_conv
Sourcetype pam_fail_delay
Sourcetype pam_xauth_data
Sourcemodule Pam_item_type : sig ... end
Sourcemodule Pam_session : sig ... end
Sourcetype t

t is an abstract type representing pam_handle_t in the C-library

Sourceval pam_start : service:string -> user:string -> conv:((Pam_conv.Message.t, string) Core.Result.t list -> Pam_conv.Result.t) -> t Core.Or_error.t

pam_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.

Sourceval pam_end : t -> unit Core.Or_error.t
Sourceval pam_authenticate : t -> flags:Pam_auth.Flag.t list -> unit Core.Or_error.t
Sourceval pam_acct_mgmt : t -> flags:Pam_acct.Flag.t list -> unit Core.Or_error.t
Sourceval pam_setcred : ?silent:bool -> t -> flag:Pam_cred.Flag.t -> unit Core.Or_error.t
Sourceval pam_chauthtok : t -> flags:Pam_authtok.Flag.t list -> unit Core.Or_error.t
Sourceval pam_open_session : t -> flags:Pam_session.Flag.t list -> unit Core.Or_error.t
Sourceval pam_close_session : t -> flags:Pam_session.Flag.t list -> unit Core.Or_error.t
Sourceval pam_getenv : t -> key:string -> string Core.Or_error.t
Sourceval pam_putenv : t -> key:string -> data:string -> unit Core.Or_error.t
Sourceval pam_unsetenv : t -> key:string -> unit Core.Or_error.t
Sourceval pam_getenvlist : t -> string list Core.Or_error.t
Sourceval pam_get_item : t -> item_type:'a Pam_item_type.t -> 'a option Core.Or_error.t
Sourceval pam_set_item : t -> item_type:'a Pam_item_type.t -> item:'a -> unit Core.Or_error.t
OCaml

Innovation. Community. Security.