From: Nishi Date: Fri, 11 Oct 2024 19:32:30 +0000 (+0000) Subject: added pam X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=9682d95a7f62d8e88b1f4aa35ddcbb89898932e6;p=rbuild.git added pam git-svn-id: file:///raid/svn-personal/rbuild/trunk@9 c68d3453-7f82-0740-9748-1d72386a946b --- diff --git a/Server/auth.c b/Server/auth.c index ec4d4f1..b82ee7f 100644 --- a/Server/auth.c +++ b/Server/auth.c @@ -105,6 +105,11 @@ CMBOOL rbs_auth(const char* section, const char* username, const char* password) if(strcmp(auth, "pam") == 0){ state = rbs_auth_pam(username, password); }else +#endif +#ifdef HAS_PLAIN_AUTH + if(strcmp(auth, "plain") == 0 && arg != NULL){ + state = rbs_auth_plain(arg, username, password); + }else #endif if(1){ free(auth);