summaryrefslogtreecommitdiff
path: root/source3/groupdb
AgeCommit message (Collapse)AuthorFilesLines
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)
2008-01-15Fix "status used uninitialized" warnings.Jeremy Allison2-2/+2
Jeremy. (This used to be commit e57856fff2ef86481ac6770c7d010a26666d8bdd)
2008-01-09Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.Michael Adam2-10/+15
Michael (This used to be commit 6b2b9a60ef857ec31da5fea631535205fbdede4a)
2008-01-09Don't leak data.dptr on error path.Michael Adam1-3/+5
Michael (This used to be commit d14de0692c623ff07dada45a3d7bec03ceca2b7e)
2007-12-17Fix flags in call of lookup_name() in pdb_default_create_alias().Michael Adam1-1/+1
Use new flag LOOKUP_NAME_LOCAL. Michael (This used to be commit 280d6cb6c8e834ce0a08769e9187b0f40321716f)
2007-12-15s/sid_to_string/sid_to_fstring/Volker Lendecke2-14/+14
least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
2007-12-15Replace sid_string_static with sid_to_stringVolker Lendecke1-1/+2
This adds 28 fstrings on the stack, but I think an fstring on the stack is still far better than a static one. (This used to be commit c7c885078be8fd3024c186044ac28275d7609679)
2007-12-15Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2-3/+4
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-15Fix a segfaultVolker Lendecke1-2/+2
sid_to_string still expects a fstring (This used to be commit 1f352cdd1976ad36484e146165df585b88ec5527)
2007-12-07Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2-12/+19
No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-11-13Remove all pstring from groupdb/Jeremy Allison3-86/+189
Jeremy. (This used to be commit 6959c5c7e3e95604c66788b86d5789757e18cc36)
2007-11-01Patch 2 of 3 from Debian Samba packagers:Gerald (Jerry) Carter2-5/+5
The point is doing the following associations: - non discardable state data (all TDB files that may need to be backed up) go to statedir - shared data (codepage stuff) go to codepagedir The patch *does not change* the default location for these directories. So, there is no behaviour change when applying it. The main change is for samba developers who have to think when dealing with files that previously pertained to libdir whether they: - go in statedir - go in codepagedir - stay in libdir (This used to be commit d6cdbfd875bb2653e831d314726c3240beb0a96b)
2007-10-24[crash fix] don't use already free'ed memoryStefan Metzmacher1-2/+2
(found by "make valgrindtest" and my "start winbindd on make test" patch) metze (cherry picked from commit fe21e48489852720a05b305b251e4f5cbb200f7a) (cherry picked from commit 26d8a1ad20c10da495970c584983fbd261b4946e) (This used to be commit a128a8805e172738334ec6854548f138c335058b)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison4-42/+42
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-10r25405: Fix formatting as per metze's commentsGerald Carter1-1/+1
(This used to be commit 45fa393358926117e0209970414678547d8504a6)
2007-10-10r25393: Removed unused variableGerald Carter1-2/+0
(This used to be commit 11894a62e3a41f3387fac1a578258321333085ac)
2007-10-10r25380: Remove the groupdb:mapping parameter as discussed in the following ↵Gerald Carter1-14/+2
thread: http://lists.samba.org/archive/samba-technical/2007-June/053747.html (This used to be commit c5adb92c020e38644baf1afc8fc570a518cd6307)
2007-10-10r25024: Fix a whole bunch of Coverity bugsVolker Lendecke1-0/+1
The callers of get_domain_group_from_sid() with some justification expected map->gid to be initialized when get_domain_group_from_sid returned True. (This used to be commit bc8b74dbfec965ede7bf45118d1a863b28d000fd)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell3-6/+3
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison3-3/+3
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23510: Tidy calls to smb_panic by removing trailing newlines. Print theJames Peach1-1/+1
failed expression in SMB_ASSERT. (This used to be commit 171dc060e2a576d724eed1ca65636bdafffd7713)
2007-10-10r23367: check the "use mmap" option for ldb tooAndrew Tridgell1-0/+4
(This used to be commit 15345bbc73b28d07c069fde33d3d4c1f21f107d3)
2007-10-10r23323: merged ldb changes from 3.0.26Andrew Tridgell4-134/+192
(This used to be commit 7c9a5c2a3f012a06e9550dc0de7df460c2fd943b)
2007-10-10r22787: More from Karolin: Make map_unix_group() static to net_sam.c, add "netVolker Lendecke1-64/+0
sam unmapunixgroup" (This used to be commit 55e2f35fad8bda3ff2c2ace5323ddeaee87d783e)