CWB
Functions

dummy_auth.c File Reference

All functions in this module are dummy implementations which just print an error message. More...

#include "../CQi/auth.h"
#include "output.h"

Functions


Detailed Description

All functions in this module are dummy implementations which just print an error message.


Function Documentation

void add_grant_to_last_user ( char *  corpus)
void add_host_to_list ( char *  ipaddr)
void add_hosts_in_subnet_to_list ( char *  ipsubnet)
void add_user_to_list ( char *  user,
char *  passwd 
)
int authenticate_user ( char *  username,
char *  passwd 
)

returns true if (user, passwd) pair is in list of allowed users

References find_user(), _UserEntry::passwd, and user.

int check_grant ( char *  username,
char *  corpus 
)

returns true if user may access corpus

References _Grant::corpus, find_user(), _UserEntry::grants, _Grant::next, and user.

int check_host ( struct in_addr  host_addr)

returns true if host is in list of allowed hosts

References _HostEntry::accept_any, _HostEntry::address, and _HostEntry::next.

void show_grants ( void  )