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>
}
}
+ 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;
}