ira/wip.git
14 years agos3-event: switch s3 to using tevent_re_initialise()
Andrew Tridgell [Fri, 26 Mar 2010 11:07:50 +0000 (22:07 +1100)]
s3-event: switch s3 to using tevent_re_initialise()

This correctly initialises the event backend, and checks for errors

(thanks to Metze for suggesting this)

14 years agos4-smbd: use tevent_re_initialise()
Andrew Tridgell [Fri, 26 Mar 2010 10:13:55 +0000 (21:13 +1100)]
s4-smbd: use tevent_re_initialise()

This fixes a crash bug on startup

14 years agotevent: added tevent_re_initialise()
Andrew Tridgell [Fri, 26 Mar 2010 10:13:27 +0000 (21:13 +1100)]
tevent: added tevent_re_initialise()

This allows us to re-initialise a tevent context without destroying
the pointer. That means that if someone keeps a long term ptr to the
event context across a fork it will still work.

This also brings the memory handling in single and standard process
models much closer together, which means less bugs that we don't find
with make test.

14 years agoutil: on FreeBSD true is in /usr/bin. Use execvp to find it
Andrew Tridgell [Fri, 26 Mar 2010 08:03:22 +0000 (19:03 +1100)]
util: on FreeBSD true is in /usr/bin. Use execvp to find it

14 years agolibutil: moved the networking defines to util_net.h
Andrew Tridgell [Fri, 26 Mar 2010 06:36:02 +0000 (17:36 +1100)]
libutil: moved the networking defines to util_net.h

These were causing thousands of warnings on solaris8

14 years agolibreplace: strerror_r() is needed by heimdal on solaris8
Andrew Tridgell [Fri, 26 Mar 2010 05:50:24 +0000 (16:50 +1100)]
libreplace: strerror_r() is needed by heimdal on solaris8

14 years agos4-drs: replmd_delete with the 3 stage deletion recycle bin
Eduardo Lima [Wed, 24 Mar 2010 19:21:15 +0000 (16:21 -0300)]
s4-drs: replmd_delete with the 3 stage deletion recycle bin

14 years agotsocket: not all systems have IPV6_V6ONLY
Andrew Tridgell [Thu, 25 Mar 2010 05:42:19 +0000 (16:42 +1100)]
tsocket: not all systems have IPV6_V6ONLY

14 years agoSecond part of bug #7288 - SMB job IDs in CUPS job names wrong.
Jeremy Allison [Fri, 26 Mar 2010 01:20:33 +0000 (18:20 -0700)]
Second part of bug #7288 - SMB job IDs in CUPS job names wrong.

Forgot to delete the overload of the smbjob bool.

Jeremy.

14 years agoFix bug #7288 - SMB job IDs in CUPS job names wrong.
Jeremy Allison [Fri, 26 Mar 2010 00:36:47 +0000 (17:36 -0700)]
Fix bug #7288 - SMB job IDs in CUPS job names wrong.

Based on a patch from Michael Karcher <samba@mkarcher.dialup.fu-berlin.de>.

I think this is the correct fix. It causes cups_job_submit to use
print_parse_jobid(), which I've moved into printing/lpq_parse.c (to allow the
link to work).

It turns out the old print_parse_jobid() was *broken*, in that the pjob
filename was set as an absolute path - not relative to the sharename (due to it
not going through the VFS calls).

This meant that the original code doing a strncmp on the first part of the
filename would always fail - it starts with a "/", not the relative pathname of
PRINT_SPOOL_PREFIX ("smbprn.").

This fix could fix some other mysterious printing bugs - probably the ones
Guenther noticed where job control fails on non-cups backends.

Guenther PLEASE CHECK !

Jeremy.

14 years agoFix bug 7297 - smbd crashes with CUPS printers and no [printers] share defined.
Jeremy Allison [Fri, 26 Mar 2010 00:09:23 +0000 (17:09 -0700)]
Fix bug 7297 - smbd crashes with CUPS printers and no [printers] share defined.

Ensure we don't dereference an array with an index of -1.

Jeremy.

14 years agos3: vfs_smb_traffic_analyzer.c: remove warnings from developer build
Holger Hetterich [Mon, 22 Mar 2010 14:05:33 +0000 (15:05 +0100)]
s3: vfs_smb_traffic_analyzer.c: remove warnings from developer build

This patch should remove all warnings coming up when compiling
traffic analyzer with configure.developer.

Re-activate the smb_traffic_analyzer_rmdir function by adding it's
vfs_fn_pointer to vfs_smb_traffic_analyzer_fns.

