Implement 'net groupmap set' and 'net groupmap cleanup'.
authorVolker Lendecke <vlendec@samba.org>
Thu, 26 Feb 2004 11:29:56 +0000 (11:29 +0000)
committerVolker Lendecke <vlendec@samba.org>
Thu, 26 Feb 2004 11:29:56 +0000 (11:29 +0000)
commiteb4d4faff8c14e999f414ca5b6e8c25a558859c8
treebedc5b41774ffc9154d8d7086f660384e3102e9c
parentf6bb3304fc5ef298a921b9ee5ad2f6444b0e72bc
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. I'd like to have some feedback on the usability
of this.

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