1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

20275 Commits

Author SHA1 Message Date
Stefan Metzmacher
b09024928d r25248: According to the build-farm all this defines are not needed
for HPUX large file support.

But it would be nice if someone could verify that.

metze
2007-10-10 12:30:54 -05:00
Michael Adam
1194d4f36e r25247: Rename the rpccli_lsa_lookup_sids_all() function to rpccli_lsa_lookup_sids()
and remove the old rpccli_lsa_lookup_sids() function. The old function would
fail due to server limits when requesting to resolve too many sids at once
(20480 for W2k3). The new version passes the list of sids in hunks to the
server. It has up to now been used (and tested) in the winbindd_ads
lookup_groupmem() function, and I think the time has come to replace the actual
function with this correct version.

Michael
2007-10-10 12:30:54 -05:00
Stefan Metzmacher
af91f4fd08 r25245: rerun 'make idl'
metze
2007-10-10 12:30:53 -05:00
Stefan Metzmacher
00ea030e67 r25244: see what the build-farm says when we only use large file support
detection from libreplace...

It would be good if someone could test that on HPUX...

metze
2007-10-10 12:30:53 -05:00
Stefan Metzmacher
9caf54c868 r25241: remove sequence_number out of WINBINDD_DOMAIN_INFO call
as this is always answered by the winbindd parent and will
most times return old sequence number values.

metze
2007-10-10 12:30:53 -05:00
Stefan Metzmacher
ff94d05576 r25239: fix cut-n-paste bug in code with LIBUNWIND support
metze
2007-10-10 12:30:53 -05:00
Jeremy Allison
abedd96786 r25238: Make the error returns from the string functions
always consistent. Return -1 on error, and ensure
we check for this. In cases where the dest is already
specified and we've been asked to terminate with a
null, ensure we always do so even on error.
Jeremy.
2007-10-10 12:30:53 -05:00
Stefan Metzmacher
5566cf01e8 r25236: make it possible to alter WINBINDD_SOCKET_DIR via
"winbindd:socket dir=/path/to/dir" for usage in make test

metze
2007-10-10 12:30:52 -05:00
Stefan Metzmacher
828d2ca061 r25232: sync lib/replace with SAMBA_4_0
metze
2007-10-10 12:30:52 -05:00
Stefan Metzmacher
84ebb6cac2 r25230: sync lib/talloc with SAMBA_4_0
metze
2007-10-10 12:30:52 -05:00
Stefan Metzmacher
200b5bfb81 r25227: Patch from "Steven Danneman" <steven.danneman@isilon.com>:
-
We ran across a bug joining our Samba server to a Win2K domain with LDAP
signing turned on.  Upon investigation I discovered that there is a bug
in Win2K server which returns a duplicated responseToken in the LDAP
bindResponse packet.  This blob is placed in the optional mechListMIC
field which is unsupported in both Win2K and Win2K3.  You can see RFC
2478 for the proper packet construction.  I've worked with metze on this
to confirm all these finding.

This patch properly parses then discards the mechListMIC field if it
exists in the packet, so we don't produce a malformed packet error,
causing LDAP signed joins to fail.  Also attached is a sniff of the
domain join, exposing Win2Ks bad behavior (packet 21).
-

