Currently registry config is not used in the clustered testenv, so currently
there's no problem. But once we do add that, the check would be triggered.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14787
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Sep 22 16:57:25 UTC 2021 on sn-devel-184
* Clustered Samba can only work as root because we need messaging to
* talk to ctdb which only works as root.
*/
- if (lp_clustering() && geteuid() != 0) {
+ if (!uid_wrapper_enabled() && lp_clustering() && geteuid() != 0) {
DBG_ERR("Cluster mode requires running as root.\n");
return WERR_ACCESS_DENIED;
}