s3:gencache: Allow to open gencache as read-only
authorAndreas Schneider <asn@samba.org>
Wed, 6 May 2020 15:10:51 +0000 (17:10 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 May 2020 13:11:37 +0000 (13:11 +0000)
commitcb50ee7a4239e2e13b1c621cd7a3826ff123f84a
tree60729b100a18a1296b4070fafacb068bd6dbe09c
parent247e406e9859ab223458a9b7fcdad746a64db8af
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

(cherry picked from commit 04f0c45475de383a0be4ca355ab9aa7784e61c27)
source3/lib/gencache.c