idmap_autorid: Do a readonly attempt before looking at the tdc cache
authorVolker Lendecke <vl@samba.org>
Fri, 2 Dec 2016 12:14:17 +0000 (12:14 +0000)
committerVolker Lendecke <vl@samba.org>
Fri, 16 Dec 2016 16:38:20 +0000 (17:38 +0100)
commit4cfd824fd3f4d4deb65b291e6e98bb4044317c52
tree145ef2312f865b5b812f9310e39b70773ba62f8f
parent941d235f70b7b1c7d9a887a3325ccf9a681dba80
idmap_autorid: Do a readonly attempt before looking at the tdc cache

If autorid.tdb already has a mapping for a domain range, we can just
return that. Even if the volatile tdc cache at this point does not have
the domain, we should return a correct mapping.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/idmap_autorid.c