rpcclient: Ask for minimal permissions for SID and name lookups
commit00ab6349e220ee9976eaec9ab599458925a16010
authorChristof Schmitt <cs@samba.org>
Mon, 9 Mar 2020 21:21:41 +0000 (9 14:21 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 11 Mar 2020 08:09:32 +0000 (11 08:09 +0000)
tree12b5223ec637bb4fe099f0fc6889be2fbdc73c53
parent12596a3a8d057bd0afad530195ae71f55499bebf
rpcclient: Ask for minimal permissions for SID and name lookups

The RPC calls to lookup SIDS and names only require the
POLICY_LOOKUP_NAMES permission. Only ask for that instead of the
MAXIMUM_ALLOWED flag. This allows these calls to work against a NetApp
that does not accept MAXIMUM_ALLOWED (see bugzilla 11105).

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpcclient/cmd_lsarpc.c