]> Nishi Git Mirror - rbuild.git/commitdiff
added pam
authorNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 19:32:30 +0000 (19:32 +0000)
committerNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 19:32:30 +0000 (19:32 +0000)
git-svn-id: file:///raid/svn-personal/rbuild/trunk@9 c68d3453-7f82-0740-9748-1d72386a946b

Server/auth.c

index ec4d4f1e75e582b1909d282c13625aa5d00260e7..b82ee7f1403a782ba9d2f64a9ae8c1e86d843c1e 100644 (file)
@@ -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);