(I've just changed the scope of the DATA_BLOB mechList)

metze
2007-10-10 12:30:52 -05:00
Michael Adam
aa603bcc6c r25226: Get rid of more red bars... 2007-10-10 12:30:52 -05:00
Michael Adam
7238884c2c r25225: Add a debug message.
Michael
2007-10-10 12:30:52 -05:00
Michael Adam
b4fff6d09d r25224: Fix a potential segfault in lsa_lookupsids client code due to
uninitialized data.

Michael
2007-10-10 12:30:51 -05:00
Michael Adam
2c68ebd693 r25223: Fix behaviour of rpccli_lsa_lookupsids_all() when
rpccli_lsa_lookupsids_noalloc() returns an error for one hunk
of SIDs: free all allocated arrays and return the error code
returned by the hunk lookup.

Michael
2007-10-10 12:30:51 -05:00
Jeremy Allison
9fc14c83cc r25222: Fix last assumptions that (size_t)-1 can be used
as a special dest_len of sizeof(pstring).
Jeremy.
2007-10-10 12:30:51 -05:00
Michael Adam
cc4599fdc1 r25201: Fight those red bars... 2007-10-10 12:30:51 -05:00
Michael Adam
f1f4758e2c r25200: Fix a debug message. 2007-10-10 12:30:51 -05:00
Jeremy Allison
db1b629377 r25199: Remove pstring from strdup_upper - make it the
same as talloc_strdup_upper.
Jeremy.
2007-10-10 12:30:51 -05:00
Michael Adam
5a16da2185 r25198: Change net_rpc_join_ok() to return NTSTATUS for better
error propagation.

Michael
2007-10-10 12:30:50 -05:00
Michael Adam
46093004a7 r25197: Change net_make_ipc_connection() and net_make_ipc_connection_ex() to
return NTSTATUS to allow for better error propagation.

Michael
2007-10-10 12:30:50 -05:00
Jeremy Allison
8bb85f3f14 r25195: Fix issue with calling pull_uc2_*alloc with
str_len == 0. We should just return 0 in this
case.
Jeremy.
2007-10-10 12:30:50 -05:00
Volker Lendecke
b64df8a3c5 r25184: Fix some C++ warnings and an uninitialized variable 2007-10-10 12:30:49 -05:00
Stefan Metzmacher
2e5f478165 r25179: fix libunwind detection on x86 based hosts
we need -lunwind-x86 not -lunwind-i686

metze
2007-10-10 12:30:49 -05:00
Stefan Metzmacher
93bdd2724c r25177: if configured using --enable-socket-wrapper
allow overwritting the location of the WINBINDD_SOCKET_DIR
via an environment variable

metze
2007-10-10 12:30:48 -05:00
Jeremy Allison
37cf2c2727 r25173: Use the append_buffer version in a loop.
Jeremy.
2007-10-10 12:30:48 -05:00
Jeremy Allison
6032fbc358 r25172: Remove commented out code we will never enable.
Jeremy.
2007-10-10 12:30:48 -05:00
Jeremy Allison
4748d26397 r25171: More pstring removal.
Jeremy.
2007-10-10 12:30:48 -05:00
Jeremy Allison
764574ee05 r25170: Remove pstring limits from ms_fnmatch and module load.
Jeremy.
2007-10-10 12:30:48 -05:00
Volker Lendecke
1a02226700 r25169: Fix bug 4028 2007-10-10 12:30:48 -05:00
Jeremy Allison
c215d6e849 r25167: Fix breakage from mangling rewrite. Use the
new name if unmangling succeeded, not if it
failed. Jerry - please re-test, this should
fix your bug.
Jeremy.
2007-10-10 12:30:47 -05:00
Jeremy Allison
fe30a523df r25165: Use talloc_asprintf_append_buffer with an unmodified
string.
Jeremy.
2007-10-10 12:30:47 -05:00
Jeremy Allison
2243a73d65 r25164: Add talloc_asprintf_append_buffer() and the docs for it.
Jeremy.
2007-10-10 12:30:47 -05:00
Jeremy Allison
a7370eea6b r25163: Fix wrong ctx passed to talloc_asprintf_append().
Found by Metze's code review (thanks Metze !).
Jeremy.
2007-10-10 12:30:47 -05:00
Michael Adam
883fd79061 r25162: Refactor further: add mapping functions between
REGISTRY_VALUE and struct registry_value formats for
registry values. Lacking better naming, I called them
regval_hilvl_to_lolvl and regval_lolvl_to_hilvl for a
start. The might be useful elsewhere, so might be put
into another place later on.

Michael
2007-10-10 12:30:47 -05:00
James Peach
ea226c5ed9 r25161: Don't panic if setgroups fails in non-root mode. 2007-10-10 12:30:46 -05:00
Michael Adam
7761f9b3cc r25160: Refactor out and slightly clean up canonicalization of the registry value
from smbconf_store_values().

Michael
2007-10-10 12:30:46 -05:00
Stefan Metzmacher
3ac7566ae1 r25154: move winbindd code into winbindd/
metze
2007-10-10 12:30:46 -05:00
Stefan Metzmacher
2a794db3c5 r25152: fix headers used in wbinfo.c
metze
2007-10-10 12:30:46 -05:00
Stefan Metzmacher
f41efe01b5 r25150: don't recursivly call call dump_core()
as currently seen in 'make test' localy and in the farm

metze
2007-10-10 12:30:45 -05:00
Günther Deschner
c3b423c52a r25148: Adapt to coding conventions.
Guenther
2007-10-10 12:30:45 -05:00
Stefan Metzmacher
e9e03aac22 r25146: rename winbindd_nss.h => winbind_struct_protocol.h
as this header has nothing todo with winbindd nor nss
and it contains the definitions for the struct based
protocol

metze
2007-10-10 12:30:45 -05:00
Stefan Metzmacher
8a95d7a7ed r25143: rename public functions from winbind_client.h
init_request	=> winbindd_init_request
free_response	=> winbindd_free_response
read_reply	=> winbindd_read_reply

write_sock	=> winbind_write_sock
read_sock	=> winbind_read_sock
close_sock	=> winbind_close_sock(void)

metze
2007-10-10 12:30:45 -05:00
James Peach
a136de663f r25142: Panic if setting the group list fails while switching security
contexts. Patch from Tim Prouty <tim.prouty@isilon.com>.
2007-10-10 12:30:45 -05:00
Jeremy Allison
cfcf7cf03e r25141: More pstring removal.
Jeremy.
2007-10-10 12:30:45 -05:00
Michael Adam
f935d21200 r25140: Less red bars to hurt my eyes... 2007-10-10 12:30:44 -05:00
Michael Adam
2daaaaa835 r25139: Avoid code duplication: let regval_ctr_copyvalue() call regval_ctr_addvalue().
This also corrects regval_ctr_copyvalue() in that it cannot create (invalid)
regval containers with dupliacte entries...

Michael
2007-10-10 12:30:44 -05:00
Jeremy Allison
39c211a702 r25138: More pstring elimination. Add a TALLOC_CTX parameter
to unix_convert().
Jeremy.
2007-10-10 12:30:44 -05:00
Jeremy Allison
54c658867d r25136: When tallocing a string to uppercase remember the terminating
'\0' in size calculations.
Jeremy.
2007-10-10 12:30:43 -05:00
Günther Deschner
98f2e10e3f r25135: Remove one END_PROFILE(SMBntcreateX) from call_nt_transact_create() which
appears to be a leftover. Should fix the build with profiling enabled.

Jeremy, please check.

Guenther
2007-10-10 12:30:43 -05:00