1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

8183 Commits

Author SHA1 Message Date
Günther Deschner
0d918764b1 r13632: The "password_properties" is a bitmask as well.
Guenther
2007-10-10 13:52:03 -05:00
Günther Deschner
abad44a57d r13631: Add DOMAIN_PASSWORD_LOCKOUT_ADMINS (this bit only allows to lockout
Administrator, not Domain Admins in general).

Guenther
2007-10-10 13:52:03 -05:00
Günther Deschner
fa1127c545 r13630: Add new ACB-bits as seen in acct_flags in the PAC info3
(merge from Samba 3).

Guenther
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
fbd78b6272 r13629: export env-vars
metze
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
7f1de54c84 r13628: fix the logic:-)
metze
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
ae559920e1 r13627: split the NBT-WINSREPLICATION tests into multiple tests
metze
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
2acf203949 r13626: fix make test
metze
2007-10-10 13:52:02 -05:00
Stefan Metzmacher
3c8bc98c1b r13624: as abartlet requested, move the saslauthd parsing stuff to a seperate file
metze
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
e1611b6221 r13623: - make sure ntvfs_map_qfileinfo isn't used for async replies
- add some comments

metze
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
d003654b1c r13621: add an idl structure to parse saslauthd requests
metze
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
7cf1423bc8 r13620: initialize the CMD with 0 too
metze
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
7b284174aa r13619: fix compiler warning
metze
2007-10-10 13:52:01 -05:00
Stefan Metzmacher
252d5edfb5 r13618: fix compiler warning
metze
2007-10-10 13:52:00 -05:00
Stefan Metzmacher
082f418fab r13617: fix compiler warning
metze
2007-10-10 13:52:00 -05:00
Andrew Bartlett
424df1bb36 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
2007-10-10 13:51:59 -05:00
Simo Sorce
d5b467b7c1 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
2007-10-10 13:51:59 -05:00
Simo Sorce
1e2c13b2d5 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
2007-10-10 13:51:59 -05:00
Andrew Bartlett
d0b8957f38 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
2007-10-10 13:51:59 -05:00
Andrew Bartlett
b0e7a58cc9 r13605: Use $BASEDN to ensure this works outside of the 'make test' rig.
Andrew Bartlett
2007-10-10 13:51:58 -05:00
Simo Sorce
8483f61a1d r13592: Incredible how bugs like this can sweep in even after peer review and testing ... 2007-10-10 13:51:58 -05:00
Andrew Bartlett
cb5d18c619 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
2007-10-10 13:51:58 -05:00
Andrew Bartlett
341a0abeb4 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
2007-10-10 13:51:58 -05:00
Andrew Bartlett
06ddac2bb1 r13582: Indent 2007-10-10 13:51:58 -05:00
Simo Sorce
cbbc0d7cc4 r13580: fix broken client side sort 2007-10-10 13:51:57 -05:00
Jelmer Vernooij
2b3d56e153 r13577: Move some (possibly system-defined) defines to replace.h 2007-10-10 13:51:57 -05:00
Rafal Szczesniak
7dde77942b r13572: Comments to async pipe open functions and copyright note.
rafal
2007-10-10 13:51:57 -05:00
Rafal Szczesniak
9ef2275f61 r13568: Comments to async rpc connect functions.
rafal
2007-10-10 13:51:57 -05:00
Rafal Szczesniak
789f9d43db 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
2007-10-10 13:51:57 -05:00
Andrew Bartlett
273cb8fd42 r13551: Add an accessor function for the user sid.
Andrew Bartlett
2007-10-10 13:51:57 -05:00
Andrew Bartlett
02ff22a250 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
2007-10-10 13:51:56 -05:00
Stefan Metzmacher
54f0b19c55 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
2007-10-10 13:51:56 -05:00
Stefan Metzmacher
a1bbf7f298 r13507: the 'data' element of LDAP controls is optional.
(prepare the next commit)

metze
2007-10-10 13:51:56 -05:00
Stefan Metzmacher
1db9501c52 r13506: zero memory as some ASN.1 elements are optional, and we should initialize
them for the internal use...

found by 'make valgrindtest'

metze
2007-10-10 13:51:56 -05:00
Andrew Tridgell
d004e250b6 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
2007-10-10 13:51:56 -05:00
Andrew Tridgell
172e41596f 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
2007-10-10 13:51:55 -05:00
Andrew Bartlett
cfd0df16b7 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
2007-10-10 13:51:55 -05:00
Andrew Bartlett
b90959f796 r13480: Explain a little about how these credentials structures should be used.
Andrew Bartlett
2007-10-10 13:51:55 -05:00
Andrew Bartlett
e1de45bce4 r13479: Return the joined domain SID and user SID as structures, not strings.
Andrew Bartlett
2007-10-10 13:51:55 -05:00
Andrew Bartlett
990da31b5f 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
2007-10-10 13:51:54 -05:00
Andrew Bartlett
16e5c96875 r13471: With more 'try all options' testing, I found this 'simple' but in the
NTLM2 signing code.

Andrew Bartlett
2007-10-10 13:51:54 -05:00
Andrew Bartlett
3fd32a1209 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
2007-10-10 13:51:54 -05:00
Andrew Bartlett
2b3b2f33a4 r13467: Add new parametric options (for testing) controlling LM_KEY and 56-bit
encryption behaviour.

Andrew Bartlett
2007-10-10 13:51:54 -05:00
Andrew Bartlett
f075497926 r13466: Make it easier to understand what this function actually does.
Andrew Bartlett
2007-10-10 13:51:53 -05:00
Andrew Bartlett
3e96975d91 r13405: Allow a fallback if SPNEGO is somehow disabled in the client, to just NTLMSSP.
Andrew Bartlett
2007-10-10 13:51:53 -05:00
Andrew Bartlett
04e2fe8b6d r13404: Comments, whitespace.
Andrew Bartlett
2007-10-10 13:51:53 -05:00
Andrew Bartlett
7f821097fb 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
2007-10-10 13:51:53 -05:00
Andrew Bartlett
982a6aa871 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
2007-10-10 13:51:53 -05:00
Andrew Tridgell
487b374b43 r13401: remove the rename of the snprintf functions that simo accidentially
included in his last commit
2007-10-10 13:51:52 -05:00
James Peach
1ab4674196 r13400: Only return NULL from talloc_asprintf if vsnprintf returns an
error (ie. zero is not an error).
2007-10-10 13:51:52 -05:00
James Peach
23782f899a r13397: Propagate the error return from vsnprintf to trap the case where
we aren't linked against a C99 vsnprintf.
2007-10-10 13:51:52 -05:00