Copy the mode_t used in smb_traffic_analyzer_open to the corresponding
data structure.

14 years agos3:passdb: avoid sid_to_gid() if the sid is "domain users"
Stefan Metzmacher [Thu, 25 Mar 2010 19:59:49 +0000 (20:59 +0100)]
s3:passdb: avoid sid_to_gid() if the sid is "domain users"

If the call fails we would use the "domain users" sid anyway.

metze

14 years agos4:libcli/wrepl: correctly remove the tstream_context when the connection is dead
Stefan Metzmacher [Thu, 25 Mar 2010 16:58:19 +0000 (17:58 +0100)]
s4:libcli/wrepl: correctly remove the tstream_context when the connection is dead

metze

14 years agos4-smbtorture: fix include of proto header in main RAP test.
Günther Deschner [Thu, 25 Mar 2010 17:36:12 +0000 (18:36 +0100)]
s4-smbtorture: fix include of proto header in main RAP test.

Guenther

14 years agos3: Fix a missing </listitem> in vfs_crossrename.8.xml
Torsten Kurbad [Thu, 25 Mar 2010 16:58:27 +0000 (17:58 +0100)]
s3: Fix a missing </listitem> in vfs_crossrename.8.xml

14 years agos3: Add a comment to notify_internal_parent_init, this is pretty confusing
Volker Lendecke [Thu, 25 Mar 2010 15:45:02 +0000 (16:45 +0100)]
s3: Add a comment to notify_internal_parent_init, this is pretty confusing

14 years agos3: Add a comment to serverid_parent_init, this is pretty confusing
Volker Lendecke [Thu, 25 Mar 2010 15:44:41 +0000 (16:44 +0100)]
s3: Add a comment to serverid_parent_init, this is pretty confusing

14 years agos3: Add a comment to messaging_tdb_parent_init, this is pretty confusing
Volker Lendecke [Thu, 25 Mar 2010 15:44:02 +0000 (16:44 +0100)]
s3: Add a comment to messaging_tdb_parent_init, this is pretty confusing

14 years agos3: Make sure our CLEAR_IF_FIRST optimization works for serverid.tdb
Volker Lendecke [Thu, 25 Mar 2010 15:02:54 +0000 (16:02 +0100)]
s3: Make sure our CLEAR_IF_FIRST optimization works for serverid.tdb

In the child, we fully re-open serverid.tdb, which leads to one fcntl lock for
CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds
it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.

14 years agos3: Make sure our CLEAR_IF_FIRST optimization works for the notify tdbs
Volker Lendecke [Thu, 25 Mar 2010 15:01:54 +0000 (16:01 +0100)]
s3: Make sure our CLEAR_IF_FIRST optimization works for the notify tdbs

The notify tdb files are opened at tconX time, which leads to one fcntl lock
for CLEAR_IF_FIRST detection per smbd. This opens the tdbs in the parent and
holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.

14 years agos3: Make sure our CLEAR_IF_FIRST optimization works for messaging.tdb
Volker Lendecke [Thu, 25 Mar 2010 14:59:41 +0000 (15:59 +0100)]
s3: Make sure our CLEAR_IF_FIRST optimization works for messaging.tdb

In the child, we fully re-open messaging.tdb, which leads to one fcntl lock for
CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds
it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.

14 years agos3: Fix some nonempty blank lines
Volker Lendecke [Thu, 25 Mar 2010 14:43:47 +0000 (15:43 +0100)]
s3: Fix some nonempty blank lines

14 years agos3-selftest: enable RAP-RPC test against s3.
Günther Deschner [Thu, 25 Mar 2010 13:40:40 +0000 (14:40 +0100)]
s3-selftest: enable RAP-RPC test against s3.

Guenther

14 years agos3-selftest: add RAP-RPC testsuite for crosschecking RAP and DCERPC calls.
Günther Deschner [Thu, 25 Mar 2010 12:17:05 +0000 (13:17 +0100)]
s3-selftest: add RAP-RPC testsuite for crosschecking RAP and DCERPC calls.

Guenther

14 years agos4-smbtorture: fix drsblobs ndr torture test.
Günther Deschner [Thu, 25 Mar 2010 10:02:33 +0000 (11:02 +0100)]
s4-smbtorture: fix drsblobs ndr torture test.

Guenther

14 years agos3: re-run make samba3-idl.
Günther Deschner [Thu, 25 Mar 2010 10:02:10 +0000 (11:02 +0100)]
s3: re-run make samba3-idl.

