diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-02 14:53:26 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-01-05 11:10:14 +0100 |
commit | 80d1ca6a8d05f0e2f1e05550d6db758ff3c2eb97 (patch) | |
tree | 016b541bca3f181fd1098a02ff3ab6afe389cc90 | |
parent | c8f755ad99cc6afd93c3aaffef583f736b9cf448 (diff) | |
download | samba-80d1ca6a8d05f0e2f1e05550d6db758ff3c2eb97.tar.gz |
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
(cherry picked from commit f2535d7b94cfc6bec05127576186d93531304005)
-rw-r--r-- | source/winbindd/idmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/winbindd/idmap.c b/source/winbindd/idmap.c index aaba7e53eed..ca07f230ab0 100644 --- a/source/winbindd/idmap.c +++ b/source/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; } |