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

8178 Commits

Author SHA1 Message Date
Stefan Metzmacher
f2f3e1801b r13627: split the NBT-WINSREPLICATION tests into multiple tests
metze
(This used to be commit ae559920e1)
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
e68802a2a6 r13626: fix make test
metze
(This used to be commit 2acf203949)
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
777e1c23be r13624: as abartlet requested, move the saslauthd parsing stuff to a seperate file
metze
(This used to be commit 3c8bc98c1b)
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
fd9a6d5e46 r13623: - make sure ntvfs_map_qfileinfo isn't used for async replies
- add some comments

metze
(This used to be commit e1611b6221)
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
417dbaa127 r13621: add an idl structure to parse saslauthd requests
metze
(This used to be commit d003654b1c)
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
36098dfda9 r13620: initialize the CMD with 0 too
metze
(This used to be commit 7cf1423bc8)
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
5f7b504cef r13619: fix compiler warning
metze
(This used to be commit 7b284174aa)
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
bd1aed3232 r13618: fix compiler warning
metze
(This used to be commit 252d5edfb5)
2007-10-10 13:52:00 -05:00
Stefan Metzmacher
e15a8b16c1 r13617: fix compiler warning
metze
(This used to be commit 082f418fab)
2007-10-10 13:52:00 -05:00
Andrew Bartlett
98c0767677 r13616: Add new ldb functions: ldb_msg_add_steal_string() and
ldb_msg_add_steal_value().

These try to maintain the talloc heirachy, which must be correct
otherwise talloc_steal operations of entire attribute lists fails.

This fixes the currentTime value, found by using Microsoft's dcdiag
tool (before this commit, it pointed to invalid memory, due to the
changes in -r 13606)

Andrew Bartlett
(This used to be commit 424df1bb36)
2007-10-10 13:51:59 -05:00
Simo Sorce
d590dea10b r13615: Make ldb_set_errstring get ldb instead of module as parameter.
The module was just used to get to the ldb so it was meningless.

Also add LDB_WAIT_ONCE e relative code in ldb_ildap.c
(This used to be commit d5b467b7c1)
2007-10-10 13:51:59 -05:00
Simo Sorce
00fe70e5b9 r13609: Get in the initial work on making ldb async
Currently only ldb_ildap is async, the plan
is to first make all backend support the async calls,
and then remove the sync functions from backends and
keep the only in the API.

Modules will need to be transformed along the way.

Simo
(This used to be commit 1e2c13b2d5)
2007-10-10 13:51:59 -05:00
Andrew Bartlett
f490434c0f r13606: An attempt to fix #3525.
The problem was that the supportedControls were being stolen into the
result sent to the client, then talloc_free()ed.  This caused them to
be invalid on the next rootDSE query.

This also tries to avoid attaching the result to the long-term samdb
context, and avoids an extra loop in the result processing (pointed
out by tridge).

Andrew BARtlett
(This used to be commit d0b8957f38)
2007-10-10 13:51:59 -05:00
Andrew Bartlett
4515708b81 r13605: Use $BASEDN to ensure this works outside of the 'make test' rig.
Andrew Bartlett
(This used to be commit b0e7a58cc9)
2007-10-10 13:51:58 -05:00
Simo Sorce
4b476ff4fb r13592: Incredible how bugs like this can sweep in even after peer review and testing ...
(This used to be commit 8483f61a1d)
2007-10-10 13:51:58 -05:00
Andrew Bartlett
08195b0ed5 r13584: Another try at SPNEGO stuff. I need to write a better testsuite for this.
This tries to ensure that when we are a client, we cope with mechs
(like GSSAPI) that only abort (unknown server) at first runtime.

Andrew Bartlett
(This used to be commit cb5d18c619)
2007-10-10 13:51:58 -05:00
Andrew Bartlett
9d1954c25d r13583: Realise that the member server name appears in all calls that use the
credentials.

Consistantly rename these elements in the IDL to computer_name.

Fix the server-side code to always lookup by this name.

Add new, even nastier tests to RPC-SCHANNEL to prove this.

