1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00
Commit Graph

6446 Commits

Author SHA1 Message Date
Volker Lendecke
5436d77648 r10683: Samba3's wbinfo -t should give the correct answer now.
Tridge, if you have time, you might want to look at the segfault I was still
seeing. Now I store the handle to the netlogon pipe in the global winbind
state and free it on the next entry into check_machacc. The problem seems to
be that talloc_free()ing a pipe struct from within a callback function on that
pipe is not possible. I think I can live with that, but it has been not really
obvious. To reproduce the segfault you might want to look at putting a
talloc_free(state->getcreds->out.netlogon) into
wbsrv_samba3_check_machacc_receive_creds. This is called from a dcerpc
callback function.

In particular if the check failed it would be nice if I could delete the pipe
directly and not post a different event to some winbind queue.

I tried to delete the pipe from a timed event triggered immediately, but this
also fails because the inner loop seems to hit the same event again, calling
it twice.

Volker
2007-10-10 13:39:18 -05:00
Andrew Tridgell
fd8eccd5bf r10682: force the free of the fd event first when a stream terminates. That ensures
destructors hanging off the stream connection don't trip more socket
events.

this should help with the problem volker described
2007-10-10 13:39:18 -05:00
Volker Lendecke
42ff218ac9 r10681: Convert dcerpc_open_smb to a composite function.
Volker
2007-10-10 13:39:18 -05:00
Rafal Szczesniak
b3b4059efe r10680: Fix a warning.
rafal
2007-10-10 13:39:17 -05:00
Rafal Szczesniak
1fefca2c17 r10679: Monitor messages should be issued from usermod functions.
Also a bit of formatting.

rafal
2007-10-10 13:39:17 -05:00
Jelmer Vernooij
821b0bb56f r10678: Add debug helper
Fix push for non-fixed length strings
2007-10-10 13:39:17 -05:00
Volker Lendecke
6b88de182e r10677: Add smb_composite_connectmulti: Send out multiple SYN packets at once, use the
first one that replies correctly.

Add a talloc context to smb_composite_connect()

Volker
2007-10-10 13:39:17 -05:00
Volker Lendecke
c755788484 r10675: Connect to the DC's IPC$
Volker
2007-10-10 13:39:17 -05:00
Andrew Bartlett
5b2114bb9c r10670: Add notes on things that are TODO in Samba4 kerberos land.
Andrew Bartlett
2007-10-10 13:39:16 -05:00
Andrew Tridgell
194efd26e4 r10669: reverted jelmers commit 10663 as it was causing lots of panics in 'make test'
I also think the method of getting rid of pstring isn't the right
one. I certainly do want to get rid of pstring/fstring, but the reason
for removing them is the use of arbitrary sized fixed length strings
on the stack and in structures. Changing to another fixed length stack
string format isn't really a win, and moving to use strncpy() is
actually worse than pstrcpy() as strncpy() has the absolutely awful
semantics of always zeroing all remaining bytes, so it ends up taking
a lot of cpu doing pointless memory writes.

I'd rather move to more use of asprintf()/talloc_asprintf() and
similar functions for dynamic string allocation.

You also have to be very careful about some of these system defined
string limits. One some systems PATH_MAX could be 64k or even larger,
which can quickly blow the stack out when you allocate a few of them.
2007-10-10 13:39:16 -05:00
Andrew Tridgell
fd6d895ebd r10668: added a ildap_search_bytree() function 2007-10-10 13:39:16 -05:00
Andrew Tridgell
26ff538578 r10667: cope with a NULL tree for base searches in ldb_search() 2007-10-10 13:39:16 -05:00
Andrew Tridgell
af24f3d7fa r10666: - reverse the ildap ldb backend so tree based searches go through
directly, and expression based searches are converted to trees. This
makes for less conversions.

- allow the caller to supply a set of credentials via the ldb opaque
name 'credentials'. I will be using this in my ldb proxy module.
2007-10-10 13:39:16 -05:00
Andrew Tridgell
0d4a900ce5 r10665: fixed some crash errors and an error encoding AND and OR operations in the expression parsing code 2007-10-10 13:39:15 -05:00
Jelmer Vernooij
dc3dc79674 r10664: Include limits.h in replace.h for HOST_NAME_MAX 2007-10-10 13:39:15 -05:00
Jelmer Vernooij
57cfbe51e6 r10663: Eliminate use of pstring 2007-10-10 13:39:15 -05:00
Jelmer Vernooij
ecef1ee6cd r10662: Eliminate pstring and friends. 2007-10-10 13:39:15 -05:00
Stefan Metzmacher
33c7c101c0 r10653: give unknown levels a name basicly the *2 levels mean
that the update or inform should be propagaded to all servers

metze
2007-10-10 13:39:15 -05:00
Tim Potter
09d4abecb0 r10646: Hey Jelmer what do you think of this? The SConscript for the libcli
directory now looks like the config.mk file but with different
punctuation.

