summaryrefslogtreecommitdiff
path: root/source3/utils/net_sam.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-20s3-build: only include smbldap.h where needed.Günther Deschner1-0/+1
Guenther
2010-09-11s3-privs Hide the bitmap-based grant_privilege and revoke_privilegeAndrew Bartlett1-7/+6
The new wrappers avoid anything but the core privileges code dealing with the bitmap values directly. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11s3-privs Make privilege_enum_sids() take an LUID, not a bitmapAndrew Bartlett1-3/+5
This moves one more privileges call away from direct bitmap manipuation. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11s3-privs Remove a pointer from grant_privilege()Andrew Bartlett1-1/+1
Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11s3-privs Remove a pointer indirection from revoke_privilege()Andrew Bartlett1-1/+1
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11libcli/security Don't export privs[] as a global variableAndrew Bartlett1-4/+2
Instead, provide access functions for the LSA and net sam callers for the information they need. They still only enumerate the first 8 privileges that have traditionally been exposed. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11s3-privs Further changes to remove SE_PRIVAndrew Bartlett1-3/+3
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-14s3:net sam provision: compose sid before getting uid for GuestMichael Adam1-2/+2
Michael
2010-08-14s3:net sam provision: allocate the uid after composing the sid for AdministratorMichael Adam1-6/+7
Michael
2010-08-06s3-passdb: include samr.h where needed.Günther Deschner1-0/+1
Guenther
2010-05-21s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett1-19/+19
This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18s3-rpc_misc: clean out include/rpc_misc.h.Günther Deschner1-5/+5
Well known rids don't really belong into an rpc header, just use the ones defined in security.idl. Guenther
2010-03-28s3: Slightly simplify unmap_unix_groupVolker Lendecke1-4/+1
2010-01-19s3 net: Fix compile warningsKai Blin1-36/+68
2010-01-19s3 net/i18n: Use only one spelling for "Usage:"Kai Blin1-21/+21
2010-01-18s3/net: split up some printable stings to ease i18nBjörn Jacke1-26/+26
If we put strings like "Usage:" into separate _() macros and not the whole "Usage:..." string we can cover much more messages by only one single translation. The drawback is that the message in the sources looks less pretty.
2009-10-28s3-net: acct_flags are uint32_t in net_sam_set_userflag().Günther Deschner1-1/+1
Guenther
2009-08-11s3 net: i18n support for net samKai Blin1-318/+349
2009-07-15s3: fix build of pdbedit and net_sam. Guenther, please check. Signed-off-by: ↵Bo Yang1-4/+4
Bo Yang <boyang@samba.org>
2009-06-28Turn the pdb_rid_algorithm into a capabilities call that returns flagsVolker Lendecke1-3/+3
2009-06-17s3-net: Fix Bug #6328: support "net sam rights grant/revoke" with multiple ↵David Markey1-18/+24
rights. David Signed-off-by: Günther Deschner <gd@samba.org>
2009-06-17s3-net: Fix Bug #6328: allow multiple rights in "net sam rights grant".Günther Deschner1-10/+14
Guenther
2009-06-09Make "net sam [add|del]mem" work for domain groupsVolker Lendecke1-0/+24
2009-06-09Implement "net sam deletedomaingroup"Volker Lendecke1-0/+53
2009-06-08Make "net ads listmem" also work for domain groupsVolker Lendecke1-14/+34
2009-06-08Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke1-1/+2
2009-06-07Add "net sam createdomaingroup"Volker Lendecke1-0/+36
2009-05-11Fix a bunch of compiler warnings about wrong format types.Jeremy Allison1-7/+7
Should make Solaris 10 builds look cleaner. Jeremy.
2009-03-07Shape up pdb_search a bit by making it a talloc ctx with a destructorVolker Lendecke1-6/+10
2008-11-06Make us clean under valgrind --leak-check=full by using ↵Jeremy Allison1-1/+1
talloc_autofree_context() instead of NULL. Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should be deleted when their parent context is deleted, so freeing them at some arbitrary point later will be a double-free. Jeremy.
2008-06-17net sam: fix typo in commentMichael Adam1-1/+1
Michael (This used to be commit b9f6904044889328ded229b7ff04d31218f4fef8)
2008-06-17net sam: fix typo in debug message.Michael Adam1-1/+1
Michael (This used to be commit 6d7f64c3481d3aa7ec6b0d468f3d6218f62cd92e)
2008-06-10net: Rename functable3 to functable, get rid of old functablesKai Blin1-10/+10
(This used to be commit bb7c5fc4ec77db4073d3beccf12af12910b6bd07)
2008-06-10net: Make "net sam" use functable3Kai Blin1-110/+351
(This used to be commit b161fb7cfe3d0f5c2e853d5759420817c6ed7c0f)
2008-05-20net: Use true/false instead of True/False.Kai Blin1-3/+3
(This used to be commit a8b567aac3b0e39cfe67fb97167b10312ca5e73a)
2008-05-10net: more whitespace cleanupKai Blin1-9/+9
(This used to be commit ef0184d580500734fc7af51e1c790b075180a3d0)
2008-05-10net: Remove globalsKai Blin1-62/+83
(This used to be commit 1e9319cf88b65a2a8d4f5099a1fe5297e405ed2e)
2008-04-10objectclass -> objectClassKarolin Seeger1-3/+3
Karolin (This used to be commit b865b8a79afd8f3b43bb3adcdcbcbca623dc76a2)
2007-12-26Properly destroy the pdb search objectVolker Lendecke1-1/+1
(This used to be commit 514cf532248723e7f775dc5f8f2e6936e02b7a1c)
2007-12-17Make usage message for net sam rights list a little more precise.Michael Adam1-1/+1
Michael (This used to be commit d466a5136d5151e2a3cae7464cb346f0db650554)
2007-12-17Fix flags in all callers of lookup_name() in net_sam.c.Michael Adam1-16/+16
Michael (This used to be commit 6d0db17a9e255235d40eabc63e91c9f5d4febcde)
2007-12-15Replace sid_string_static with sid_string_tosVolker Lendecke1-5/+4
In utils/ I was a bit lazy... (This used to be commit 60e830b0f4571bd5d9039f2edd199534f2a4c341)
2007-12-15Use sid_string_talloc where we have a tmp talloc ctxVolker Lendecke1-5/+10
(This used to be commit 0a911d38b8f4be382a9df60f9c6de0c500464b3a)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-2/+2
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25040: Add "net sam rights"Volker Lendecke1-4/+136
Not strictly in the SAM, but close enough. This command acts directly on the local tdb, no running smbd required This also changes the root-only check to a warning (This used to be commit 0c5657b5eff60e3c52de8fbb4ce9346d0341854c)
2007-10-10r25019: Fix coverity bug #105, run #332. Use of uninitialized variable.Jeremy Allison1-6/+8
Jeremy. (This used to be commit a58de8cee51c1396a2607ee743c92d58d7703547)
2007-10-10r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke1-19/+19
This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker (This used to be commit 6585ea2cb7f417e14540495b9c7380fe9c8c717b)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell1-2/+1
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23323: merged ldb changes from 3.0.26Andrew Tridgell1-0/+2
(This used to be commit 7c9a5c2a3f012a06e9550dc0de7df460c2fd943b)