From: Samuel Cabrero Date: Thu, 6 Feb 2025 13:41:57 +0000 (+0100) Subject: s3/utils: Add a check for "winbind varlink service" X-Git-Tag: tevent-0.17.0~725 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f26ccdaac260d3832fe227805d79d13b2d4ef92;p=thirdparty%2Fsamba.git s3/utils: Add a check for "winbind varlink service" Warn when the option is enabled but samba was built without systemd's userdb support. Signed-off-by: Samuel Cabrero Reviewed-by: Andreas Schneider --- diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index 55c9bf1e076..2bc41244a27 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -808,6 +808,16 @@ static int do_global_checks(void) } } + if (lp_winbind_varlink_service()) { +#ifndef WITH_SYSTEMD_USERDB + fprintf(stderr, + "WARNING: \"winbind varlink service\" is enabled but " + "samba was built without system'd userdb support " + "(--with-systemd-userdb). This option will not " + "have any effect.\n\n"); +#endif + } + return ret; }