The only weird bit is that it creates a proto.h file for each subsystem.
2007-10-10 13:39:14 -05:00
Andrew Tridgell
c394a4a602 r10643: increase smbd max runtime when using valgrind 2007-10-10 13:39:14 -05:00
Andrew Tridgell
e80d42933f r10641: fixed the error handling on search errors in the ildap backend 2007-10-10 13:39:14 -05:00
Stefan Metzmacher
131e5dfe69 r10638: - add wrepl_socket_merge() function that creates a wrepl_socket on top
of an existing socket, that is needed to handle WREPL_REPL_UPDATE
  in the server, because we need to flig the connection and act as client on it

metze
2007-10-10 13:39:14 -05:00
Stefan Metzmacher
afd9dda577 r10637: use the correct memory context in the ndr_pull_* function
to build the talloc hierachie correct

metze
2007-10-10 13:39:14 -05:00
Rafal Szczesniak
ef29863d99 r10636: Formatting for better readability.
rafal
2007-10-10 13:39:13 -05:00
Rafal Szczesniak
7b3a4096b5 r10635: Formatting for better readability.
rafal
2007-10-10 13:39:13 -05:00
Rafal Szczesniak
0e45dc3bac r10633: Formatting.
rafal
2007-10-10 13:39:13 -05:00
Rafal Szczesniak
426797f7b0 r10631: Formatting.
rafal
2007-10-10 13:39:13 -05:00
Stefan Metzmacher
ba3685c41d r10627: - use a wrepl specific enum for the node type
- the unknown flag 0x10 seems to mean that this name was localy registered on this
  currently asked server, that flag is not present in replica records

metze
2007-10-10 13:39:13 -05:00
Stefan Metzmacher
5fa13d6c2b r10610: forgot one file in the last commit:
make wrepl_nbt_name a scalar type that is another
wire representation of struct nbt_name

give wrepl_name->flags a meaning

metze
2007-10-10 13:39:12 -05:00
Stefan Metzmacher
b98efc2905 r10608: - fix hierachical memory handling in ndr_pull_nbt_name
- add wrepl_nbt_name scalar type and do the pull/push in the ndr layer
  instead of the caller
- give the flags and group_flag in the wrepl_name a meaning

metze
2007-10-10 13:39:12 -05:00
Jelmer Vernooij
441419a08f r10605: Forgot one file... 2007-10-10 13:39:11 -05:00
Jelmer Vernooij
b405b27ba4 r10604: Put in the new registry "patchfile" code (similar to ldif
for LDB); not finished yet.
2007-10-10 13:39:11 -05:00
Andrew Tridgell
8e7c4c98a7 r10603: neaten up the ldb module initialisation code 2007-10-10 13:39:11 -05:00
Andrew Bartlett
23f834dd19 r10599: Use localhost again for now, until I trace where we are leaking name lookups.
Andrew Bartlett
2007-10-10 13:39:10 -05:00
Andrew Bartlett
0d757b169a r10598: Factor out common code, in preperation for a move elsewhere.
Andrew Bartlett
2007-10-10 13:39:10 -05:00
Andrew Bartlett
51a0275a0e r10597: And add the .mk files for the new credentials subsystem.
Andrew Bartlett
2007-10-10 13:39:09 -05:00
Andrew Bartlett
2e76a4b8ef r10596: Move the credentials code into it's own subsystem, and push it under auth/
Andrew Bartlett
2007-10-10 13:39:09 -05:00
Andrew Bartlett
a67b87cb6e r10595: Use a server name of 'localtest' not 'localhost', so we can move to
testing kerberos.

Andrew Bartlett
2007-10-10 13:39:09 -05:00
Jelmer Vernooij
985c6a8fcc r10594: Add initial framework for lib/registry torture tests 2007-10-10 13:39:09 -05:00
Andrew Bartlett
ba11061b96 r10593: Add printf attribute
Andrew Bartlett
2007-10-10 13:39:08 -05:00
Jelmer Vernooij
8fa383f182 r10592: Add "adfgets()" function, which allocates and reads a line from a fd.
Also add torture tests for this function and file_{load,save}. I've hardcoded
a file name here.. should I handle that neater somehow?
2007-10-10 13:39:08 -05:00
Jelmer Vernooij
d2f80c0457 r10588: Remove more unused files, macros 2007-10-10 13:39:08 -05:00
Jelmer Vernooij
b65c9dc607 r10587: Remove unused constants 2007-10-10 13:39:08 -05:00
Jelmer Vernooij
b53313dc51 r10586: Add MergedObject() builder. Default to Library() rather
then StaticLibrary()
2007-10-10 13:39:08 -05:00
Jelmer Vernooij
908b88843f r10582: Nicer output (try to avoid linewraps) 2007-10-10 13:39:07 -05:00
Jelmer Vernooij
236bd1b97f r10581: Remove some unused globals + make static 2007-10-10 13:39:07 -05:00
Jelmer Vernooij
0ef7fe6f4c r10580: More generic approach for adding endpoints 2007-10-10 13:39:07 -05:00
Jelmer Vernooij
f547ab4644 r10579: str_list_make() can return NULL 2007-10-10 13:39:07 -05:00
Jelmer Vernooij
997eabee80 r10578: Run LOCAL-STRLIST by default 2007-10-10 13:39:07 -05:00
Stefan Metzmacher
bfd548ca10 r10569: add all info that we have to wrepl_name, as we need it for replication :-)
metze
2007-10-10 13:39:06 -05:00