summaryrefslogtreecommitdiff
path: root/source3/groupdb/mapping_ldb.c
AgeCommit message (Collapse)AuthorFilesLines
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-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-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-03-28mapping_ldb: fix memory leak in group enumerationStefan Metzmacher1-1/+2
metze (This used to be commit 235c056a0ecbb70b21a2572d42c32067dd699988)
2008-01-15Fix "status used uninitialized" warnings.Jeremy Allison1-1/+1
Jeremy. (This used to be commit e57856fff2ef86481ac6770c7d010a26666d8bdd)
2008-01-09Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.Michael Adam1-7/+9
Michael (This used to be commit 6b2b9a60ef857ec31da5fea631535205fbdede4a)
2007-12-15s/sid_to_string/sid_to_fstring/Volker Lendecke1-6/+6
least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
2007-12-07Remove next_token - all uses must now be next_token_talloc.Jeremy Allison1-3/+6
No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-11-13Remove all pstring from groupdb/Jeremy Allison1-7/+10
Jeremy. (This used to be commit 6959c5c7e3e95604c66788b86d5789757e18cc36)
2007-11-01Patch 2 of 3 from Debian Samba packagers:Gerald (Jerry) Carter1-4/+4
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-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-12/+12
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-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-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 Tridgell1-53/+45
(This used to be commit 7c9a5c2a3f012a06e9550dc0de7df460c2fd943b)
2007-10-10r20090: Fix a class of bugs found by James Peach. EnsureJeremy Allison1-4/+2
we never mix malloc and talloc'ed contexts in the add_XX_to_array() and add_XX_to_array_unique() calls. Ensure that these calls always return False on out of memory, True otherwise and always check them. Ensure that the relevent parts of the conn struct and the nt_user_tokens are TALLOC_DESTROYED not SAFE_FREE'd. James - this should fix your crash bug in both branches. Jeremy. (This used to be commit 0ffca7559e07500bd09a64b775e230d448ce5c24)
2007-10-10r19927: Fix klokwork ID 4702Volker Lendecke1-1/+4
(This used to be commit 820a64af25799c19f1731a08b8e4651aea8a516b)
2007-10-10r19516: Fix the DN, to make searches using the domain as baseSimo Sorce1-9/+9
the DN must be rid,domain and not domain,rid Also use member and not memberOf for group members following conventions. (This used to be commit 7c0ea791d21d914e882b56a849766d966ce8ed1a)
2007-10-10r19073: mapping_dn can failVolker Lendecke1-2/+15
(This used to be commit d234f39c79e0e50f784826d0920ebd21cc9a283d)
2007-10-10r18938: fixed a group map bug reported by Jerry. The caller in mapping.cAndrew Tridgell1-4/+1
relies on appending to this list. Unfortunately this can't be tested using 'net groupmap' (This used to be commit a8d398edf0ce08b2a53342e80c2017f1805908d5)
2007-10-10r18912: we don't need the special case for comments now in theAndrew Tridgell1-5/+1
This also fixes comments in group mappings, as the code accidentially put in "ntName" in the comment field :-) (This used to be commit 7f1f5d6056da8ac55a41db54b68bf25967f81aaf)
2007-10-10r18875: The comment field can be emptyVolker Lendecke1-2/+6
(This used to be commit 6d5d7bf4bbcfee77853776af59e00d006fd86dc9)
2007-10-10r18870: - enable the ldb ldap backend properly based on configure tests forAndrew Tridgell1-2/+2
ldap - use ldb_global_init() instead of the backend specific ldb_tdb_init(). (This used to be commit a6c53e58616d7731a1df9af33f78ccf0c774296e)
2007-10-10r18868: just in case there is a disaster (with our code? never ...) use aAndrew Tridgell1-2/+7
rename to group_mapping.tdb.upgraded rather than an unlink when upgrading. So if we absolutely have to go back to the tdb, we can change mapping_ldb.o to mapping_tdb.o in Makefile.in and recover peoples group mappings. We could go one step futher and make the backend configurable. Any opinions on that? (This used to be commit 203fc0b03c7397f7339a917456cb1701ed592f32)
2007-10-10r18867: change the group mapping code to use ldb instead of tdbAndrew Tridgell1-0/+670
See the discussion of this on the samba-technical list (This used to be commit 4ad1436ceae0128e187222fce0fc79adb3049d3f)