package opasswd

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val shadow_file : string
type ent = {
  1. name : string;
  2. pwd : string;
  3. last_chg : int64;
  4. min : int64;
  5. max : int64;
  6. warn : int64;
  7. inact : int64;
  8. expire : int64;
  9. flag : int64;
}
val to_string : ent -> string
type db = ent list
val db_to_string : db -> string
type file_descr
val getspnam : string -> ent
val getspent : unit -> ent option
val setspent : unit -> unit
val endspent : unit -> unit
val putspent : file_descr -> ent -> unit
val lckpwdf : unit -> bool
val ulckpwdf : unit -> bool
val with_lock : (unit -> 'a) -> 'a
val open_shadow : ?file:string -> unit -> file_descr
val close_shadow : file_descr -> unit
val shadow_enabled : unit -> bool
val get_db : unit -> db
val update_db : db -> ent -> db
val write_db : ?file:string -> db -> unit
OCaml

Innovation. Community. Security.