diff --git a/configure.ac b/configure.ac index 50db1fe9..e1a150e8 100644 --- a/configure.ac +++ b/configure.ac @@ -95,7 +95,7 @@ AC_CHECK_MEMBER([struct in6_addr.s6_addr], [AC_DEFINE(NO_ARPA_INET_H_IP6, 1, [for IPv6])], [#include ]) -if test "x$enable_pam" != "xyes" +if test "x$enable_pam" != "xyes" || test "x$bsd" = "xtrue" then AC_DEFINE([USE_NOPAM],1,[Disable PAM]) fi diff --git a/sesman/verify_user_bsd.c b/sesman/verify_user_bsd.c index 3edd2d9e..ef35037f 100644 --- a/sesman/verify_user_bsd.c +++ b/sesman/verify_user_bsd.c @@ -19,7 +19,7 @@ /** * - * @file verify_user_user.c + * @file verify_user_bsd.c * @brief Authenticate user using BSD password system * @author Renaud Allard * @@ -45,7 +45,7 @@ extern struct config_sesman* g_cfg; /* in sesman.c */ /******************************************************************************/ /* returns boolean */ long DEFAULT_CC -auth_userpass(char* user, char* pass) +auth_userpass(char *user, char *pass, int *errorcode) { int ret = auth_userokay(user, NULL, "auth-xrdp", pass); return ret; @@ -86,6 +86,12 @@ auth_change_pwd(char* user, char* newpwd) return 0; } +int DEFAULT_CC +auth_stop_session(long in_val) +{ + return 0; +} + /** * * @brief Password encryption