package opasswd

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val shadow_file : string
type t = {
  1. name : string;
  2. passwd : string;
  3. last_chg : int64;
  4. min : int64;
  5. max : int64;
  6. warn : int64;
  7. inact : int64;
  8. expire : int64;
  9. flag : int;
}
val to_string : t -> string
type db = t list
module Mem : sig ... end
val db_to_string : db -> string
val getspnam : string -> t option
val getspent : unit -> t option
val setspent : unit -> unit
val endspent : unit -> unit
val putspent : Passwd.file_descr -> t -> unit
val lckpwdf : unit -> bool

Note that the simple locking functionality provided here is not suitable for multi-threaded applications: there is no protection against direct access of the shadow password file. Only programs that use lckpwdf will notice the lock.

val ulckpwdf : unit -> bool
val with_lock : (unit -> 'a) -> 'a
val shadow_enabled : unit -> bool
val get_db : unit -> db
val update_db : db -> t -> db
val write_db : ?file:string -> db -> unit
OCaml

Innovation. Community. Security.