Andrew Tridgell
b0fb567f04
s4-waf: more dependencies on talloc
...
these are needed so we can support a system talloc without using the
bundled talloc.h
2010-04-06 20:27:13 +10:00
Andrew Tridgell
01682f797f
s4-waf: fixed some deps now we don't auto-include tevent and replace
...
this is preparation for being able to use system versions of these
libraries
2010-04-06 20:27:12 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
bd44f14d8f
s4-waf: enable the pc_files in the build rules
2010-04-06 20:27:10 +10:00
Andrew Tridgell
aa5e08eb83
s4-waf: install the rest of the headers
2010-04-06 20:27:09 +10:00
Andrew Tridgell
026690af00
s4-waf: remove the need for some of the lib aliases
2010-04-06 20:27:05 +10:00
Andrew Tridgell
81d155af96
build: check libc first for several libraries
2010-04-06 20:26:56 +10:00
Andrew Tridgell
5db5772db1
build: fixed the build without sasl libraries
...
We need to only enable the cyrus_sasl module if we have sasl/sasl.h
2010-04-06 20:26:49 +10:00
Andrew Tridgell
844acb2260
build: waf quicktest nearly works
...
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
845e0cbe6f
build: commit all the waf build files in the tree
2010-04-06 20:26:48 +10:00
Andrew Tridgell
64ba3c7672
build: check for libsasl2
2010-04-06 20:26:44 +10:00
Andrew Tridgell
71b5f97cd0
build: check for pam
2010-04-06 20:26:44 +10:00
Matthias Dieter Wallnöfer
6d6c551d26
Revert "s4:gensec_gssapi.c - make sure that "GSS_C_DELEG_POLICY_FLAG" is available"
...
This reverts commit 3e091a8216
.
This should be fixed through the new build system when it lands in "master".
2010-04-05 12:06:49 +02:00
Jelmer Vernooij
aed295b97e
s4-python: Remove convenience macro PyErr_SetStringError.
...
This macro assumed that all errors were runtime errors.
2010-04-04 00:22:29 +02:00
Matthias Dieter Wallnöfer
3e091a8216
s4:gensec_gssapi.c - make sure that "GSS_C_DELEG_POLICY_FLAG" is available
...
FreeBSD 7.2 needs this.
2010-03-30 17:42:51 +02:00
Andrew Tridgell
7ed349cace
pytalloc: allow for using a system libtalloc-dev with pytalloc
...
When we have a system talloc library, we still need to grab pytalloc.h
from lib/talloc. We don't want to just use -Ilib/talloc, as otherwise
we'll get the in-tree talloc.h which may not be compatible with the
system talloc.h
So we need to give the path to pytalloc.h
2010-03-29 21:34:29 +11:00
Matthias Dieter Wallnöfer
d570a0af0b
s4:auth/credentials/credentials.c - initialise more content
...
Now all data should be initialised
2010-03-26 18:14:11 +01:00
Andrew Tridgell
fae84f98e3
libutil: moved the networking defines to util_net.h
...
These were causing thousands of warnings on solaris8
2010-03-26 17:36:02 +11:00
Stefan Metzmacher
25a89b7015
s4:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state union
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:54 +01:00
Stefan Metzmacher
598bfdcfd8
s4:ntlmssp: make use of dump_arc4_state()
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:54 +01:00
Stefan Metzmacher
48d8157879
s4:ntlmssp: copy dump_arc4_state() from source3
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:53 +01:00
Stefan Metzmacher
a69260642e
s4:ntlmssp: avoid usage of calc_ntlmv2_key_talloc()
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:53 +01:00
Stefan Metzmacher
00f99a3df5
s4:ntlmssp: make use of calc_ntlmv2_key() for seal keys
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:53 +01:00
Stefan Metzmacher
fc120dd758
s4:ntlmssp: add calc_ntlmv2_key() from source3
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:53 +01:00
Stefan Metzmacher
e0c7d9c8aa
s4:ntlmssp: rename calc_ntlmv2_key => calc_ntlmv2_key_talloc
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:53 +01:00
Stefan Metzmacher
c64e6e0a0f
s4:ntlmssp: inline ntlmssp_weakend_keys()
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:52 +01:00
Stefan Metzmacher
3220c84b72
s4:ntlmssp: use a 'bool ok' helper variable to make the code more readable
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:52 +01:00
Stefan Metzmacher
e669ee4c9d
s4:ntlmssp: fix some formating
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:52 +01:00
Stefan Metzmacher
44ce126b84
s4:ntlmssp: move doing_ntlm2 to ntlmssp_server_auth_state
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:52 +01:00
Stefan Metzmacher
40395eee5b
s4:ntlmssp: move NTLM2 session_nonce to ntlmssp_server_auth_state
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:52 +01:00
Stefan Metzmacher
1b20f7192a
s4:ntlmssp: move encrypted_session_key to ntlmssp_server_auth_state
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:52 +01:00
Stefan Metzmacher
a56ae60851
s4:ntlmssp: keep a ntlmssp_server_auth_state to transport variables from preauth to postauth hooks
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:52 +01:00
Stefan Metzmacher
a42cad635f
s4:ntlmssp: remove unused server_multiple_authentications feature.
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:52 +01:00
Stefan Metzmacher
d3e7266676
s4:ntlmssp: rename gensec_ntlmssp_state => ntlmssp_state
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:51 +01:00
Stefan Metzmacher
706333856b
s4:ntlmssp: split gensec_ntlmssp_unseal_packet() and ntlmssp_unseal_packet()
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:51 +01:00
Stefan Metzmacher
d4c2f252da
s4:ntlmssp: split gensec_ntlmssp_seal_packet() and ntlmssp_seal_packet()
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:51 +01:00
Stefan Metzmacher
1564b2a94b
s4:ntlmssp: split gensec_ntlmssp_check_packet() and ntlmssp_check_packet()
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:51 +01:00
Stefan Metzmacher
23507c022f
s4:ntlmssp: split gensec_ntlmssp_sign_packet() and ntlmssp_sign_packet()
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:51 +01:00
Stefan Metzmacher
b47a849df2
s4:ntlmssp: make user a 'const char *' in (gensec_)ntlmssp_state
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:51 +01:00
Stefan Metzmacher
36669bfcf1
s4:ntlmssp: remove server_name from (gensec_)ntlmssp_state and fill the server.* fields also for the client
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:51 +01:00
Stefan Metzmacher
282a2d8591
s4:ntlmssp: calculate server names at startup and store them in (gensec_)ntlmssp_state->server.*
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:50 +01:00
Stefan Metzmacher
133a3e4ce8
s4:ntlmssp: replace server_role by a server.is_standalone in (gensec_)ntlmssp_state
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:50 +01:00
Stefan Metzmacher
c33e72b8c5
s4:ntlmssp: remove more whitespaces...
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:50 +01:00
Stefan Metzmacher
4ab94f5836
s4:ntlmssp: add NTLMSSP_FEATURE_* flags from s3
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:50 +01:00
Stefan Metzmacher
ee240799b6
s4:ntlmssp: keep struct gensec_ntlmssp_context in gensec_security->private_data
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:50 +01:00
Stefan Metzmacher
a0522a5b26
s4:ntlmssp: remove gensec_security from (gensec_)ntlmssp_state
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:50 +01:00
Stefan Metzmacher
32d822af81
s4:ntlmssp: remove backend specifix stuff from (gensec_)ntlmssp_state
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:50 +01:00
Stefan Metzmacher
83cc137d5e
s4:ntlmssp: create a gensec_ntlmssp_context between gensec_security and ntlmssp_state
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:49 +01:00
Stefan Metzmacher
8df01705bf
s4:ntlmssp: add definition of gensec_ntlmssp_context
...
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:49 +01:00
Stefan Metzmacher
bd550df322
s4:ntlmssp: add a callback_private pointer to gensec_ntlmssp_state
...
We'll remove any gensec specific stuff from gensec_ntlmssp_state
and rename it to ntlmssp_state again.
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:48 +01:00