Guenther

14 years agodrsblobs: remove utf8string2 from ForestTrustData.
Günther Deschner [Thu, 25 Mar 2010 09:56:15 +0000 (10:56 +0100)]
drsblobs: remove utf8string2 from ForestTrustData.

Simo, it's not really worth to add a new idl type just for being able to omit
the size field. The size field is part of the spec in MS-ADTS 7.1.6.9.3.1 so we
should have it as well.

Guenther

14 years agos4-smbtorture: activate job control tests against s3 in spoolss tests.
Günther Deschner [Thu, 25 Mar 2010 09:20:14 +0000 (10:20 +0100)]
s4-smbtorture: activate job control tests against s3 in spoolss tests.

Spoolss job control commands work for cups in s3 now but not for other
backends. We need to investigate why.

Guenther

14 years agotdb: Fix indentation in tdb_new_database()
Volker Lendecke [Thu, 25 Mar 2010 09:29:41 +0000 (10:29 +0100)]
tdb: Fix indentation in tdb_new_database()

14 years agoFix some nonempty blank lines
Volker Lendecke [Thu, 25 Mar 2010 09:19:48 +0000 (10:19 +0100)]
Fix some nonempty blank lines

14 years agos4:selftest Add testing of kpasswd password set on servicePrincipalName
Andrew Bartlett [Thu, 25 Mar 2010 05:30:54 +0000 (16:30 +1100)]
s4:selftest Add testing of kpasswd password set on servicePrincipalName

14 years agos4:kdc Add support for changing password of a servicePrincipalName
Andrew Bartlett [Thu, 25 Mar 2010 05:27:40 +0000 (16:27 +1100)]
s4:kdc Add support for changing password of a servicePrincipalName

Apparently AD supports setting a password on a servicePrincipalName,
not just a user principal name.  This should fix (part of) the join of
OpenSolaris's internal CIFS server to Samba4 as reported by Bug #7273

Andrew Bartlett

14 years agos4-ldb: fixed command line parsing in oLschema2ldif
Andrew Tridgell [Thu, 25 Mar 2010 04:45:08 +0000 (15:45 +1100)]
s4-ldb: fixed command line parsing in oLschema2ldif

It really doesn't make sense to use the ldb command line code

14 years agos4-ldb: removed unused command line options -I and -O
Andrew Tridgell [Thu, 25 Mar 2010 04:06:40 +0000 (15:06 +1100)]
s4-ldb: removed unused command line options -I and -O

These are not used anywehere, so they just confuse people

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

14 years agos4-drs: If we are a RODC then do not send DSReplicaSync messages
Fernando J V da Silva [Wed, 24 Mar 2010 16:02:36 +0000 (13:02 -0300)]
s4-drs: If we are a RODC then do not send DSReplicaSync messages

14 years agopython: use '#!/usr/bin/env python' to cope with varying install locations
Andrew Tridgell [Wed, 24 Mar 2010 05:50:50 +0000 (16:50 +1100)]
python: use '#!/usr/bin/env python' to cope with varying install locations

this should be much more portable

14 years agoFix bug #7269 - Job management commands don't work for CUPS queues.
Michael Karcher [Thu, 25 Mar 2010 00:33:21 +0000 (17:33 -0700)]
Fix bug #7269 - Job management commands don't work for CUPS queues.

Samba needs to retrieve pjob->sysjob from the CUPS response (as
is done in the iprint backend).

14 years agos3-selftest: move printing config to global section.
Günther Deschner [Wed, 24 Mar 2010 23:55:32 +0000 (00:55 +0100)]
s3-selftest: move printing config to global section.

"make test" variant.

Guenther

14 years agos3-selftest: move printing config to global section.
Günther Deschner [Wed, 24 Mar 2010 23:55:13 +0000 (00:55 +0100)]
s3-selftest: move printing config to global section.

Guenther

14 years agos4-smbtorture: add print test to RPC-SPOOLSS-PRINTER as well.
Günther Deschner [Wed, 24 Mar 2010 23:49:38 +0000 (00:49 +0100)]
s4-smbtorture: add print test to RPC-SPOOLSS-PRINTER as well.

Guenther

14 years agos4-smbtorture: create several printjobs during print test in RPC-SPOOLSS.
Günther Deschner [Wed, 24 Mar 2010 23:37:45 +0000 (00:37 +0100)]
s4-smbtorture: create several printjobs during print test in RPC-SPOOLSS.

Guenther

