⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 authuser.3

📁 wu-ftpd类unix下的ftp服务器,可用于嵌入式系统
💻 3
字号:
.\".\" Copyright (c) 1999,2000 WU-FTPD Development Group. .\" All rights reserved..\" .\" Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994 .\" The Regents of the University of California.  Portions Copyright (c) .\" 1993, 1994 Washington University in Saint Louis.  Portions Copyright .\" (c) 1996, 1998 Berkeley Software Design, Inc.  Portions Copyright (c) .\" 1998 Sendmail, Inc.  Portions Copyright (c) 1983, 1995, 1996, 1997 Eric .\" P. Allman.  Portions Copyright (c) 1989 Massachusetts Institute of .\" Technology.  Portions Copyright (c) 1997 Stan Barber.  Portions .\" Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997 Free Software .\" Foundation, Inc.  Portions Copyright (c) 1997 Kent Landfield. .\".\" Use and distribution of this software and its source code are governed .\" by the terms and conditions of the WU-FTPD Software License ("LICENSE"). .\".\"     $Id: authuser.3,v 1.3 2000/07/01 18:40:49 wuftpd Exp $.\".TH authuser 3.SH NAMEauthuser \- library to get information from a remote Authentication Server.SH SYNTAX.B #include <authuser.h>.PP.B unsigned short auth_tcpport;.PP.B char *auth_xline(user,fd,&in);.PP.B int auth_fd(fd,&in,&local,&remote);.PP.B char *auth_tcpuser(in,local,remote);.PP.B char *user;.br.B int fd;.br.B unsigned long in;.br.B unsigned short local;.br.B unsigned short remote;.SH DESCRIPTIONThe.I authuserlibrary provides a simple interface forfinding out the remote identityof a connection through theAuthentication Serveras specified by RFC 931.Use the -lauthuser loader optionto compile a program with this library..PP.B auth_xline(user,fd,&in)returns a line of the form X-Auth-User: user or X-Forgery-By: username,depending upon what the host on the other side of.B fdthinks of the user.This is particularly appropriate formail and news headers..PPIf the remote host reports that.B userowns the connection on that side,.B auth_xlinewill return X-Auth-User: user.If the remote host reports that a different.B usernameowns the connection,.B auth_xlinewill return X-Forgery-By: username.If user is NULL,it returns X-Auth-User: usernamewith the username reported by the remote host.If .B fdis not a TCP connectionor authentication is impossible,.B auth_xlinereturns NULL, setting errno appropriately..PPThe line is not cr-lf terminated.It is stored in a static areawhich is overwritten on each call to.B auth_xline..B auth_xlineplaces the Internet address of the other host into in..PP.B auth_fd(fd,&in,&local,&remote)retrieves address information from the connection in socket.B fd.It places theInternet address of the host on other side into.B inand the local and remoteTCP ports into .B localand .B remote..B auth_fdreturns -1 upon error, setting errno appropriately..PP.B auth_tcpuser(in,local,remote)returns the name of the user on the other end of the TCP connectionbetween.B remote@inand.B local.If authentication is impossible,.B auth_tcpuserreturnsNULL, setting errno appropriately.The user name is stored in a static areawhich is overwritten on each call to.B auth_tcpuserand.B auth_xline..PPThe authentication routines check with theremote Authentication Server on port.B auth_tcpport,which defaults to 113as specified by RFC 931.You can set.B auth_tcpportto other valuesfor nonstandard implementations..PP.SH RESTRICTIONS.I authuserdoes no backslash interpretationupon the remote user name.Hopefully the next revision of RFC 931will make clear exactly what backslashinterpretation should be going on..PP.I authuserdoes not use the operating system typeinformation provided by the Authentication Server..SH VERSIONauthuser version 3.1, May 6, 1991..SH AUTHORPlaced into the public domain by Daniel J. Bernstein..SH REFERENCESThe authentication server is more secure than passwordsin some ways, but less secure than passwords in many ways.(It's certainly better than no password at all---e.g., formail or news.)It is not the final solution.For an excellent discussion of security problems withinthe TCP/IP protocol suite, seeSteve Bellovin's article``Security Problems in the TCP/IP Protocol Suite.''.SH "SEE ALSO"authtcp(1),attachport(1),getpeername(3),getsockname(3),tcp(4),authd(8)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -