summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-01-25 23:32:19 +0000
committerGerald Carter <jerry@samba.org>2005-01-25 23:32:19 +0000
commita8df057511430986196a5118cd83cfcb8d0cea9e (patch)
tree388262726de3e21ebfdf09cc69325a23b62271ec /source/lib
parentade2cba8b1827e0f7a8e4ddeb2e65590a8dd8075 (diff)
downloadsamba-a8df057511430986196a5118cd83cfcb8d0cea9e.tar.gz
samba-a8df057511430986196a5118cd83cfcb8d0cea9e.tar.xz
samba-a8df057511430986196a5118cd83cfcb8d0cea9e.zip
r4995: fail set_privileges() if 'enable privileges = no' to prevent confused admins who never read what I write :-)
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/privileges.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/lib/privileges.c b/source/lib/privileges.c
index 628b2dd3251..ea81f9fce0b 100644
--- a/source/lib/privileges.c
+++ b/source/lib/privileges.c
@@ -228,6 +228,9 @@ static BOOL set_privileges( const DOM_SID *sid, SE_PRIV *mask )
fstring keystr;
TDB_DATA key, data;
+ if ( !lp_enable_privileges() )
+ return False;
+
if ( !tdb )
return False;