Andrew Bartlett
(This used to be commit 341a0abeb4)
2007-10-10 13:51:58 -05:00
Andrew Bartlett
eefb440791 r13582: Indent
(This used to be commit 06ddac2bb1)
2007-10-10 13:51:58 -05:00
Simo Sorce
77445df4b4 r13580: fix broken client side sort
(This used to be commit cbbc0d7cc4)
2007-10-10 13:51:57 -05:00
Jelmer Vernooij
595702c9fa r13577: Move some (possibly system-defined) defines to replace.h
(This used to be commit 2b3d56e153)
2007-10-10 13:51:57 -05:00
Rafal Szczesniak
5fa874453f r13572: Comments to async pipe open functions and copyright note.
rafal
(This used to be commit 7dde77942b)
2007-10-10 13:51:57 -05:00
Rafal Szczesniak
2b2dfc0117 r13568: Comments to async rpc connect functions.
rafal
(This used to be commit 9ef2275f61)
2007-10-10 13:51:57 -05:00
Rafal Szczesniak
32a3aa932d r13561: Turn all dcerpc connect and socket functions to async version.
Now, each rpc interface (named pipe, tcp/ip, lrpc and unix
socket) works asynchronously.
Comments to follow.

rafal
(This used to be commit 789f9d43db)
2007-10-10 13:51:57 -05:00
Andrew Bartlett
aa4a3449c2 r13551: Add an accessor function for the user sid.
Andrew Bartlett
(This used to be commit 273cb8fd42)
2007-10-10 13:51:57 -05:00
Andrew Bartlett
576cdc713c r13516: We can't bind to both 0.0.0.0 and specific network interfaces at the
same time.

This was causing the kdc to shut itself down if 'bind interfaces only = no'.

Andrew Bartlett
(This used to be commit 02ff22a250)
2007-10-10 13:51:56 -05:00
Stefan Metzmacher
7449f4d803 r13508: some ASN.1 element in LDAP are optional,
make it possible to code the difference between a zero length and a NULL DATA_BLOB...

metze
(This used to be commit 54f0b19c55)
2007-10-10 13:51:56 -05:00
Stefan Metzmacher
37bd0b655f r13507: the 'data' element of LDAP controls is optional.
(prepare the next commit)

metze
(This used to be commit a1bbf7f298)
2007-10-10 13:51:56 -05:00
Stefan Metzmacher
f2e88ab7cf r13506: zero memory as some ASN.1 elements are optional, and we should initialize
them for the internal use...

found by 'make valgrindtest'

metze
(This used to be commit 1db9501c52)
2007-10-10 13:51:56 -05:00
Andrew Tridgell
048704a7e5 r13505: allow servers to bind to non-broadcast interfaces. Servers now
specifically ask for iface_n_bcast() and have to check if it returns
NULL, in which case it is a non-broadcast interface
(This used to be commit d004e250b6)
2007-10-10 13:51:56 -05:00
Andrew Tridgell
8c7a593bcd r13504: add back in a comment noting fred as the contributor of the address
calculation code. This was originally done in 1997, and has been
morphed a lot since then, but fred should still get credit
(This used to be commit 172e41596f)
2007-10-10 13:51:55 -05:00
Andrew Bartlett
26421fb2dc r13481: As far as I can tell, my changes in -r 12863 were dangerously untested.
We do need the gsskrb5_get_initiator_subkey() routine.  But we should
ensure that we do always get a valid key, to prevent any segfaults.

Without this code, we get a different session key compared with
Win2k3, and so kerberised smb signing fails.

Andrew Bartlett
(This used to be commit cfd0df16b7)
2007-10-10 13:51:55 -05:00
Andrew Bartlett
e9815c38dd r13480: Explain a little about how these credentials structures should be used.
Andrew Bartlett
(This used to be commit b90959f796)
2007-10-10 13:51:55 -05:00
Andrew Bartlett
358122c688 r13479: Return the joined domain SID and user SID as structures, not strings.
Andrew Bartlett
(This used to be commit e1de45bce4)
2007-10-10 13:51:55 -05:00
Andrew Bartlett
e7630ebe47 r13472: After Volker's advise, try every combination of parameters. This
isn't every parameter on NTLMSSP, but it is most of the important
ones.

This showed up that we had the '128bit && LM_KEY' case messed up.
This isn't supported, so we must look instead at the 56 bit flag.

Andrew Bartlett
(This used to be commit 990da31b5f)
2007-10-10 13:51:54 -05:00
Andrew Bartlett
e9e8096641 r13471: With more 'try all options' testing, I found this 'simple' but in the
NTLM2 signing code.

