diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-02 14:53:26 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-02 15:00:05 +0100 |
commit | 76d53e7648869bbdc83be1e07941467019b96321 (patch) | |
tree | e0bc5267066b18cb8319a1d92f6bcc67147478df /source3/winbindd | |
parent | 13248e8917015435c8979535531484344e3f2262 (diff) | |
download | samba-76d53e7648869bbdc83be1e07941467019b96321.tar.gz samba-76d53e7648869bbdc83be1e07941467019b96321.tar.bz2 samba-76d53e7648869bbdc83be1e07941467019b96321.zip |
Alternative fix for 45db33e73 and 0d443ae7931
Simo is right, we need to ask passdb first. At least this fixes a nasty to find
NT_STATUS_ACCESS_DENIED problem in the build farm for the test run I just did
on host "opi".
Michael, can you re-check if this also fixes the error you found, leading to
the two fixes?
Thanks,
Volker
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/idmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index aaba7e53ee..ca07f230ab 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -741,7 +741,8 @@ NTSTATUS idmap_backends_unixid_to_sid(const char *domname, struct id_map *id) dom = idmap_init_passdb_domain(NULL); if ((dom != NULL) - && NT_STATUS_IS_OK(dom->methods->unixids_to_sids(dom, maps))) { + && NT_STATUS_IS_OK(dom->methods->unixids_to_sids(dom, maps)) + && id->status == ID_MAPPED) { return NT_STATUS_OK; } |