summaryrefslogtreecommitdiffstats
path: root/source/groupdb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* r22509: Fix some memory corruption caused by calling free()Gerald Carter2007-10-101-6/+6
| | | | | on talloc()'d memory when adding/removing members from Local Groups.
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-101-12/+12
| | | | | | and fix all compiler warnings in the users metze
* r21974: make use of tdb_*_bystring() and string_term_tdb_data() in groupdb/Stefan Metzmacher2007-10-101-36/+17
| | | | | | to avoid creating the TDB_DATA struct from strings "by hand" metze
* r20090: Fix a class of bugs found by James Peach. EnsureJeremy Allison2007-10-103-9/+9
| | | | | | | | | | | | | 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.
* r19927: Fix klokwork ID 4702Volker Lendecke2007-10-101-1/+4
|
* r19516: Fix the DN, to make searches using the domain as baseSimo Sorce2007-10-101-9/+9
| | | | | | | the DN must be rid,domain and not domain,rid Also use member and not memberOf for group members following conventions.
* r19073: mapping_dn can failVolker Lendecke2007-10-101-2/+15
|
* r18938: fixed a group map bug reported by Jerry. The caller in mapping.cAndrew Tridgell2007-10-101-4/+1
| | | | | relies on appending to this list. Unfortunately this can't be tested using 'net groupmap'
* r18912: we don't need the special case for comments now in theAndrew Tridgell2007-10-101-5/+1
| | | | | This also fixes comments in group mappings, as the code accidentially put in "ntName" in the comment field :-)
* r18875: The comment field can be emptyVolker Lendecke2007-10-101-2/+6
|
* r18870: - enable the ldb ldap backend properly based on configure tests forAndrew Tridgell2007-10-101-2/+2
| | | | | | | ldap - use ldb_global_init() instead of the backend specific ldb_tdb_init().
* r18868: just in case there is a disaster (with our code? never ...) use aAndrew Tridgell2007-10-101-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?
* r18867: change the group mapping code to use ldb instead of tdbAndrew Tridgell2007-10-104-648/+1385
| | | | See the discussion of this on the samba-technical list
* r18703: Fix the annoying effect that happens when nscd is running:Günther Deschner2007-10-101-1/+16
| | | | | | | | | We usually do not get the results from user/group script modifications immediately. A lot of users do add nscd restart/refresh commands into their scripts to workaround that while we could flush the nscd caches directly using libnscd. Guenther
* r18271: Big change:Gerald Carter2007-10-101-7/+7
| | | | | | | | | | | * autogenerate lsa ndr code * rename 'enum SID_NAME_USE' to 'enum lsa_SidType' * merge a log more security descriptor functions from gen_ndr/ndr_security.c in SAMBA_4_0 The most embarassing thing is the "#define strlen_m strlen" We need a real implementation in SAMBA_3_0 which I'll work on after this code is in.
* r17669: Remove RID algorithm support from unmapped users and groupsGerald Carter2007-10-101-1/+1
| | | | when using smbpasswd
* r17554: CleanupVolker Lendecke2007-10-101-531/+450
|
* r17550: Fix a few bugs in the tdb_multikey code. Thanks to tridge for ↵Volker Lendecke2007-10-101-4/+4
| | | | | | | | pointing them out. Volker
* r17470: This is the group mapping rewrite announced a few days ago. I'm ↵Volker Lendecke2007-10-101-293/+473
| | | | | | | | | | | | | | | | afraid it's more than 1000 lines of patch, but doing it in smaller pieces is hardly possible. Anybody interested please look over this. The patch is not really interesting, just look at the new groupdb/mapping.c file. Jerry, one entry for the 3.0.24 release notes: smbd will refuse to start if we have overlapping mappings in group_mapping.tdb. With the old db a unix gid can be mapped to two different SIDs. This will be refused with the new code. Volker
* r17468: To minimize the diff later on, pre-commit some changes ↵Volker Lendecke2007-10-101-113/+103
| | | | | | | | independently: Change internal mapping.c functions to return NTSTATUS instead of BOOL. Volker
* r17465: Get rid of add_initial_entry. In the two places it was called in it ↵Volker Lendecke2007-10-101-25/+0
| | | | | | | | seemed a bit pointless to me. Volker
* r17463: A bit of cleanup work:Volker Lendecke2007-10-101-68/+4
| | | | | | | | | | | | Remove some unused code: pdb_find_alias is not used anymore, and nobody I think has ever used the pdb_nop operations for group mapping. smbpasswd and tdb use the default ones and ldap has its own. Make the functions pdb_getgr* return NTSTATUS instead of BOOL. Nobody right now really makes use of it, but it feels wrong to throw away information so early. Volker
* r17451: Change pdb_getgrsid not to take a DOM_SID but a const DOM_SID * as anVolker Lendecke2007-10-101-13/+13
| | | | | | argument. Volker
* r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | | | does not have the timeout argument in Samba4. Add a new routine tdb_lock_bystring_with_timeout. Volker
* r14634: Many bug fixes thanks to train rides and overnight stays in airportsGerald Carter2007-10-101-0/+1
| | | | | | | | | | | | | | | | | | * Finally fix parsing idmap uid/gid ranges not to break with spaces surrounding the '-' * Allow local groups to renamed by adding info level 2 to _samr_set_aliasinfo() * Fix parsing bug in _samr_del_dom_alias() reply * Prevent root from being deleted via Samba * Prevent builting groups from being renamed or deleted * Fix bug in pdb_tdb that broke renaming user accounts * Make sure winbindd is running when trying to create the Administrators and Users BUILTIN groups automatically from smbd (and not just check the winbind nexted groups parameter value). * Have the top level rid allocator verify that the RID it is about to grant is not already assigned in our own SAM (retries up to 250 times). This fixes passdb with existing SIDs assigned to users from the RID algorithm but not monotonically allocating the RIDs from passdb.