]>
git.ipfire.org Git - thirdparty/squid.git/blob - helpers/basic_auth/MSNT/allowusers.cc
5 * (C) 2000 Antonino Iannella, Stellar-X Pty Ltd
6 * Released under GPL, see COPYING-2.0 for details.
8 * These routines are to allow users attempting to use the proxy which
9 * have been explicitly allowed by the system administrator.
10 * The code originated from denyusers.c.
15 #include <sys/types.h>
16 #include <sys/param.h>
19 #include "usersfile.h"
21 static usersfile AllowUsers
;
25 char Allowuserpath
[MAXPATHLEN
]; /* MAXPATHLEN defined in param.h */
31 memset(&AllowUsers
, '\0', sizeof(AllowUsers
));
35 return Read_usersfile(Allowuserpath
, &AllowUsers
);
41 Check_ifuserallowed(char *ConnectingUser
)
43 return Check_userlist(&AllowUsers
, ConnectingUser
);
47 Check_forallowchange(void)
49 Check_forfilechange(&AllowUsers
);