summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* r23741: Combined merge of 23726, 23727 and 23731 from 3_0:Volker Lendecke2007-07-071-2/+10
| | | | | | | | | | | | | | | | | | | | | 23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The next checkin will pull this up to srvstr_get_path. At that point we can get more independent of the inbuf, the base_ptr in pull_string will only be used to satisfy UCS2 alignment constraints. 23731: Explicitly pass down FLAGS2 to srvstr_get_path. Next step is to remove the bug that in the trans2 code we use the inbuf as the base pointer to decide whether we need ucs2 alignment where we need to use the beginning of the params buffer 23731: Forgot one reference to inbuf
* r23673: Check for integer wrap on incoming data.Jeremy Allison2007-07-021-0/+6
| | | | Jeremy.
* r23669: Move a variable into the only block where it is used.Michael Adam2007-07-011-1/+1
|
* r23668: When creating a new string value, win2k regedit deliversMichael Adam2007-06-301-8/+22
| | | | | | | | | | | one byte of data despite characters being two-byte. This modifies registry_pull_value, to change the data to the correct two-byte version of the empty string, (as delivered by winxp), when only one byte of data is received. Michael
* r23665: Remove two unneeded global variablesVolker Lendecke2007-06-301-13/+6
|
* r23662: According to simo, check_dos_char is neededVolker Lendecke2007-06-292-1/+52
|
* r23660: Anybody know what check_dos_char() was used for? It wasn't called atVolker Lendecke2007-06-292-52/+1
| | | | all, so it's gone. With it 8k bss went away.
* r23659: file_pload is not used outside of util_file.cVolker Lendecke2007-06-291-1/+1
|
* r23658: One pstring a day....Volker Lendecke2007-06-291-16/+39
| | | | | This one was particularly tasty, it was a static one. So 1k less footprint per process.
* r23641: Put check for forbidden values in smbconf into a function.Michael Adam2007-06-281-0/+22
| | | | | | | (This will be used in a next step to prevent storing these values in reg_smbconf.c.) Michael
* r23639: Eliminate trailing whitespaces in the new tdb_validate functions...Michael Adam2007-06-271-8/+7
| | | | Michael
* r23610: Move some winbindd_cache specific flags and actions Michael Adam2007-06-261-7/+1
| | | | | | | | back to winbindd_cache.c. The generic mechanism should open the cache tdb readonly and with default flags. Michael
* r23600: First step in abstracting the winbindd cache validation Michael Adam2007-06-251-0/+203
| | | | | | | code into a generic tdb validation code. In lib/util_tdb.c for a start. Michael
* r23595: One pstring a day...Volker Lendecke2007-06-241-7/+19
|
* r23594: Fix parsing of local pids if cluster support is compiled in but noVolker Lendecke2007-06-241-0/+4
| | | | cluster is used
* r23590: Fix realloc leak on failure case from Jim Meyering <jim@meyering.net>.Jeremy Allison2007-06-221-1/+5
| | | | Jeremy.
* r23576: Fix some confusion between HAVE_BROKEN_GETGROUPS and USE_BSD_SETGROUPS.James Peach2007-06-211-4/+4
|
* r23572: Ensure we obey Unicode consortium restrictions. CodeJeremy Allison2007-06-211-15/+22
| | | | | based on patch from MORIYAMA Masayuki <moriyama@miraclelinux.com>. Jeremy.
* r23569: Also dump fd_event in dump_event_list().Günther Deschner2007-06-211-1/+10
| | | | Guenther
* r23566: Fix the sys_bsd_setgroups function. The actual workaround was inactive.Michael Adam2007-06-211-3/+1
| | | | Michael
* r23562: Add dump_event_list() for debugging the event list.Günther Deschner2007-06-211-0/+24
| | | | Guenther
* r23550: Add more UNIX error -> NT status mappings.Jeremy Allison2007-06-201-0/+25
| | | | Jeremy.
* r23528: Two changes to make the valgrind massif (heap profiler) output readable:Volker Lendecke2007-06-171-1/+1
| | | | | | | | | | | | | Remove the allocated inbuf/output. In async I/O we copy the buffers explicitly now, so NewInBuffer is called exactly once. This does not reduce memory footprint, but removes one of the larger chunks that clobber the rest of the massif output In getgroups_unix_user on Linux 2.6 we allocated 64k groups x 4 bytes per group x 2 (once in the routine itself and once in libc) = 512k just to throw it away directly again. This reduces it do a more typical limit of 32 groups per user. We certainly cope with overflow fine if 32 is not enough. Not 100% sure about this one, a DEVELOPER only thing?
* r23518: Remove the silly assumption that string_replace requires a pstring.Volker Lendecke2007-06-161-18/+42
| | | | | | | | Jeremy, I am always very confused about the different length arguments in convert_string and friends. Can you take a look at the change in string_replace and verify it's ok? Thanks! While at it, remove the pstring limit for strhasupper and strhaslower.
* r23511: Merge branches/SAMBA_3_0@23510James Peach2007-06-158-31/+28
| | | | | Tidy calls to smb_panic by removing trailing newlines. Print the failed expression in SMB_ASSERT.
* r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.cMichael Adam2007-06-151-0/+7
| | | | | | (To be used in other place in subsequent commit.) Michael
* r23485: This checkin consists mostly of refactorings in preparation of theMichael Adam2007-06-146-602/+828
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | activation of global registry options in loadparm.c, mainly to extract functionality from net_conf.c to be made availabel elsewhere and to minimize linker dependencies. In detail: * move functions registry_push/pull_value from lib/util_reg.c to new file lib/util_reg_api.c * create a fake user token consisting of builtin administrators sid and se_disk_operators privilege by hand instead of using get_root_nt_token() to minimize linker deps for bin/net. + new function registry_create_admin_token() in new lib/util_reg_smbconf.c + move dup_nt_token from auth/token_util.c to new file lib/util_nttoken.c + adapt net_conf.c and Makefile.in accordingly. * split lib/profiles.c into two parts: new file lib/profiles_basic.c takes all the low level mask manipulation and format conversion functions (se_priv, privset, luid). the privs array is completely hidden from profiles.c by adding some access-functions. some mask-functions are not static anymore. Generally, SID- and LUID-related stuff that has more dependencies is kept in lib/profiles.c * Move initialization of regdb from net_conf.c into a function registry_init_regdb() in lib/util_reg_smbconf.c. Michael
* r23476: Merge branches/SAMBA_3_0@23475James Peach2007-06-131-2/+2
| | | | | Fix the prototype for sys_broken_setgroups and log *BSD group list truncation a bit more verbosely.
* r23473: Merge Merge branches/SAMBA_3_0@23470James Peach2007-06-131-2/+8
| | | | | | Fix supplementary group list truncation for *BSD. We need to pass the correct group list length and only truncate to NGROUPS_MAX if it is too long.
* r23436: Merge (a considerable amount of) r19991 from 3_0:Michael Adam2007-06-121-30/+30
| | | | | | | | | | | | * Introduce registry/reg_api.c, which closely resembles the winreg api. This is important for the subsequent merges of the "net conf" code. * The rewrite of rpc_server/srv_winreg_nt.c is _not_ merged since the preliminary changes have not been merged. * Change some routines from NTSTATUS to WERROR. * Remove "parent" argument to regkey_open_internal (and rewrite to use the new api functions like reg_openhive and so on). Michael
* r23422: Merge (parts of) r19807, r19811, r19827.Michael Adam2007-06-111-2/+117
| | | | | | Preleminary merge for subsequent merge of restructuring of registry code. Michael
* r23421: Merge parts of r18963 that apply:Michael Adam2007-06-111-2/+2
| | | | | | | | Move defines from rpc_reg.h to reg_object.h. rpc_reg.h is not completely removed, since not all of the hand-marshalled code is replaced by ndr code in 3_0_26. Michael
* r23416: Forgot to "svn add lib/util_reg.c" in r23415...Michael Adam2007-06-111-0/+110
| | | | Michael
* r23411: We were missing displayName and that was preventing usSimo Sorce2007-06-111-0/+1
| | | | | | | | from successfully deleting an entry when "account" is the STRUCTURAL objectclass used for users and machines. "account" is used each time the user entry is in /etc/passwd and we have only the samba attributes in ldap, as well as for rfc2307(bis) standard based directories.
* r23410: Merge the core of the cluster code.Volker Lendecke2007-06-108-12/+2135
| | | | | | | | | | | | | | | | I'm 100% certain I've forgotten to merge something, but the main code should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and messages_ctdbd.c. There should be no changes to the non-cluster case, it does survive make test on my laptop. It survives some very basic tests with ctdbd enables, I did not do the full test suite for clusters yet. Phew... Volker
* r23408: Remove a bogus commentVolker Lendecke2007-06-101-1/+0
|
* r23395: Merge branches/SAMBA_3_0@23393James Peach2007-06-082-26/+102
| | | | | Support BSD group semantics by making sure that the effective GID is always passed as the first GID when calling setgroups(2).
* r23371: Fix the misleading comment I added - it really *should*Jeremy Allison2007-06-071-2/+2
| | | | | | say "locks chain and returned record", not "and returns record" Jeremy.
* r23370: Traverse in tdb wasn't consistently using theJeremy Allison2007-06-071-8/+10
| | | | | | | | | | | | travlocks.lock_rw for lock read/write types, it was sometimes using it (tdb_next_lock) and sometimes explicitly using F_WRLCK instead. Change this to consistently use travlocks.lock_rw only. I'm pretty sure about this fix (else I woudn't be checking this in :-) but tridge and Volker please review. Jeremy.
* r23367: check the "use mmap" option for ldb tooAndrew Tridgell2007-06-062-0/+10
|
* r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.Michael Adam2007-06-062-0/+18
| | | | | | | | | | This fixes the build on a SuSE 6.1. :-) I guess this had been merely forgotten. But beware: The implementations of rep_pread and rep_pwrite are not thread safe. Michael
* r23362: Respect "use mmap" in tdb_wrap_open(). Tridge, you might want to mergeVolker Lendecke2007-06-061-0/+3
| | | | this in your tree.
* r23357: timespec_current() was returning the wrong ns timeJeremy Allison2007-06-051-1/+1
| | | | | (multiplying tv_sec, not tv_usec). Jeremy.
* r23356: We missed to add the 'c' character to the list of valid ones forSimo Sorce2007-06-051-1/+1
| | | | | | | | shell escaping. I hate this kind of bugs more than how Jeremy hates off by ones :( Simo.
* r23344: Better error messageVolker Lendecke2007-06-041-2/+4
|
* r23343: Fix error returnVolker Lendecke2007-06-041-1/+3
|
* r23338: merge from SAMBA_3_0:Stefan Metzmacher2007-06-041-25/+2
| | | | | | | | | | | fix a crash bug...I wonder why only HP-UX 11.00 ans 11.11 noticed it via a SIGBUS... I missed to remove the samba3 specifc code path to tdb_open_ex() when I synced lib/tdb/ with samba4. The explicit cast in on tdb_open_ex() dropped the compiler warning :-( metze
* r23318: import the lib/ldb tree from 3.0Andrew Tridgell2007-06-04131-0/+38969
|\
| * r23313: Janitor for tridge:Volker Lendecke2007-06-031-24/+13
| | | | | | | | | | | | we need to use tdb_wrap_open in both these backends to allow for multiple opens. This is done for notify.tdb. Otherwise we die when a 2nd share with notify is setup
| * r23309: sync lib/replace with SAMBA_4_0Stefan Metzmacher2007-06-0225-223/+347
| | | | | | | | metze