Andrew Bartlett
(This used to be commit 16e5c96875)
2007-10-10 13:51:54 -05:00
Andrew Bartlett
e218c8442d r13470: Thanks to a report from VL:
We were causing mayhem by weakening the keys at the wrong point in time.

I think this is the correct place to do it.  The session key for SMB
signing, and the 'smb session key' (used for encrypting password sets)
is never weakened.

The session key used for bulk data encryption/signing is weakened.

This also makes more sense, when we look at the NTLM2 code.

Andrew Bartlett
(This used to be commit 3fd32a1209)
2007-10-10 13:51:54 -05:00
Andrew Bartlett
ba04ff6736 r13467: Add new parametric options (for testing) controlling LM_KEY and 56-bit
encryption behaviour.

Andrew Bartlett
(This used to be commit 2b3b2f33a4)
2007-10-10 13:51:54 -05:00
Andrew Bartlett
93d6990dd4 r13466: Make it easier to understand what this function actually does.
Andrew Bartlett
(This used to be commit f075497926)
2007-10-10 13:51:53 -05:00
Andrew Bartlett
debf1c9a92 r13405: Allow a fallback if SPNEGO is somehow disabled in the client, to just NTLMSSP.
Andrew Bartlett
(This used to be commit 3e96975d91)
2007-10-10 13:51:53 -05:00
Andrew Bartlett
7546864a78 r13404: Comments, whitespace.
Andrew Bartlett
(This used to be commit 04e2fe8b6d)
2007-10-10 13:51:53 -05:00
Andrew Bartlett
941c1566e5 r13403: Try to better handle a case where SPNEGO isn't available (allow us to
emulate the behaviour of XP standalone if required).

Andrew Bartlett
(This used to be commit 7f821097fb)
2007-10-10 13:51:53 -05:00
Andrew Bartlett
5cecce1761 r13402: Make Samba4 pass a nastier RPC-SCHANNEL test.
The new RPC-SCHANNEL test shows that the full credentials state must
be kept in some shared memory, for some length of time.  In
particular, clients will reconnect with SCHANNEL (after loosing all
connections) and expect that the credentials chain will remain in the
same place.

To achive this, we do the server-side crypto in a transaction,
including the fetch/store of the shared state.

Andrew Bartlett
(This used to be commit 982a6aa871)
2007-10-10 13:51:53 -05:00
Andrew Tridgell
4c78d1bfa2 r13401: remove the rename of the snprintf functions that simo accidentially
included in his last commit
(This used to be commit 487b374b43)
2007-10-10 13:51:52 -05:00
James Peach
b56dab83a4 r13400: Only return NULL from talloc_asprintf if vsnprintf returns an
error (ie. zero is not an error).
(This used to be commit 1ab4674196)
2007-10-10 13:51:52 -05:00
James Peach
f9f55ad5fc r13397: Propagate the error return from vsnprintf to trap the case where
we aren't linked against a C99 vsnprintf.
(This used to be commit 23782f899a)
2007-10-10 13:51:52 -05:00
James Peach
56e097e994 r13388: Report a more helpful error with malformed file options of
the form //server/share (ie. remote path missing).
(This used to be commit 443677f58d)
2007-10-10 13:51:52 -05:00
James Peach
b7f7adb2e1 r13387: Make sure smbcli_parse_unc reports a failure for strings of
the form //server. Make sure failure cases are well-defined.
(This used to be commit e0020df66b)
2007-10-10 13:51:52 -05:00
Andrew Bartlett
d32b14c2bc r13381: Test the SamLogonEx SamLogon call in the schannel test. This is only
available under schannel, and performs a netlogon authentication.

Andrew Bartlett
(This used to be commit 561a690915)
2007-10-10 13:51:51 -05:00
Andrew Bartlett
e45ce50a61 r13380: Drop the socket, then try SAMR operations secured with netlogon on the new socket.
We should also test netlogon operations, but there are issues with
what state is expected to be stored (far more than we currently do).

Andrew Bartlett
(This used to be commit 39ddba0d0d)
2007-10-10 13:51:51 -05:00
Simo Sorce
b8a9bec662 r13374: new revision of the snprintf replace code
still missing a configure test to make us
substitute our snprintf to system one when
the system one does not have positional parameters support
(This used to be commit 398f989d65)
2007-10-10 13:51:51 -05:00