[Python-checkins] python/dist/src/Doc/lib libspwd.tex, NONE, 1.1 lib.tex, 1.236, 1.237 libpwd.tex, 1.14, 1.15

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Jan 23 10:27:26 CET 2005

Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21361/Doc/lib

Modified Files:
	lib.tex libpwd.tex 
Added Files:
Log Message:
Patch #579435: Shadow Password Support Module

--- NEW FILE: libspwd.tex ---
\section{\module{spwd} ---
         The shadow password database}

\modulesynopsis{The shadow password database (\function{getspnam()} and friends).}

This module provides access to the \UNIX{} shadow password database.
It is available on various Unix versions.

You must have enough privileges to access the shadow password database
(this usually means you have to be root).

Shadow password database entries are reported as a tuple-like object, whose
attributes correspond to the members of the \code{spwd} structure
(Attribute field below, see \code{<shadow.h>}):

  \lineiii{0}{\code{sp_nam}}{Login name}
  \lineiii{1}{\code{sp_pwd}}{Encrypted password}
  \lineiii{2}{\code{sp_lstchg}}{Date of last change}
  \lineiii{3}{\code{sp_min}}{Minimal number of days between changes}
  \lineiii{4}{\code{sp_max}}{Maximum number of days between changes}
  \lineiii{5}{\code{sp_warn}}{Number of days before password expires to warn user about it}
  \lineiii{6}{\code{sp_inact}}{Number of days after password expires until account is blocked}
  \lineiii{7}{\code{sp_expire}}{Number of days since 1970-01-01 until account is disabled}

The sp_nam and sp_pwd items are strings, all others are integers.
\exception{KeyError} is raised if the entry asked for cannot be found.

It defines the following items:

Return the shadow password database entry for the given user name.

Return a list of all available shadow password database entries, in arbitrary order.

  \seemodule{pwd}{An interface to the normal password database, similar to this.}

Index: lib.tex
RCS file: /cvsroot/python/python/dist/src/Doc/lib/lib.tex,v
retrieving revision 1.236
retrieving revision 1.237
diff -u -d -r1.236 -r1.237
--- lib.tex	19 Jan 2005 05:42:51 -0000	1.236
+++ lib.tex	23 Jan 2005 09:27:23 -0000	1.237
@@ -193,6 +193,7 @@
 \input{libunix}                 % UNIX Specific Services

Index: libpwd.tex
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libpwd.tex,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- libpwd.tex	1 Mar 2002 10:47:36 -0000	1.14
+++ libpwd.tex	23 Jan 2005 09:27:23 -0000	1.15
@@ -50,4 +50,5 @@
   \seemodule{grp}{An interface to the group database, similar to this.}
+  \seemodule{spwd}{An interface to the shadow password database, similar to this.}

More information about the Python-checkins mailing list