Skip to content

Commit

Permalink
Fix OR query in smb4.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr committed Jul 26, 2016
1 parent 521f649 commit 20d4da3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/freenas/usr/local/libexec/nas/generate_smb4_conf.py
Expand Up @@ -761,13 +761,12 @@ def add_domaincontroller_conf(client, smb4_conf):


def get_smb4_users(client):
# FIXME: test query and support for OR
return client.call('datastore.query', 'account.bsdusers', (
'OR', [
return client.call('datastore.query', 'account.bsdusers', [
['OR', [
('bsdusr_smbhash', '~', r'^.+:.+:[X]{32}:.+$'),
('bsdusr_smbhash', '~', r'^.+:.+:[A-F0-9]{32}:.+$'),
],
))
]],
])


def get_disabled_users(client):
Expand Down

0 comments on commit 20d4da3

Please sign in to comment.