1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

8257 Commits

Author SHA1 Message Date
Rafal Szczesniak
2b2dfc0117 r13568: Comments to async rpc connect functions.
rafal
(This used to be commit 9ef2275f6179869f2683e96c6f91d9569a6360c8)
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 789f9d43db7ea59e79d5aa498e2e9fd077448825)
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 273cb8fd4288f7bf15e0bcad9f6a4cbf4f142b24)
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 02ff22a25050687478cfcca4dce35c2346cc2241)
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 54f0b19c55df8ad3882f31a114e2ea0e4cf940ae)
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 a1bbf7f2982185cb6cd544b65b4709ab33a850c5)
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 1db9501c5261a974c6da1938537c7991ff6cfefd)
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 d004e250b6710251ea089ac242775481f13b5c2b)
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 172e41596fb3b4d2768d6885aea43295cc2f81c1)
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 cfd0df16b74b0432670b33c7bf26316b741b1bde)
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 b90959f7968ebbfc82ac55d4775d5574b1fc6925)
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 e1de45bce47292eef1f9c56ea5576c0436e6151d)
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 990da31b5f63f1e707651af8bf1a3241a8309811)
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 16e5c968756c40b8595503da47a1adb9cb09c447)
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 3fd32a12094ff2b6df52f5ab2af7c0ffceb5a4a0)
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 2b3b2f33a4c531f2b0f65521cc352e6d762e95bd)
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 f075497926f3b8131bf8427ee3a3d5c9e5ee77d7)
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 3e96975d910496db87e8e34e310f0f6d283210bf)
2007-10-10 13:51:53 -05:00
Andrew Bartlett
7546864a78 r13404: Comments, whitespace.
Andrew Bartlett
(This used to be commit 04e2fe8b6d293092af86a54215c1fa037bbb20e9)
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 7f821097fbdbc9f35d96e05f85cf008f36c0eea3)
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 982a6aa871c9fce17410a9712cd9fa726025ff90)
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 487b374b4359b2cb5f4e249e595c43bfa568a853)
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 1ab4674196b9df0b2b7b6eb4991358cc2f86c0d9)
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 23782f899aaa5fe488d86d5e67e91be99ff7a146)
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 443677f58d4ba8d6aa2963ca5848d3e717ee2cac)
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 e0020df66bf38873eaaacb95cadac55e17f432be)
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 561a690915f9d3ca2fbb76f16c47cf2f6be1b825)
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 39ddba0d0dc4475f9f7c5b7aa19ffff42c9fd1f5)
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 398f989d6580587eb1fa4fec0b1ed858b5cbe8e1)
2007-10-10 13:51:51 -05:00
James Peach
716b0ee234 r13373: Implement the -p option for smbtorture.
(This used to be commit fc17a50b48189c60af60b9163695b48c6b87c5c7)
2007-10-10 13:51:51 -05:00
Simo Sorce
f7def09a1e r13372: fixes ... still no joy
(This used to be commit 0e2cca9153619d646b90f32620905ab66b017c6a)
2007-10-10 13:51:51 -05:00
Jeremy Allison
2b163e64f5 r13370: Added deltest21 - pull the rug out from a connection by socket
close after setting delete on close flag.
Jeremy.
(This used to be commit fbea18e78f8a3c6dbb36aa935b7044c0fcf61da4)
2007-10-10 13:51:50 -05:00
Simo Sorce
b56282dec7 r13369: let's have a way to show the samba4 version through ejs
and use it in provisioning to fullfill rfc 3045 requirements
(This used to be commit 3fb9571a76481560304a826fc945983d52123299)
2007-10-10 13:51:50 -05:00
James Peach
52f01e2081 r13362: Rename variables for better consistency.
(This used to be commit dc20bb0ddc0824fc458e7fc4a9bce5059f4fc0d5)
2007-10-10 13:51:50 -05:00
Simo Sorce
338c410fec r13361: initial implementation of the vlv control
seem still buggy, can't make w2k3 to like it yet
(This used to be commit e1318383e91f6f6db39e3e3c9946fbb089753947)
2007-10-10 13:51:50 -05:00
Simo Sorce
6addde849f r13360: Fix crash bug when 0 results are returned on the internal base search
(This used to be commit fbee725ae87efbcf5887c923d55d7cb0d05476a6)
2007-10-10 13:51:50 -05:00
Stefan Metzmacher
5b26ea841c r13359: make sure we don't look at s[-1]
metze
(This used to be commit 24c6e2f73175befa33f9758634e3ee183916e387)
2007-10-10 13:51:49 -05:00
Andrew Tridgell
00c0545665 r13358: removed some unused functions and make some local functions static
(This used to be commit a73b76a36a70703738945d42795da6cf90c85105)
2007-10-10 13:51:49 -05:00
Simo Sorce
5972e01163 r13357: more docs
(This used to be commit 5af9086deafc88aa1f9256cc0090592ecbd62203)
2007-10-10 13:51:49 -05:00
Simo Sorce
0c45a12b65 r13356: test utf8 usernames
(This used to be commit 7ddec83a602372765711bff7207657b73922aaea)
2007-10-10 13:51:48 -05:00
Simo Sorce
289a5994a9 r13355: check controls are correctly exported
(This used to be commit 07fa55db32dcb93bfb4406baca0cfba31d3bc189)
2007-10-10 13:51:48 -05:00
Simo Sorce
3721bca79d r13354: Add tests to check that controls work properly
Fix asq module, add a second_stage_init to register with rootdse
Fix asq control ldap parsing routines (this was nasty to find out)
(This used to be commit 933a80397d137f7d5b79c82a068d62bb6928ef47)
2007-10-10 13:51:48 -05:00
Simo Sorce
096c2dc103 r13353: Fix a crash bug in rootdse when we do not pass in credentials
a plain ldbsearch would just crash

