'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:
z3APA3A committed 2016-12-20 19:50:50 +03:00
1 parent 5cb3947c45
commit e7433d633c
9 files changed
+52 -39

No files matched your search

+6 -2
View File
@@ -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, ""}
};