Implement 'net groupmap set' and 'net groupmap cleanup'.
commit69879ceffa587ccf2bf59e1c716424e1d20a7f68
authorVolker Lendecke <vlendec@samba.org>
Thu, 26 Feb 2004 11:34:33 +0000 (26 11:34 +0000)
committerVolker Lendecke <vlendec@samba.org>
Thu, 26 Feb 2004 11:34:33 +0000 (26 11:34 +0000)
tree1589b78c4c376de65dd97351ad860179231c6d3c
parenta3a15be5a2ae419992af004425592cca6796edcd
Implement 'net groupmap set' and 'net groupmap cleanup'.

I was rather annoyed by the net groupmap syntax, I could never get it
right.

net groupmap set "domain admins" domadm

creates a mapping,

net groupmap set "domain admins" -C "Comment" -N "newntname"

should also do what you expect.

net groupmap cleanup

solves a problem I've had two times now: Our SID changed, and a user's primary
group was mapped to a SID that is not ours. net groupmap cleanup removes all
mappings that are not from our domain sid.

Volker
source/utils/net.c
source/utils/net.h
source/utils/net_groupmap.c