Fix kludge_acl, not passing on the second stage registration
phase to other modules

Simo
(This used to be commit bec99c5cb65d8c32fd4f636ed2f5383fb1b39830)
2007-10-10 13:51:48 -05:00
Simo Sorce
ad5e8bbe9d r13352: Integrate Patch to support the ManageDSAIT control
from Pete Rowley <prowley@redhat.com>
(This used to be commit bf20a848fda1607ca1b0d84791c299c0035793a1)
2007-10-10 13:51:48 -05:00
Simo Sorce
76036d37b4 r13349: In the end I could not use ldb_caseless_cmp
in attrib_handler.c functions

remove it again

Simo
(This used to be commit 513ff499071e6cb5e608a82430718021f72997bd)
2007-10-10 13:51:47 -05:00
Simo Sorce
18a0ece2cc r13348: Put a reminder for now.
Until we do not have an internal utf8 compliant
casefloding function we cannot pass this test
in the non-samba build
(This used to be commit 5d93c1eeba8f64784294f3aabcaefa4aaf798355)
2007-10-10 13:51:47 -05:00
Simo Sorce
e1e693792c r13347: - Now we compare values with an optimized utf8
safe function if the user provides an utf8
compliant casefold function to ldb.

- Fix toupper_m and tolower_m to not crash if
the case tables are not found

- Let load_case_table() search into the correct
directory in the search tree for the case
tables so that we can test utf8

Simo
(This used to be commit e12f070958eb3c144beb81c5cb878db122249021)
2007-10-10 13:51:47 -05:00
Stefan Metzmacher
1a53c1dc92 r13346: use private proto header files for the torture tests
metze
(This used to be commit 67837dbd2bcff8ec1917ba02884ee2eaa0776b46)
2007-10-10 13:51:47 -05:00
Stefan Metzmacher
289e9baa1d r13345: let us replicate with NT4sp6a
I don't yet know what the extra data in the start_association call mean...

This also let w2k use WREPL_REPL_INFORM messages to us, but w2k3 doesn't
it do it yet...

metze
(This used to be commit 02d6dfa1da754857c28125392a561cfde0087c48)
2007-10-10 13:51:47 -05:00
Andrew Bartlett
2e7f35f88f r13344: Trust SASL to have subtle distinctions between NULL and zero-length
responses...

Also trust OpenLDAP to be pedantic about it, breaking connections to AD.

In any case, we now get this 'right' (by nasty overloading hacks, but
hey), and we can now use system-supplied OpenLDAP libs and SASL/GSSAPI
to talk to Samba4.

Andrew Bartlett
(This used to be commit 0cbe18211a95f811b51865bc0e8729e9a302ad25)
2007-10-10 13:51:46 -05:00