aboutsummaryrefslogtreecommitdiffstats
path: root/authenticate.c
Commit message (Collapse)AuthorAgeFilesLines
* Added "const" to appropriate char pointers.Wayne Davison2006-11-191-20/+20
|
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-19/+20
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* The base4_encode() function now takes a "pad" arg which indicatesWayne Davison2006-03-061-5/+8
| | | | if the caller wants to pad the value with trailing '=' chars.
* Check MY_UID() directly instead of accessing am_root.Wayne Davison2006-01-261-3/+2
|
* Got rid of calls to (the soon to vanish) safe_fname() function.Wayne Davison2006-01-131-3/+3
|
* Use BIGPATHBUFLEN for the length of a line buffer.Wayne Davison2005-07-291-1/+1
|
* Made the code a little cleaner by having gen_challenge() returnWayne Davison2005-04-101-11/+10
| | | | | the challenge string base64-encoded (instead of forcing the caller to handle this). Also improved a couple comments.
* - Use the MD4_SUM_LENGTH define in place of some hard-wired values.Wayne Davison2005-04-091-31/+40
| | | | | | | - Pass the hostname in to auth_server(). - Generate a unique error for each failure type in auth_server() so that the log-file contains why the authorization failed. - Don't use sscanf() to parse the client's auth-challenge response.
* Adding more calls to safe_fname().Wayne Davison2005-02-071-3/+4
|
* Changed the errors concerning the secrets file to output with FLOGWayne Davison2004-09-241-4/+4
| | | | instead of FERROR.
* Changed sum_init() to take a seed value as an arg instead of alwaysWayne Davison2004-05-211-2/+2
| | | | | using checksum_init. This fixes an authentication problem in server mode (as pointed out by Craig Barratt).
* Improved a comment and got rid of some trailing whitespace.Wayne Davison2004-05-081-21/+18
|
* Tweaked the sizeof syntax and some multi-statement lines.Wayne Davison2004-05-081-18/+19
|
* - Improved the get_secret()'s function comments, made it accept a lineWayne Davison2004-05-081-53/+64
| | | | | that doesn't end with a newline, and optimized it a bit. - Improved getpassf() to work if the line does not end with a newline.
* Decided to use "nobody" instead of "guest".Wayne Davison2004-04-011-1/+1
|
* The auth_client function must not return without outputting somethingWayne Davison2004-03-311-1/+2
| | | | on the socket, so a NULL or empty username now defaults to "guest".
* Made base64_encode() non-static.Wayne Davison2004-01-031-2/+2
|
* Call wildmatch(), not fnmatch().Wayne Davison2003-07-301-1/+1
|
* Add a comment about using getpassphrase() or readpassphrase() ratherMartin Pool2003-06-171-2/+8
| | | | than getpass(). No code change.
* File I/O already handles '\r', so we can remove the O_TEXT flags.Wayne Davison2003-01-261-2/+2
|
* Open config files in text mode when O_TEXT is defined. This helps onDavid Dykstra2003-01-261-2/+2
| | | | | Cygwin when the config files are on a filesystem that is mounted in binary mode. Patch from Ville Herva.
* Changed auth_server() to take two fds (for the daemon via remote-shellWayne Davison2002-08-011-3/+3
| | | | support).
* Another harmless size_t warning.Martin Pool2002-01-241-2/+2
|
* Add comment: cyeoh says that getpass is deprecated, because it mayMartin Pool2001-08-291-0/+3
| | | | return a truncated password on some systems, and it is not in the LSB.
* allow shell wildcards in auth users linesAndrew Tridgell2001-06-221-2/+2
|
* Print strerror when a system error occurs; add a new function rsyserrMartin Pool2000-10-261-3/+4
| | | | | to do this. This is not used in every case yet -- I've just changed a few cases that were causing trouble. Please convert others as you see them.
* Print strerror when a system error occurs; add a new function rsyserrMartin Pool2000-10-261-2/+2
| | | | | to do this. This is not used in every case yet -- I've just changed a few cases that were causing trouble. Please convert others as you see them.
* got rid of some unused variablesAndrew Tridgell2000-08-191-2/+1
|
* handle systems that don't take a 2nd argument to gettimeofday()Andrew Tridgell2000-01-231-1/+1
|
* Added "strict modes" option. When set false (default is true), it allowsDavid Dykstra1999-02-091-6/+8
| | | | | the secrets file to be readable by other users. Added to support the Windows port under cygwin. Problem reported by Martin Krumpolec krumpo@pobox.sk
* fixed bug where strtok() could return NULL in getpassf().Andrew Tridgell1999-01-081-1/+3
|
* added --password-file patch from Alex Schlessinger <alex@inconnect.com>Andrew Tridgell1999-01-081-2/+50
| | | | | (yes, I know I'm not supposed to be doing rsync work at the moment! only four weeks to go ...)
* Make sure secrets file is not other-accessible, and owned by root if theDavid Dykstra1998-11-241-0/+19
| | | | | daemon is running as root. Suggested by Mike Richardson <mike@quaking.demon.co.uk>
* changed strlcat() and strlcpy() to have the same semantics as theAndrew Tridgell1998-11-141-1/+1
| | | | | | OpenBSD functions of the same name. changed slprintf() to take buffer length rather than buffer length -1
* added finddead target, removed dead code and made some functionsAndrew Tridgell1998-09-091-1/+1
| | | | static
* for authenticated access record the authenticated username in the logsAndrew Tridgell1998-05-161-10/+20
|
* - changed the log messages to show the requested pathAndrew Tridgell1998-05-151-6/+1
| | | | | | - some more paranoid buffer size checks - separate open syslog call - handle systems without LOG_NDELAY
* use strlcat() strlcpy() and slprintf() whenever possible to avoid anyAndrew Tridgell1998-05-151-5/+4
| | | | chance of a buffer overflow
* improved the authentication and in particular the error reportingAndrew Tridgell1998-05-131-0/+13
|
* first working version of challenge response authentication. needsAndrew Tridgell1998-05-131-0/+177
| | | | testing.
* improved max connections code. Now use fcntl instead of flock.Andrew Tridgell1998-05-131-0/+21
also started on authentication code (I'm doing a challenge response system initially)