| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Jeremy.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
all, so it's gone. With it 8k bss went away.
|
| |
|
|
|
|
|
| |
This one was particularly tasty, it was a static one. So 1k less
footprint per process.
|
|
|
|
|
|
|
| |
(This will be used in a next step to prevent storing these
values in reg_smbconf.c.)
Michael
|
|
|
|
| |
Michael
|
|
|
|
|
|
|
|
| |
back to winbindd_cache.c. The generic mechanism
should open the cache tdb readonly and with default
flags.
Michael
|
|
|
|
|
|
|
| |
code into a generic tdb validation code.
In lib/util_tdb.c for a start.
Michael
|
| |
|
|
|
|
| |
cluster is used
|
|
|
|
| |
Jeremy.
|
| |
|
|
|
|
|
| |
based on patch from MORIYAMA Masayuki <moriyama@miraclelinux.com>.
Jeremy.
|
|
|
|
| |
Guenther
|
|
|
|
| |
Michael
|
|
|
|
| |
Guenther
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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?
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Tidy calls to smb_panic by removing trailing newlines. Print the
failed expression in SMB_ASSERT.
|
|
|
|
|
|
| |
(To be used in other place in subsequent commit.)
Michael
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Fix the prototype for sys_broken_setgroups and log *BSD group list
truncation a bit more verbosely.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
Preleminary merge for subsequent merge of restructuring of registry code.
Michael
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Michael
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Support BSD group semantics by making sure that the effective GID
is always passed as the first GID when calling setgroups(2).
|
|
|
|
|
|
| |
say "locks chain and returned record", not
"and returns record"
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
this in your tree.
|
|
|
|
|
| |
(multiplying tv_sec, not tv_usec).
Jeremy.
|
|
|
|
|
|
|
|
| |
shell escaping.
I hate this kind of bugs more than how Jeremy hates off by ones :(
Simo.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
metze
|