From 9682d95a7f62d8e88b1f4aa35ddcbb89898932e6 Mon Sep 17 00:00:00 2001 From: Nishi Date: Fri, 11 Oct 2024 19:32:30 +0000 Subject: [PATCH] added pam git-svn-id: file:///raid/svn-personal/rbuild/trunk@9 c68d3453-7f82-0740-9748-1d72386a946b --- Server/auth.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.43.0