summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getpwent.3
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-09-20 22:02:20 +0000
committerwollman <wollman@FreeBSD.org>1994-09-20 22:02:20 +0000
commit1a7a5b21881ee151dc4442d48489c7c47489e1fd (patch)
tree7a7c468a1a658253f2f1a46c514a3b30957a9727 /lib/libc/gen/getpwent.3
parentebfe3ce6c7cdd09c8e7bb32be6c46ea604b240db (diff)
downloadFreeBSD-src-1a7a5b21881ee151dc4442d48489c7c47489e1fd.zip
FreeBSD-src-1a7a5b21881ee151dc4442d48489c7c47489e1fd.tar.gz
Document YP support.
Diffstat (limited to 'lib/libc/gen/getpwent.3')
-rw-r--r--lib/libc/gen/getpwent.344
1 files changed, 27 insertions, 17 deletions
diff --git a/lib/libc/gen/getpwent.3 b/lib/libc/gen/getpwent.3
index 1208f53..6c23f49 100644
--- a/lib/libc/gen/getpwent.3
+++ b/lib/libc/gen/getpwent.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)getpwent.3 8.2 (Berkeley) 12/11/93
+.\" From: @(#)getpwent.3 8.2 (Berkeley) 12/11/93
.\"
-.Dd December 11, 1993
+.Dd September 20, 1994
.Dt GETPWENT 3
.Os
.Sh NAME
@@ -133,6 +133,24 @@ If the process which calls them has an effective uid of 0, the encrypted
password will be returned, otherwise, the password field of the returned
structure will point to the string
.Ql * .
+.Sh YP/NIS INTERACTION
+When the
+.Xr yp 4
+password database is enabled, the
+.Fn getpwnam
+and
+.Fn getpwuid
+functions use the YP maps
+.Dq Li passwd.byname
+and
+.Dq Li passwd.byuid ,
+respectively, if the requested password entry is not found in the
+local database. The
+.Fn getpwent
+function will step through the YP map
+.Dq Li passwd.byname
+if the entire map is enabled as described in
+.Xr passwd 5 .
.Sh RETURN VALUES
The functions
.Fn getpwent ,
@@ -166,7 +184,8 @@ A Version 7 format password file
.Xr getgrent 3 ,
.Xr passwd 5 ,
.Xr pwd_mkdb 8 ,
-.Xr vipw 8
+.Xr vipw 8 ,
+.Xr yp 4
.Sh HISTORY
The
.Nm getpwent ,
@@ -181,6 +200,11 @@ The
.Nm setpassent
function appeared in
.Bx 4.3 Reno .
+.Sh COMPATIBILITY
+The historic function
+.Xr setpwfile 3 ,
+which allowed the specification of alternate password databases,
+has been deprecated and is no longer available.
.Sh BUGS
The functions
.Fn getpwent ,
@@ -191,17 +215,3 @@ leave their results in an internal static object and return
a pointer to that object. Subsequent calls to
the same function
will modify the same object.
-.Pp
-The routines
-.Fn getpwent ,
-.Fn endpwent ,
-.Fn setpassent ,
-and
-.Fn setpwent
-are fairly useless in a networked environment and should be
-avoided, if possible.
-.Sh COMPATIBILITY
-The historic function
-.Xr setpwfile 3 ,
-which allowed the specification of alternate password databases,
-has been deprecated and is no longer available.
OpenPOWER on IntegriCloud