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)
commitd9819ec090bb533b79a257daa3461045c2422c05
tree7569115240c6727ef4590b1bd854650a2093c207
parente692b991d1c706261bf8efe16d9f8eedae8b1b3d
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
(This used to be commit eb4d4faff8c14e999f414ca5b6e8c25a558859c8)
source3/utils/net.c
source3/utils/net.h
source3/utils/net_groupmap.c