14 years agos4-smbtorture: mention job id in GetJob test output in RPC-SPOOLSS.
Günther Deschner [Wed, 24 Mar 2010 23:48:55 +0000 (00:48 +0100)]
s4-smbtorture: mention job id in GetJob test output in RPC-SPOOLSS.

Guenther

14 years agos4-smbtorture: mention job id in SetJob test output in RPC-SPOOLSS.
Günther Deschner [Wed, 24 Mar 2010 23:33:35 +0000 (00:33 +0100)]
s4-smbtorture: mention job id in SetJob test output in RPC-SPOOLSS.

Guenther

14 years agoFix bug #7233 - print fails with jobs >4GB from Win7 clients.
Jeremy Allison [Wed, 24 Mar 2010 19:47:01 +0000 (12:47 -0700)]
Fix bug #7233 - print fails with jobs >4GB from Win7 clients.

Ensure we always write at end-of-file for older write calls.

Jeremy.

14 years agoMissing include guard in source4/libcli/security/security.h
Jeremy Allison [Wed, 24 Mar 2010 19:20:03 +0000 (12:20 -0700)]
Missing include guard in source4/libcli/security/security.h

Jeremy.

14 years agoFix bug #7283 - vfs_acl_tdb does not work as expected.
Jeremy Allison [Wed, 24 Mar 2010 17:31:43 +0000 (10:31 -0700)]
Fix bug #7283 - vfs_acl_tdb does not work as expected.

both vfs_acl_common.c and vfs_acl_tdb.c were using the connection
handle, thus conflicted. Fix this.

Jeremy.

14 years agoFix valgrind warning when source and dest stat are identical.
Jeremy Allison [Wed, 24 Mar 2010 17:31:14 +0000 (10:31 -0700)]
Fix valgrind warning when source and dest stat are identical.

Jeremy.

14 years agos4-smbtorture: add drsblobs ndr torture test.
Günther Deschner [Wed, 24 Mar 2010 17:08:21 +0000 (18:08 +0100)]
s4-smbtorture: add drsblobs ndr torture test.

Guenther

14 years agos4-smbtorture: move up torture_assert_sid_equal at least to the torture/ndr level.
Günther Deschner [Wed, 24 Mar 2010 17:29:52 +0000 (18:29 +0100)]
s4-smbtorture: move up torture_assert_sid_equal at least to the torture/ndr level.

Guenther

14 years agos4-selftest: use correct test names.
Günther Deschner [Wed, 24 Mar 2010 16:37:07 +0000 (17:37 +0100)]
s4-selftest: use correct test names.

Guenther

14 years agos3:ntlmssp: use c99 types
Stefan Metzmacher [Sat, 16 Jan 2010 08:32:35 +0000 (09:32 +0100)]
s3:ntlmssp: use c99 types

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: use client.netbios_name instead of workstation
Stefan Metzmacher [Wed, 30 Dec 2009 15:53:08 +0000 (16:53 +0100)]
s3:ntlmssp: use client.netbios_name instead of workstation

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: remove unused ntlmssp_set_workstation()
Stefan Metzmacher [Wed, 30 Dec 2009 13:20:31 +0000 (14:20 +0100)]
s3:ntlmssp: remove unused ntlmssp_set_workstation()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state union
Stefan Metzmacher [Sat, 9 Jan 2010 13:38:35 +0000 (14:38 +0100)]
s3:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state union

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: add const for *sig in ntlmssp_unseal_packet()
Stefan Metzmacher [Sat, 9 Jan 2010 10:30:39 +0000 (11:30 +0100)]
s3:ntlmssp: add const for *sig in ntlmssp_unseal_packet()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: make whole_pdu const for ntlmssp_[un]seal_packet()
Stefan Metzmacher [Wed, 6 Jan 2010 16:14:25 +0000 (17:14 +0100)]
s3:ntlmssp: make whole_pdu const for ntlmssp_[un]seal_packet()

