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

497 Commits

Author SHA1 Message Date
Jelmer Vernooij
4682bc5ce0 r14492: Fix shared libs - set SO_VERSION to 0 everywhere for now. 2007-10-10 13:57:32 -05:00
Jelmer Vernooij
430c6516d3 r14484: Install more headers 2007-10-10 13:57:31 -05:00
Jelmer Vernooij
9c37f847d3 r14477: Remove the NOPROTO property - it's no longer used as proto.h is gone. 2007-10-10 13:57:30 -05:00
Jelmer Vernooij
3dd477ca51 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
2007-10-10 13:57:27 -05:00
Andrew Tridgell
2ec2894f72 r14409: quieten warnings 2007-10-10 13:57:19 -05:00
Jelmer Vernooij
f4de155c94 r14383: Fix non-developer build. 2007-10-10 13:57:17 -05:00
Jelmer Vernooij
1a16a6f1df r14380: Reduce the size of structs.h 2007-10-10 13:57:16 -05:00
Jelmer Vernooij
98c4c30513 r14363: Remove credentials.h from the global includes. 2007-10-10 13:57:14 -05:00
Jelmer Vernooij
7871b07e21 r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters:
- VERSION: should contain the current version. Will be made part of the filename.
 - SO_VERSION: should contain the latest version that this on is compatible to. Will be used for setting the soname of the shared library.

Fix sonames and use them on platforms that support them
Remove symlinking code. ldconfig will take care of creating the symlinks now
that we set the soname.
2007-10-10 13:57:12 -05:00
Andrew Tridgell
03da4fbcdd r14306: fixed two break errors 2007-10-10 13:57:10 -05:00
Andrew Tridgell
c791db60c8 r14305: fixed a memory leak and a break error 2007-10-10 13:57:10 -05:00
Andrew Bartlett
d1ca106f05 r14202: Oops. When removing a header, we need to replace it.
Andrew Bartlett
2007-10-10 13:57:00 -05:00
Andrew Bartlett
a512d5dd25 r14201: I don't think including roken is going to be a good solution. Let's
try and find the real solution.

Andrew Bartlett
2007-10-10 13:57:00 -05:00
Andrew Bartlett
2ab71ed518 r14180: The PAC isn't so special that it deserves a level 0 debug any more.
Andrew Bartlett
2007-10-10 13:56:58 -05:00
Stefan Metzmacher
af63ed9eb3 r14071: fix the build
metze
2007-10-10 13:54:01 -05:00
Stefan Metzmacher
be8874e9d3 r14070: this functions need to be exported,
it's ugly, but they're used in torture tests

I hope to find a better solution for this later...

metze
2007-10-10 13:54:01 -05:00
Stefan Metzmacher
91a3a0b795 r14065: build gensec_schannel always static as libnet needs functions from it
metze
2007-10-10 13:52:39 -05:00
Stefan Metzmacher
43733c9556 r14064: - split out MSRPC_PARSE into a speperate subsystem
- build gensec_ntlmssp always static for now, because torture/auth/ntlmssp.c
  needs to access functions from it

metze
2007-10-10 13:52:39 -05:00
Jelmer Vernooij
04c49e211f r13969: Make these names lowercase as well (just like they are now in the buildsystem) 2007-10-10 13:52:33 -05:00
Jelmer Vernooij
2c74698032 r13960: Generate makefile rules for installing/removing shared modules. 2007-10-10 13:52:32 -05:00
Jelmer Vernooij
2d655f0528 r13938: Around round of splitups 2007-10-10 13:52:29 -05:00
Jelmer Vernooij
930daa9f41 r13926: More header splitups. 2007-10-10 13:52:26 -05:00
Jelmer Vernooij
1228358767 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
2007-10-10 13:52:24 -05:00
Andrew Bartlett
c530ab5dc6 r13910: Fix the 'your password has expired' on every login. We now consider
if the 'password does not expire' flag has been set, filling in the
PAC and netlogon reply correctly if so.

