diff options
-rw-r--r-- | source3/lib/privileges.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c index 628b2dd325..ea81f9fce0 100644 --- a/source3/lib/privileges.c +++ b/source3/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; |