]>
git.ipfire.org Git - thirdparty/squid.git/blob - helpers/basic_auth/MSNT/allowusers.cc
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
11 * (C) 2000 Antonino Iannella, Stellar-X Pty Ltd
12 * Released under GPL, see COPYING-2.0 for details.
14 * These routines are to allow users attempting to use the proxy which
15 * have been explicitly allowed by the system administrator.
16 * The code originated from denyusers.c.
21 #include "usersfile.h"
26 #include <sys/types.h>
27 #include <sys/param.h>
29 static usersfile AllowUsers
;
33 char Allowuserpath
[MAXPATHLEN
]; /* MAXPATHLEN defined in param.h */
39 memset(&AllowUsers
, '\0', sizeof(AllowUsers
));
43 return Read_usersfile(Allowuserpath
, &AllowUsers
);
49 Check_ifuserallowed(char *ConnectingUser
)
51 return Check_userlist(&AllowUsers
, ConnectingUser
);
55 Check_forallowchange(void)
57 Check_forfilechange(&AllowUsers
);