version 1.12, 1999/12/27 10:46:11 |
version 1.13, 2000/04/14 10:30:29 |
|
|
/* |
/* |
* |
* |
* auth-rhosts.c |
* auth-rhosts.c |
* |
* |
* Author: Tatu Ylonen <ylo@cs.hut.fi> |
* Author: Tatu Ylonen <ylo@cs.hut.fi> |
* |
* |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
* All rights reserved |
* All rights reserved |
* |
* |
* Created: Fri Mar 17 05:12:18 1995 ylo |
* Created: Fri Mar 17 05:12:18 1995 ylo |
* |
* |
* Rhosts authentication. This file contains code to check whether to admit |
* Rhosts authentication. This file contains code to check whether to admit |
* the login based on rhosts authentication. This file also processes |
* the login based on rhosts authentication. This file also processes |
* /etc/hosts.equiv. |
* /etc/hosts.equiv. |
* |
* |
*/ |
*/ |
|
|
#include "includes.h" |
#include "includes.h" |
|
|
* based on the file, and returns zero otherwise. |
* based on the file, and returns zero otherwise. |
*/ |
*/ |
|
|
int |
int |
check_rhosts_file(const char *filename, const char *hostname, |
check_rhosts_file(const char *filename, const char *hostname, |
const char *ipaddr, const char *client_user, |
const char *ipaddr, const char *client_user, |
const char *server_user) |
const char *server_user) |
|
|
* /etc/hosts.equiv will be considered (.rhosts and .shosts are ignored). |
* /etc/hosts.equiv will be considered (.rhosts and .shosts are ignored). |
*/ |
*/ |
|
|
int |
int |
auth_rhosts(struct passwd *pw, const char *client_user) |
auth_rhosts(struct passwd *pw, const char *client_user) |
{ |
{ |
extern ServerOptions options; |
extern ServerOptions options; |