From a8b95686a7bde3f96f141b6938e24e101567ef54 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 22 Oct 2010 10:31:06 -0700 Subject: Wrap security_token_has_privilege() with a check for lp_enable_privileges(). Needed to maintain compatibility with smb.conf manpage. Jeremy. Autobuild-User: Jeremy Allison Autobuild-Date: Fri Oct 22 18:15:48 UTC 2010 on sn-devel-104 --- source3/param/loadparm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 8dadebfa89..b11effdf93 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -10132,3 +10132,11 @@ bool lp_readraw(void) } return _lp_readraw(); } + +bool s3_security_token_has_privilege(const struct security_token *token, enum sec_privilege privilege) +{ + if (!lp_enable_privileges()) { + return false; + } + return security_token_has_privilege(token, privilege); +} -- cgit