diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-21 14:56:45 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-21 15:25:49 +1000 |
commit | 02e25b2a43ae02205a3412f862a1482d24b70aa4 (patch) | |
tree | 74032c74bcd05d0b3e21a23475d85f9d81231948 /source3/passdb/pdb_interface.c | |
parent | d963aaf73be22b0a027b3636c6c51292412b5931 (diff) | |
download | samba-02e25b2a43ae02205a3412f862a1482d24b70aa4.tar.gz |
s3-passdb: Allow pdb_sid_to_id to work on any SID
This is needed so that pdb_samba4 can map any SID during a provision.
At runtime, winbindd will be asked first, but this shortcut direct to the
ldb file makes it possible to set the permissions on the sysvol share at
provision time.
Andrew Bartlett
Diffstat (limited to 'source3/passdb/pdb_interface.c')
-rw-r--r-- | source3/passdb/pdb_interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index cdbb378e947..d24301ab97c 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -1429,6 +1429,11 @@ static bool pdb_default_sid_to_id(struct pdb_methods *methods, uint32_t rid; id->id = -1; + if (!sid_check_is_in_our_sam(sid)) { + /* Not our SID */ + return False; + } + mem_ctx = talloc_new(NULL); if (mem_ctx == NULL) { |