Andrew Bartlett
2007-10-10 13:52:22 -05:00
Jelmer Vernooij
c80a8f1102 r13903: Don't generate prototypes for modules and binaries in include/proto.h by
default.
2007-10-10 13:52:21 -05:00
Jelmer Vernooij
936d26ae64 r13851: More doc improvements. 2007-10-10 13:52:16 -05:00
Jelmer Vernooij
991bec80e4 r13844: Remove _PUBLIC_ for now as the proto script seems to make false assumptions
about the data type being known.
2007-10-10 13:52:15 -05:00
Jelmer Vernooij
aac1b99b36 r13842: Make some more functions public. 2007-10-10 13:52:15 -05:00
Jelmer Vernooij
9a188eb1f4 r13840: Mark some functions as public. 2007-10-10 13:52:14 -05:00
Jelmer Vernooij
bca0e8054f r13655: Use new name of build header 2007-10-10 13:52:05 -05:00
Stefan Metzmacher
7b284174aa r13619: fix compiler warning
metze
2007-10-10 13:52:01 -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
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
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
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 Bartlett
0cbe18211a 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
2007-10-10 13:51:46 -05:00
Andrew Bartlett
3e46289775 r13342: Make the GSSAPI SASL mech actually work, by (shock horror) reading the spec.
GSSAPI differs from GSS-SPNEGO in an additional 3 packets, negotiating
a buffer size and what integrity protection/privacy should be used.

I worked off draft-ietf-sasl-gssapi-03, and this works against Win2k3.

I'm doing this in the hope that Apple clients as well as SASL-based
LDAP tools may get a bit further.

I still can't get ldapsearch to work, it fails with the ever-helpful
'Local error'.

Andrew Bartlett
2007-10-10 13:51:46 -05:00
Andrew Bartlett
c6eb74f429 r13252: Cleanup, both in code, comments and talloc use:
In particular, I've used the --leak-report-full option to smbd to
track down memory that shouldn't be on a long-term context.  This is
now talloc_free()ed much earlier.

Andrew Bartlett
2007-10-10 13:51:38 -05:00
Andrew Bartlett
3570a62876 r13250: I missed a couple of talloc_free()'s
Andrew Bartlett
2007-10-10 13:51:38 -05:00
Andrew Bartlett
85b3f6ebdd r13247: Try to make better use of talloc in the auth/ and auth/gensec code.
We don't want temporary memory hanging around on the long-term
contexts.

Andrew Bartlett
2007-10-10 13:51:37 -05:00
Andrew Bartlett
1e840aa436 r13245: Don't segfault if we don't have a credentials structure on this gensec
context.

Andrew Bartlett
2007-10-10 13:51:37 -05:00
Andrew Bartlett
1ac7976ea6 r13206: This patch finally re-adds a -k option that works reasonably.
From here we can add tests to Samba for kerberos, forcing it on and
off.  In the process, I also remove the dependency of credentials on
GENSEC.

This also picks up on the idea of bringing 'set_boolean' into general
code from jpeach's cifsdd patch.

Andrew Bartlett
2007-10-10 13:51:33 -05:00
Jelmer Vernooij
f7c28d3148 r13170: Remove some dependencies on -1 implying the size of pstring 2007-10-10 13:51:31 -05:00
Andrew Bartlett
849500d1aa r13107: Follow the lead of Heimdal's kpasswdd and use the HDB (hdb-ldb in our
case) as the keytab.

This avoids issues in replicated setups, as we will replicate the
kpasswd key correctly (including from windows, which is why I care at
the moment).

Andrew Bartlett
2007-10-10 13:51:26 -05:00
Tim Potter
e9ec3a379c r12971: Fix spelling. 2007-10-10 13:51:13 -05:00
Andrew Bartlett
01e98966ca r12927: Fix typo. 2007-10-10 13:51:07 -05:00