Only data needs to be non-const.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: use a 'bool ok' variable to make the code more readable
Stefan Metzmacher [Thu, 7 Jan 2010 09:43:23 +0000 (10:43 +0100)]
s3:ntlmssp: use a 'bool ok' variable to make the code more readable

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: fix some formating
Stefan Metzmacher [Sat, 9 Jan 2010 13:06:27 +0000 (14:06 +0100)]
s3:ntlmssp: fix some formating

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: inline ntlmssp_weaken_keys()
Stefan Metzmacher [Wed, 6 Jan 2010 14:45:38 +0000 (15:45 +0100)]
s3:ntlmssp: inline ntlmssp_weaken_keys()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: make send_seal_key and recv_seal_key local variables
Stefan Metzmacher [Wed, 6 Jan 2010 14:22:24 +0000 (15:22 +0100)]
s3:ntlmssp: make send_seal_key and recv_seal_key local variables

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: rename void *auth_context; into void *callback_private;
Stefan Metzmacher [Wed, 30 Dec 2009 13:53:08 +0000 (14:53 +0100)]
s3:ntlmssp: rename void *auth_context; into void *callback_private;

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: add some consts
Stefan Metzmacher [Wed, 30 Dec 2009 14:23:16 +0000 (15:23 +0100)]
s3:ntlmssp: add some consts

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: remove unused get_global_myname() and get_domain() from ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 13:17:51 +0000 (14:17 +0100)]
s3:ntlmssp: remove unused get_global_myname() and get_domain() from ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store them
Stefan Metzmacher [Wed, 30 Dec 2009 13:13:45 +0000 (14:13 +0100)]
s3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store them

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: remove server_name from ntlmssp_state and fill the server.* fields also...
Stefan Metzmacher [Wed, 30 Dec 2009 12:29:54 +0000 (13:29 +0100)]
s3:ntlmssp: remove server_name from 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>
14 years agos3:ntlmssp: pass names to ntlmssp_server_start() and store them in ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 10:55:23 +0000 (11:55 +0100)]
s3:ntlmssp: pass names to ntlmssp_server_start() and store them in ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: replace server_role by a server.is_standalone in ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 09:07:32 +0000 (10:07 +0100)]
s3:ntlmssp: replace server_role by a server.is_standalone in ntlmssp_state

Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: make use of C99 types in ntlmssp_sign.c
Stefan Metzmacher [Tue, 29 Dec 2009 16:25:47 +0000 (17:25 +0100)]
s3:ntlmssp: make use of C99 types in ntlmssp_sign.c

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3:ntlmssp: use uint8_t in calc_ntlmv2_key()
Stefan Metzmacher [Tue, 29 Dec 2009 16:25:20 +0000 (17:25 +0100)]
s3:ntlmssp: use uint8_t in calc_ntlmv2_key()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state union
Stefan Metzmacher [Thu, 7 Jan 2010 09:10:13 +0000 (10:10 +0100)]
s4:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state union

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: make use of dump_arc4_state()
Stefan Metzmacher [Fri, 8 Jan 2010 21:11:10 +0000 (14:11 -0700)]
s4:ntlmssp: make use of dump_arc4_state()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: copy dump_arc4_state() from source3
Stefan Metzmacher [Wed, 6 Jan 2010 15:59:35 +0000 (16:59 +0100)]
s4:ntlmssp: copy dump_arc4_state() from source3

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: avoid usage of calc_ntlmv2_key_talloc()
Stefan Metzmacher [Fri, 8 Jan 2010 20:58:42 +0000 (13:58 -0700)]
s4:ntlmssp: avoid usage of calc_ntlmv2_key_talloc()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: make use of calc_ntlmv2_key() for seal keys
Stefan Metzmacher [Fri, 8 Jan 2010 20:49:54 +0000 (13:49 -0700)]
s4:ntlmssp: make use of calc_ntlmv2_key() for seal keys

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: add calc_ntlmv2_key() from source3
Stefan Metzmacher [Fri, 8 Jan 2010 20:37:43 +0000 (13:37 -0700)]
s4:ntlmssp: add calc_ntlmv2_key() from source3

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: rename calc_ntlmv2_key => calc_ntlmv2_key_talloc
Stefan Metzmacher [Fri, 8 Jan 2010 20:36:37 +0000 (13:36 -0700)]
s4:ntlmssp: rename calc_ntlmv2_key => calc_ntlmv2_key_talloc

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: inline ntlmssp_weakend_keys()
Stefan Metzmacher [Fri, 8 Jan 2010 20:07:33 +0000 (13:07 -0700)]
s4:ntlmssp: inline ntlmssp_weakend_keys()

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: use a 'bool ok' helper variable to make the code more readable
Stefan Metzmacher [Wed, 6 Jan 2010 15:58:52 +0000 (16:58 +0100)]
s4:ntlmssp: use a 'bool ok' helper variable to make the code more readable

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: fix some formating
Stefan Metzmacher [Thu, 7 Jan 2010 09:24:12 +0000 (10:24 +0100)]
s4:ntlmssp: fix some formating

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: move doing_ntlm2 to ntlmssp_server_auth_state
Stefan Metzmacher [Wed, 6 Jan 2010 13:53:30 +0000 (14:53 +0100)]
s4:ntlmssp: move doing_ntlm2 to ntlmssp_server_auth_state

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: move NTLM2 session_nonce to ntlmssp_server_auth_state
Stefan Metzmacher [Tue, 5 Jan 2010 17:24:02 +0000 (18:24 +0100)]
s4:ntlmssp: move NTLM2 session_nonce to ntlmssp_server_auth_state

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: move encrypted_session_key to ntlmssp_server_auth_state
Stefan Metzmacher [Tue, 5 Jan 2010 17:21:10 +0000 (18:21 +0100)]
s4:ntlmssp: move encrypted_session_key to ntlmssp_server_auth_state

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: keep a ntlmssp_server_auth_state to transport variables from preauth...
Stefan Metzmacher [Tue, 5 Jan 2010 17:18:29 +0000 (18:18 +0100)]
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>
14 years agos4:ntlmssp: remove unused server_multiple_authentications feature.
Stefan Metzmacher [Tue, 5 Jan 2010 16:51:53 +0000 (17:51 +0100)]
s4:ntlmssp: remove unused server_multiple_authentications feature.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: rename gensec_ntlmssp_state => ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 16:57:54 +0000 (17:57 +0100)]
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>
14 years agos4:ntlmssp: split gensec_ntlmssp_unseal_packet() and ntlmssp_unseal_packet()
Stefan Metzmacher [Wed, 30 Dec 2009 15:02:37 +0000 (16:02 +0100)]
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>
14 years agos4:ntlmssp: split gensec_ntlmssp_seal_packet() and ntlmssp_seal_packet()
Stefan Metzmacher [Wed, 30 Dec 2009 15:02:37 +0000 (16:02 +0100)]
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>
14 years agos4:ntlmssp: split gensec_ntlmssp_check_packet() and ntlmssp_check_packet()
Stefan Metzmacher [Wed, 30 Dec 2009 15:01:28 +0000 (16:01 +0100)]
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>
14 years agos4:ntlmssp: split gensec_ntlmssp_sign_packet() and ntlmssp_sign_packet()
Stefan Metzmacher [Wed, 30 Dec 2009 14:58:05 +0000 (15:58 +0100)]
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>
14 years agos4:ntlmssp: make user a 'const char *' in (gensec_)ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 14:23:37 +0000 (15:23 +0100)]
s4:ntlmssp: make user a 'const char *' in (gensec_)ntlmssp_state

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: remove server_name from (gensec_)ntlmssp_state and fill the server.*...
Stefan Metzmacher [Wed, 30 Dec 2009 14:00:02 +0000 (15:00 +0100)]
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>
14 years agos4:ntlmssp: calculate server names at startup and store them in (gensec_)ntlmssp_stat...
Stefan Metzmacher [Wed, 30 Dec 2009 14:14:38 +0000 (15:14 +0100)]
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>
14 years agos4:ntlmssp: replace server_role by a server.is_standalone in (gensec_)ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 09:14:07 +0000 (10:14 +0100)]
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>
14 years agos4:ntlmssp: remove more whitespaces...
Stefan Metzmacher [Tue, 29 Dec 2009 16:29:47 +0000 (17:29 +0100)]
s4:ntlmssp: remove more whitespaces...

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: add NTLMSSP_FEATURE_* flags from s3
Stefan Metzmacher [Tue, 29 Dec 2009 15:46:05 +0000 (16:46 +0100)]
s4:ntlmssp: add NTLMSSP_FEATURE_* flags from s3

metze

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:ntlmssp: keep struct gensec_ntlmssp_context in gensec_security->private_data
Stefan Metzmacher [Wed, 30 Dec 2009 07:23:13 +0000 (08:23 +0100)]
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>
14 years agos4:ntlmssp: remove gensec_security from (gensec_)ntlmssp_state
Stefan Metzmacher [Wed, 30 Dec 2009 07:06:28 +0000 (08:06 +0100)]
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>
14 years agos4:ntlmssp: remove backend specifix stuff from (gensec_)ntlmssp_state
Stefan Metzmacher [Tue, 29 Dec 2009 16:56:56 +0000 (17:56 +0100)]
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>
14 years agos4:ntlmssp: create a gensec_ntlmssp_context between gensec_security and ntlmssp_state
Stefan Metzmacher [Tue, 29 Dec 2009 16:01:28 +0000 (17:01 +0100)]
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>