s4-samr: Rework GetGroupsForUser to use memberOf
authorAndrew Bartlett <abartlet@samba.org>
Wed, 8 Jun 2016 04:49:01 +0000 (16:49 +1200)
committerGarming Sam <garming@samba.org>
Thu, 16 Jun 2016 02:40:13 +0000 (04:40 +0200)
commit1a5f0c7a7fa11447fecc87c3c7e0aa0a3f22162a
tree6fbd7e7798e81a559632fa9587cb4bec41ff031d
parentd660e66a4a9fd405f45625142420937f4fafe3d0
s4-samr: Rework GetGroupsForUser to use memberOf

By reading the SID values from the memberOf links, we avoid an un-indexed search on
the member attribute.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/rpc_server/samr/dcesrv_samr.c