]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/utils: Add a check for "winbind varlink service"
authorSamuel Cabrero <scabrero@samba.org>
Thu, 6 Feb 2025 13:41:57 +0000 (14:41 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 20 Feb 2025 08:07:32 +0000 (08:07 +0000)
Warn when the option is enabled but samba was built without systemd's userdb
support.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/utils/testparm.c

index 55c9bf1e076cb31e34a0b2e0fd8d6a51ae4495a8..2bc41244a27854f2aa5696d4ad3ccd16a0815fb5 100644 (file)
@@ -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;
 }