summaryrefslogtreecommitdiffstats
path: root/source/groupdb
Commit message (Collapse)AuthorAgeFilesLines
* s3-groupdb: fix enum_aliasmem in ldb branch.Günther Deschner2009-06-121-1/+1
| | | | | | | | | | | It is totally valid to have an alias with no members. This fixes bug #6465. Tridge, please check. Found by RPC-SAMR torture test. Guenther
* Ignore 3.0 style invalid group mappings during upgrade to ldbVolker Lendecke2008-11-041-0/+7
|
* Merge branch 'v3-3-test' of ssh://jra@git.samba.org/data/git/samba into ↵Jeremy Allison2008-08-271-1/+7
|\ | | | | | | v3-3-test
| * ldb: Fix permissions of group_mapping.ldb.Andrew Tridgell2008-08-271-1/+7
| | | | | | | | | | This one fixes bug #5715 and CVE-2008-3789. (cherry picked from commit a94f44c49f668fcf12f4566777a668043326bf97)
* | Be explicit about setting perms for the ldb. Helps others who may use this api.Jeremy Allison2008-08-271-0/+3
|/ | | | Jeremy.
* fixed lots of places that paniced on a failed transaction_commit,Andrew Tridgell2008-08-131-2/+2
| | | | thinking it was a failure of a transaction cancel
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-1/+1
|
* Add fix from Simo for bug #5540 - missing code to substituteJeremy Allison2008-07-141-3/+6
| | | | | %u. Make this the same as other uses. Jeremy.
* Fix build warning.Günther Deschner2008-07-031-1/+1
| | | | | | Thanks to Thorkil Olesen. Guenther
* groupdb: make mapping_tdb compatible to mapping_ldbStefan Metzmacher2008-04-121-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
* groupdb: readd groupdb:backend parametric optionStefan Metzmacher2008-04-121-2/+20
| | | | | | | | This reverts c5adb92c020e38644baf1afc8fc570a518cd6307. The reason is that ldb doesn't work for cluster setups yet. metze
* mapping_tdb: fix enumeration of mappings.Michael Adam2008-04-041-1/+1
| | | | | | db->traverse_read returns the number of traversed object on success. Michael
* mapping.tdb: fix creation of entries with GROUP_PREFIXMichael Adam2008-04-041-1/+1
| | | | | | Macro is no expanded inside literal string. Michael
* Convert dbwrap_trans_delete to NTSTATUSVolker Lendecke2008-04-011-3/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Convert dbwrap_trans_store to NTSTATUSVolker Lendecke2008-04-011-3/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* mapping_tdb: use the correct sid for the key creationStefan Metzmacher2008-04-011-1/+1
| | | | metze
* mapping_tdb: use db_open_trans()Stefan Metzmacher2008-04-011-2/+2
| | | | metze
* Protect group_mapping.tdb ops with transactionsVolker Lendecke2008-04-011-16/+66
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* mapping_ldb: fix memory leak in group enumerationStefan Metzmacher2008-03-281-1/+2
| | | | metze
* Fix a segfaultVolker Lendecke2008-03-281-1/+1
|
* util_tdb: remove trivial and unused tdb_wipe().Michael Adam2008-03-261-1/+1
| | | | | | It has been replaced by tdb_wipe_all(). Michael
* util_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().Michael Adam2008-03-251-1/+1
| | | | | | | Replace all callers of traverse with this tdb_traverse_delete_fn() and don't export tdb_traverse_delete_fn() anymore. Michael
* Convert mapping_tdb.c to dbwrapVolker Lendecke2008-03-112-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.
* Clean up add_mapping_entry slightlyVolker Lendecke2008-03-111-9/+11
|
* Cleanup after pstring removalVolker Lendecke2008-03-111-1/+1
|
* Fix "status used uninitialized" warnings.Jeremy Allison2008-01-152-2/+2
| | | | Jeremy.
* Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.Michael Adam2008-01-092-10/+15
| | | | Michael
* Don't leak data.dptr on error path.Michael Adam2008-01-091-3/+5
| | | | Michael
* Fix flags in call of lookup_name() in pdb_default_create_alias().Michael Adam2007-12-171-1/+1
| | | | | | Use new flag LOOKUP_NAME_LOCAL. Michael
* s/sid_to_string/sid_to_fstring/Volker Lendecke2007-12-152-14/+14
| | | | least surprise for callers
* Replace sid_string_static with sid_to_stringVolker Lendecke2007-12-151-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.
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-152-3/+4
|
* Fix a segfaultVolker Lendecke2007-12-151-2/+2
| | | | sid_to_string still expects a fstring
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-072-12/+19
| | | | | No more temptations to use static length strings. Jeremy.
* Remove all pstring from groupdb/Jeremy Allison2007-11-133-86/+189
| | | | Jeremy.
* Patch 2 of 3 from Debian Samba packagers:Gerald (Jerry) Carter2007-11-012-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
* [crash fix] don't use already free'ed memoryStefan Metzmacher2007-10-241-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)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-184-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.
* r25405: Fix formatting as per metze's commentsGerald Carter2007-10-101-1/+1
|
* r25393: Removed unused variableGerald Carter2007-10-101-2/+0
|
* r25380: Remove the groupdb:mapping parameter as discussed in the following ↵Gerald Carter2007-10-101-14/+2
| | | | | | thread: http://lists.samba.org/archive/samba-technical/2007-June/053747.html
* r25024: Fix a whole bunch of Coverity bugsVolker Lendecke2007-10-101-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.
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-103-6/+3
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-103-3/+3
| | | | Jeremy.
* r23510: Tidy calls to smb_panic by removing trailing newlines. Print theJames Peach2007-10-101-1/+1
| | | | failed expression in SMB_ASSERT.
* r23367: check the "use mmap" option for ldb tooAndrew Tridgell2007-10-101-0/+4
|
* r23323: merged ldb changes from 3.0.26Andrew Tridgell2007-10-104-134/+192
|
* r22787: More from Karolin: Make map_unix_group() static to net_sam.c, add "netVolker Lendecke2007-10-101-64/+0
| | | | sam unmapunixgroup"
* r22786: Some cleanup by Karolin Seeger: Remove unused pdb_find_alias, and changeVolker Lendecke2007-10-101-16/+0
| | | | | | return values of some alias-releated pdb functions from BOOL to NTSTATUS Thanks :-)
* r22554: Fix an assumption that TALLOC_ARRAY(.., 0) != NULL.Volker Lendecke2007-10-101-2/+7
| | | | Volker