Added GSSAPI as an additional password auth mechanism

That also adds the ability to support an OR composition of multiple
authentication methods. That is using the 'enable-auth' config option.
This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-19 11:47:20 +01:00
parent 5e4763d229
commit 8bb0af61bc
21 changed files with 747 additions and 170 deletions
+7 -1
View File
@@ -67,6 +67,12 @@ static int radius_auth_init(void **ctx, void *pool, const char *username, const
struct radius_ctx_st *pctx;
char *default_realm;
if (username == NULL || username[0] == 0) {
syslog(LOG_AUTH,
"radius-auth: no username present");
return ERR_AUTH_FAIL;
}
pctx = talloc_zero(pool, struct radius_ctx_st);
if (pctx == NULL)
return ERR_AUTH_FAIL;
@@ -88,7 +94,7 @@ static int radius_auth_init(void **ctx, void *pool, const char *username, const
*ctx = pctx;
return 0;
return ERR_AUTH_CONTINUE;
}
static int radius_auth_group(void *ctx, const char *suggested, char *groupname, int groupname_size)