s3:gencache: Allow to open gencache as read-only
commit04f0c45475de383a0be4ca355ab9aa7784e61c27
authorAndreas Schneider <asn@samba.org>
Wed, 6 May 2020 15:10:51 +0000 (6 17:10 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 15 May 2020 14:40:32 +0000 (15 14:40 +0000)
tree2f3862f23d128660c3b3eaf79960b16f20327846
parenta15bd5493b696c66c6803d8ca65bc13f1cfcdf0a
s3:gencache: Allow to open gencache as read-only

This allows client tools to access the cache for ready-only operations
as a normal user.

Example:
    net ads status

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14370

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri May 15 14:40:32 UTC 2020 on sn-devel-184
source3/lib/gencache.c