1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-23 20:59:10 +03:00
Commit Graph

30 Commits

Author SHA1 Message Date
3a67865169 r6080: Port some of the non-critical changes from HEAD to 3_0. The main one is the
change in pdb_enum_alias_memberships to match samr.idl a bit closer.

Volker
2007-10-10 10:56:20 -05:00
0d38d5f610 r5918: Fix typo. 2007-10-10 10:56:08 -05:00
2556e6570e r5234: Do not use the "Local Unix Group"-default description for all kinds of
group-mappings.

Guenther
2007-10-10 10:55:34 -05:00
0760d07b4c r4285: Allow -v or -l for displaying verbose groupmap-listing as well as
"verbose".

Guenther
2007-10-10 10:53:41 -05:00
2508d4ed1e r3566: Completely replace the queryuseraliases call. The previous implementation does
not exactly match what you would expect.

XP workstations during login actually do this, so we should better become a
bit more correct. The LDAP query issued is not really fully optimal, but it is
a lot faster and more correct than what was there before. The change in
passdb.h makes it possible that queryuseraliases is done with a single ldap
query.

Volker
2007-10-10 10:53:09 -05:00
7f161702fa r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid of
'..' from all #include preprocessor commands.   This fixes bugzilla #1880
where OpenVMS gets confused about the '.' characters.
2007-10-10 10:52:55 -05:00
3677c6a8f6 r1720: Show correct help for net groupmap commands.
Guenther
2007-10-10 10:52:19 -05:00
b393469d95 r116: volker's patch for local group and group nesting 2007-10-10 10:51:10 -05:00
eb4d4faff8 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
-
19b30334a7 Fix success message for net groupmap modify
Volker
-
e1fac713e2 fix some warnings found by the Sun C compiler -
c8bfde5be9 Fix from gregory@networksentry.co.za, don't clobber the comment if it
exists.
Jeremy.
-
bc8a181477 Fix error message when calling namedtogid() fails adding a group map
entry.  Bug #431.
-
3aed9c8a4a Don't ask, it's too embarrassing :-)
Actually let the user explicitly specify a rid...

Volker
-
7ce94d39ad When doing 'net groupmap add', default to algorithmic mapping for the rid.
Volker
-
517bb4d0df Fix memleak -
b7760faedc (fixing bug in my last commit)
This isn't C++ - start your code *after* all the variables are declared...

Andrew Bartlett
-
477f2d9e39 This removes the StrCaseCmp() stuff from 'net idmap' and 'net
groupmap'.  The correct way to implement this stuff is via a function
table, as exampled in all the other parts of 'net'.

This also moves the idmap code into a new file.  Volker, is this your
code?  You might want to put your name on it.

Andrew Bartlett
-
e341e7c49f Ok, this patch removes the privilege stuff we had in, unused, for some time.
The code was nice, but put in the wrong place (group mapping) and not
supported by most of the code, thus useless.

We will put back most of the code when our infrastructure will be changed
so that privileges actually really make sense to be set.

This is a first patch of a set to enhance all our mapping code cleaness and
stability towards a sane next beta for 3.0 code base

Simo.
-
43ca4b8a84 Patch from "Alex Deiter" <tiamat@komi.mts.ru> to fix incorrect error check.
Jeremy.
-
82f024723c fix and if () that should be an 'else if()' -
d9277bd064 groupmap delet should take a name or a SID -
fdacad185c allow the unix group in a mapping to be changed; doesn't work with LDAP right now but should be ok with tdb's -
541f40a144 don't reset the group type unless specified -
665d21b865 default new groups to domain groups -
b6ccdb8f7b support referencing group by sid in all operations; allow group name to be changed -
43942398af removing some ifdef'd out code -
1e5fe87d75 Fixup a few typos for Jerry.
Jeremy.
-
e5f6676639 * fix segfault when no vfs objects defined
* add "sid=..." to 'net groupmap add'
-
f2fd0ab41f Merging smbgroupedit into 'net groupmap'. Not entirely done.
Need to check on where the privilege code is sitting
and update the docs.

Examples:

root# bin/net help groupmap
net groupmap add
  Create a new group mapping
net groupmap modify
  Update a group mapping
net groupmap delete
  Remove a group mapping
net groupmap list
  List current group map

# bin/net groupmap add
Usage: net groupmap add rid=<int> name=<string> type=<domain|local|builtin> [comment=<string>]

# bin/net groupmap delete
Usage: net groupmap delete name=<string|SID>

# bin/net groupmap modify
Usage: net groupmap modify name=<string|SID> [comment=<string>] [type=<domain|local>
-