summaryrefslogtreecommitdiff
path: root/source3/groupdb
AgeCommit message (Collapse)AuthorFilesLines
2010-09-20s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.Günther Deschner1-4/+5
Guenther
2010-09-11s3-auth Change type of num_sids to uint32_tAndrew Bartlett1-3/+10
size_t is overkill here, and in struct security_token in the num_sids is uint32_t. This includes a change to the prototype of add_sid_to_array() and add_sid_to_array_unique(), which has had a number of consequnetial changes as I try to sort out all the callers using a pointer to the number of sids. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-26s3-build: use dbwrap.h only where needed.Günther Deschner1-0/+1
Guenther
2010-08-14s3:groupdb: allocate a gid after allocating a rid in pdb_default_create_alias()Michael Adam1-6/+7
Michael
2010-05-21s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett3-57/+57
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-1/+1
Well known rids don't really belong into an rpc header, just use the ones defined in security.idl. Guenther
2010-04-14s3: Fix a typoVolker Lendecke1-1/+1
2010-03-14s3: Fix some nonempty blank linesVolker Lendecke1-17/+15
2010-03-02s3: Fix some C++ warningsVolker Lendecke1-1/+1
2010-03-02s3: Fix an uninitialized variable warningVolker Lendecke1-1/+1
2010-03-01s3:groupmap revert to tdb storageSimo Sorce3-732/+268
Group mapping needs to be cluster aware, and this means using the tdb backend. Remove ldb group mapping as this is not cluster aware.
2010-02-27s3: Copy the mapping.c license header to mapping.hVolker Lendecke1-0/+22
We need some license header there. If this does incorrect copyright attributions, please correct this.
2010-01-10s3: Replace most calls to sid_append_rid() by sid_compose()Volker Lendecke1-2/+1
2009-06-08Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke4-8/+14
2009-06-07s3-groupdb: fix enum_aliasmem in ldb branch.Günther Deschner1-1/+1
It is totally valid to have an alias with no members. Tridge, please check. Found by RPC-SAMR torture test. Guenther
2009-05-21Don't steal when we know the ptr will be null. Thanks to Simo forJeremy Allison1-2/+1
pointing this out. Jeremy.
2009-05-21Revert the last two commits (fix for #6386). The actual problemJeremy Allison1-7/+9
was a bug in ldb in 3.2 which could return a freed pointer on ret != LDAP_SUCCESS. The main thing we must ensure is that we never talloc_steal until we know LDAP_SUCCESS was returned. Jeremy.
2009-05-21Ensure all possible uses of indirection through res are checked afterJeremy Allison1-6/+6
an ldb_search. Jeremy.
2009-05-21Attempt to fix bug #6386 - Samba Panic triggered by Sophos Control Centre.Jeremy Allison1-1/+1
Don't indirect a potentially null pointer. Jeremy.
2009-05-11Fix a bunch of compiler warnings about wrong format types.Jeremy Allison1-3/+3
Should make Solaris 10 builds look cleaner. Jeremy.
2009-04-23samba3/ldb: Update the ldb_dn API to match that of the Samba 4 LDB:Jelmer Vernooij1-4/+4
* ldb_dn_new() now takes an initial DN string * ldb_dn_string_compose() -> ldb_dn_new_fmt() * dummy ldb_dn_validate(), since LDB DNs in the current implementation are always valid if they could be created.
2009-04-23ldb/samba3: Support event context argument to ldb_init().Jelmer Vernooij1-1/+1
This argument is ignored (Samba3's LDB is synchronous) but having it there is useful for API compatibility with the LDB used by Samba 4 and available on some systems.
2009-02-07Fix a couple of memleaks in mapping_ldb.cVolker Lendecke1-35/+52
2009-01-21Replace ldb_search() with ldb_search_exp_fmt(), like in Samba 4.Jelmer Vernooij1-36/+12
2009-01-21Reorder arguments to ldb_search() to match what is in Samba 4.Jelmer Vernooij1-6/+6
2008-11-04Ignore 3.0 style invalid group mappings during upgrade to ldbVolker Lendecke1-0/+7
2008-10-18Use separate make variables for libutil and libcrypto.Jelmer Vernooij1-2/+2
2008-09-29s3:mapping_tdb: fix the del_aliasmem() functionStefan Metzmacher1-3/+2
We should not cancel the transaction, when we want to delete a key. metze
2008-08-27Be explicit about setting perms for the ldb. Helps others who may use this api.Jeremy Allison1-0/+3
Jeremy. (This used to be commit f0ea0f3502037db878238942ee0729f6940e0b01)
2008-08-27ldb: Fix permissions of group_mapping.ldb.Andrew Tridgell1-1/+7
This one fixes bug #5715 and CVE-2008-3789. (cherry picked from commit a94f44c49f668fcf12f4566777a668043326bf97) (This used to be commit 2eaf4ed62220246bcc1a9702166b0b4f381fdae3)
2008-08-13fixed lots of places that paniced on a failed transaction_commit,Andrew Tridgell1-2/+2
thinking it was a failure of a transaction cancel (This used to be commit 22dbe158ed62ae47bbcb41bba3db345294f75437)
2008-08-13first cut at adding full transactions for ctdb to samba3Andrew Tridgell1-1/+1
(This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
2008-07-14Add fix from Simo for bug #5540 - missing code to substituteJeremy Allison1-3/+6
%u. Make this the same as other uses. Jeremy. (This used to be commit c4a137e9789b06047ce53e5828fb5e1bb76aca06)
2008-07-03Fix build warning.Günther Deschner1-1/+1
Thanks to Thorkil Olesen. Guenther (This used to be commit 3130aa63fd64c08c1d8be8338d6490aeb12c234a)
2008-04-12groupdb: make mapping_tdb compatible to mapping_ldbStefan Metzmacher1-1/+1
mapping_ldb replaces the record if it already exists. I'm not sure if that a good thing, but for now both backends should provide the same behavior. metze (This used to be commit b313acdd31c97d032c3890764addf66c6b9a4d89)
2008-04-12groupdb: readd groupdb:backend parametric optionStefan Metzmacher1-2/+20
This reverts c5adb92c020e38644baf1afc8fc570a518cd6307. The reason is that ldb doesn't work for cluster setups yet. metze (This used to be commit 5f5d90ef76b969ecbe564399368a7450c4e3d155)
2008-04-04mapping_tdb: fix enumeration of mappings.Michael Adam1-1/+1
db->traverse_read returns the number of traversed object on success. Michael (This used to be commit 2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c)
2008-04-04mapping.tdb: fix creation of entries with GROUP_PREFIXMichael Adam1-1/+1
Macro is no expanded inside literal string. Michael (This used to be commit 872a3d3d38287ab9cbb260d05777481d94e03539)
2008-04-01Convert dbwrap_trans_delete to NTSTATUSVolker Lendecke1-3/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit dead193f46c2b19955ab3e5ac5ba343694f4858a)
2008-04-01Convert dbwrap_trans_store to NTSTATUSVolker Lendecke1-3/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit 5f4de856af1abe63b13059bbe1615cb5877770d0)
2008-04-01mapping_tdb: use the correct sid for the key creationStefan Metzmacher1-1/+1
metze (This used to be commit 0d221a3f0a948e173b22585b7833a5441d860a57)
2008-04-01mapping_tdb: use db_open_trans()Stefan Metzmacher1-2/+2
metze (This used to be commit 16d18df0d069aec645c41e38e8c926ccdaac9388)
2008-04-01Protect group_mapping.tdb ops with transactionsVolker Lendecke1-16/+66
Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit d702ed73c1b986ded9deaa3abed92c39d71949fc)
2008-03-28mapping_ldb: fix memory leak in group enumerationStefan Metzmacher1-1/+2
metze (This used to be commit 235c056a0ecbb70b21a2572d42c32067dd699988)
2008-03-28Fix a segfaultVolker Lendecke1-1/+1
(This used to be commit 40d1d64c6a2ae128eb3fce0e7f5351b0c5942f30)
2008-03-26util_tdb: remove trivial and unused tdb_wipe().Michael Adam1-1/+1
It has been replaced by tdb_wipe_all(). Michael (This used to be commit cdde2e4eaca51d51f036ad99d55df7bfd6535b03)
2008-03-25util_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().Michael Adam1-1/+1
Replace all callers of traverse with this tdb_traverse_delete_fn() and don't export tdb_traverse_delete_fn() anymore. Michael (This used to be commit d4be4e30cd8c3bdc303da30e42280f892a45a8c9)
2008-03-11Convert mapping_tdb.c to dbwrapVolker Lendecke2-292/+281
I know, this is not used anymore, but until ldb knows about ctdb which is blocked by the lack of transactions in ctdb, a tiny patch reactivating mapping_tdb.c might be needed for cluster setups. (This used to be commit 8e0fa453a3d0a2c997a935b6940796612c972708)
2008-03-11Clean up add_mapping_entry slightlyVolker Lendecke1-9/+11
(This used to be commit 38bb69cb316ba605a6d3a4454b986cb63ace3c21)
2008-03-11Cleanup after pstring removalVolker Lendecke1-1/+1
(This used to be commit 66d2a9c87411be88269bbb3a4d3c0a218a55be06)