mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
'radius' and 'auth radius' support added (not tested yet)
Example: radius secret 192.168.0.1 192.168.0.2 authcache ip,user auth cache radius
This commit is contained in:
1 parent
5cb3947c45
commit
e7433d633c
9 files changed
+52
-39
No files matched your search
+6
-2
@@ -641,7 +641,6 @@ struct authcache {
|
||||
struct authcache *next;
|
||||
} *authc = NULL;
|
||||
|
||||
|
||||
int cacheauth(struct clientparam * param){
|
||||
struct authcache *ac, *last=NULL;
|
||||
|
||||
@@ -850,6 +849,7 @@ int strongauth(struct clientparam * param){
|
||||
return 5;
|
||||
}
|
||||
|
||||
int radauth(struct clientparam * param);
|
||||
|
||||
struct auth authfuncs[] = {
|
||||
{authfuncs+1, NULL, NULL, ""},
|
||||
@@ -858,8 +858,12 @@ struct auth authfuncs[] = {
|
||||
{authfuncs+4, dnsauth, checkACL, "dnsname"},
|
||||
{authfuncs+5, strongauth, checkACL, "strong"},
|
||||
{authfuncs+6, cacheauth, checkACL, "cache"},
|
||||
#ifndef NORADIUS
|
||||
{authfuncs+7, radauth, checkACL, "radius"},
|
||||
{authfuncs+8, NULL, NULL, "none"},
|
||||
#else
|
||||
{authfuncs+7, NULL, NULL, "none"},
|
||||
|
||||
#endif
|
||||
{NULL, NULL, NULL, ""}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user