nivanova/samba-autobuild/.git
14 years agotestprogs/win32/npecho: use 'rm -f' instead of 'del' on unix
Stefan Metzmacher [Wed, 19 May 2010 09:51:56 +0000 (11:51 +0200)]
testprogs/win32/npecho: use 'rm -f' instead of 'del' on unix

metze

14 years agotestprogs/win32: explain how to use nmake with NMakefile
Stefan Metzmacher [Wed, 19 May 2010 09:51:07 +0000 (11:51 +0200)]
testprogs/win32: explain how to use nmake with NMakefile

metze

14 years agotestprogs/win32/spoolss: rename Makefile.mingw GNUmakefile
Stefan Metzmacher [Wed, 19 May 2010 09:11:50 +0000 (11:11 +0200)]
testprogs/win32/spoolss: rename Makefile.mingw GNUmakefile

metze

14 years agotestprogs/win32/spoolss: rename Makefile => NMakefile
Stefan Metzmacher [Wed, 19 May 2010 09:10:36 +0000 (11:10 +0200)]
testprogs/win32/spoolss: rename Makefile => NMakefile

metze

14 years agoImplement missing info level SMB_FILE_LINK_INFORMATION.
Jeremy Allison [Wed, 19 May 2010 01:34:54 +0000 (18:34 -0700)]
Implement missing info level SMB_FILE_LINK_INFORMATION.

Fix bug #7435 - SMB2 hardlink fails (invalid level).
Found at the Microsoft plugsharing plugfest.

Jeremy.

14 years agoKeep track of credits we're giving out. Set initial credits to 1 (MS-SMB2 spec required).
Jeremy Allison [Wed, 19 May 2010 00:11:54 +0000 (17:11 -0700)]
Keep track of credits we're giving out. Set initial credits to 1 (MS-SMB2 spec required).

Jeremy.

14 years agos4/drsuapi: Add another set of predefined ATTIDs
Kamen Mazdrashki [Tue, 18 May 2010 23:29:20 +0000 (02:29 +0300)]
s4/drsuapi: Add another set of predefined ATTIDs

Very useful for debugging/dumping purposes

14 years agos4/metadata: fix whitespaces
Kamen Mazdrashki [Tue, 18 May 2010 23:28:09 +0000 (02:28 +0300)]
s4/metadata: fix whitespaces

14 years agos4/selftest: fix passwords in selftest-vars script
Kamen Mazdrashki [Tue, 18 May 2010 23:18:17 +0000 (02:18 +0300)]
s4/selftest: fix passwords in selftest-vars script

14 years agoFix our NTLMSSP implementation against the Microsoft torture tester.
Jeremy Allison [Tue, 18 May 2010 23:32:13 +0000 (16:32 -0700)]
Fix our NTLMSSP implementation against the Microsoft torture tester.

We need to return a version blob if we negotiate version info.

Jeremy.

14 years agoChange data_blob() to be based on top of data_blob_talloc(), instead of the reverse...
Jeremy Allison [Tue, 18 May 2010 16:57:29 +0000 (09:57 -0700)]
Change data_blob() to be based on top of data_blob_talloc(), instead of the reverse (as it is now).

It makes no sense to talloc off the null context, then talloc steal
into the required context - just talloc off the correct context, and
change data_blob() to pass in the null context to data_blob_talloc().

Jeremy.

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-passdb: move get_logon_hours_from_pdb() into samr server.
Günther Deschner [Tue, 18 May 2010 16:54:56 +0000 (18:54 +0200)]
s3-passdb: move get_logon_hours_from_pdb() into samr server.

Guenther

14 years agos3-rpc_client: move protos to init_samr.h
Günther Deschner [Tue, 18 May 2010 16:59:45 +0000 (18:59 +0200)]
s3-rpc_client: move protos to init_samr.h

Guenther

14 years agos3-rpc_client: move protos to init_spoolss.h
Günther Deschner [Tue, 18 May 2010 16:58:45 +0000 (18:58 +0200)]
s3-rpc_client: move protos to init_spoolss.h

Guenther

14 years agos3-rpc_client: move protos to cli_spoolss.h
Günther Deschner [Tue, 18 May 2010 16:26:48 +0000 (18:26 +0200)]
s3-rpc_client: move protos to cli_spoolss.h

Guenther

14 years agos3-rpc_client: move protos to cli_lsarpc.h
Günther Deschner [Tue, 18 May 2010 16:26:16 +0000 (18:26 +0200)]
s3-rpc_client: move protos to cli_lsarpc.h

Guenther

14 years agos3-rpc_client: move protos to cli_netlogon.h
Günther Deschner [Tue, 18 May 2010 16:26:03 +0000 (18:26 +0200)]
s3-rpc_client: move protos to cli_netlogon.h

Guenther

14 years agos3-rpc_client: move protos to cli_samr.h
Günther Deschner [Tue, 18 May 2010 16:25:50 +0000 (18:25 +0200)]
s3-rpc_client: move protos to cli_samr.h

Guenther

14 years agos3:split secrets.c to put machine account secrets in a new file
Andrew Bartlett [Mon, 17 May 2010 03:39:42 +0000 (13:39 +1000)]
s3:split secrets.c to put machine account secrets in a new file

This helps the s3compat effort by allowing these functions to be
replaced by functions that query the cli_credentials and secrets.ldb
APIs.

Also, this changes a couple of DOM_SID to struct dom_sid along the
way.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos4:smb_server/smb/trans2.c - remove unused define "DEFAULT_SITE_NAME"
Matthias Dieter Wallnöfer [Tue, 18 May 2010 14:58:53 +0000 (16:58 +0200)]
s4:smb_server/smb/trans2.c - remove unused define "DEFAULT_SITE_NAME"

Obviously this isn't needed and in general site names shouldn't be hardcoded
anymore (except there is a good reason).

14 years agos3:winbind use no_srv_register to avoid needing rpc_srv_register
Andrew Bartlett [Wed, 12 May 2010 21:57:27 +0000 (07:57 +1000)]
s3:winbind use no_srv_register to avoid needing rpc_srv_register

This pidl attribute avoids the need for this dummy function, which
helps s3compat.

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agopidl: Allow new property 'no_srv_register'.
Andrew Bartlett [Wed, 12 May 2010 21:53:07 +0000 (07:53 +1000)]
pidl: Allow new property 'no_srv_register'.

This Samba-only property prevents pild from emitting the
rpc_wbint_init function, which causes problems because it needs
rpc_srv_register().

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-spoolss: Added EN ISO 216, A0 and A1 to builtin forms.
Andreas Schneider [Wed, 12 May 2010 16:36:30 +0000 (18:36 +0200)]
s3-spoolss: Added EN ISO 216, A0 and A1 to builtin forms.

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-pidfile: set the close on exec flag for the created pidfiles.
Günther Deschner [Mon, 17 May 2010 16:22:37 +0000 (18:22 +0200)]
s3-pidfile: set the close on exec flag for the created pidfiles.

Guenther

14 years agos3-spoolss: Removed the Phantom DeviceMode.
Simo Sorce [Thu, 22 Apr 2010 23:30:11 +0000 (19:30 -0400)]
s3-spoolss: Removed the Phantom DeviceMode.

This was a hack that required a special client from HP.
The client code has never been released and was discontinued,
so this code was just dead weight.

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-net: also dump security descriptors from ntprinters.tdb in "net printing dump".
Günther Deschner [Tue, 18 May 2010 13:32:47 +0000 (15:32 +0200)]
s3-net: also dump security descriptors from ntprinters.tdb in "net printing dump".

Guenther

14 years agos4:smb_server: add dfs smbtorture to selftests
Matthieu Patou [Tue, 11 May 2010 17:22:24 +0000 (21:22 +0400)]
s4:smb_server: add dfs smbtorture to selftests

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4:smb_server: Implement GET_DFS_REFERRAL for domain referral requests
Matthieu Patou [Sat, 1 May 2010 18:27:31 +0000 (22:27 +0400)]
s4:smb_server: Implement GET_DFS_REFERRAL for domain referral requests

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4:smb_server: fix trailling whitespace in trans2.c
Matthieu Patou [Sat, 1 May 2010 18:33:20 +0000 (22:33 +0400)]
s4:smb_server: fix trailling whitespace in trans2.c

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4 torture: Add tests for dfs referrals handling in SMB/trans2 requests
Matthieu Patou [Sun, 9 May 2010 21:39:27 +0000 (01:39 +0400)]
s4 torture: Add tests for dfs referrals handling in SMB/trans2 requests

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4 torture test: Adapt ndr-dfsblobs torture test to new idl
Matthieu Patou [Sun, 9 May 2010 21:40:31 +0000 (01:40 +0400)]
s4 torture test: Adapt ndr-dfsblobs torture test to new idl

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agolibrpc/idl: fix errors and improve idl in dfsblobs
Matthieu Patou [Sun, 25 Apr 2010 21:31:19 +0000 (01:31 +0400)]
librpc/idl: fix errors and improve idl in dfsblobs

Fix problems between strings and nstring
Allow get_deferral parameters to be used by ndr_push/pull_blobs
Handle correctly the 16 bytes padding

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos4:librpc: fix the autoconf build
Stefan Metzmacher [Tue, 18 May 2010 12:49:39 +0000 (14:49 +0200)]
s4:librpc: fix the autoconf build

metze

14 years agos4:dynconfig: let the autoconf build compile again
Stefan Metzmacher [Tue, 18 May 2010 11:50:33 +0000 (13:50 +0200)]
s4:dynconfig: let the autoconf build compile again

metze

14 years agos3-spoolss: Use the spoolss_map_to_os2_driver to modify drivername.
Andreas Schneider [Wed, 28 Apr 2010 15:04:10 +0000 (17:04 +0200)]
s3-spoolss: Use the spoolss_map_to_os2_driver to modify drivername.

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-spoolss: Create a spoolss_map_to_os2_driver function.
Andreas Schneider [Wed, 28 Apr 2010 15:03:41 +0000 (17:03 +0200)]
s3-spoolss: Create a spoolss_map_to_os2_driver function.

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-spoolss: Use better names for set_last_from_to.
Andreas Schneider [Mon, 10 May 2010 13:05:46 +0000 (15:05 +0200)]
s3-spoolss: Use better names for set_last_from_to.

Use set_driver_mapping() and get_win_driver(), get_os2_driver().

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-net: Added a rather trivial "net printing dump" command.
Günther Deschner [Wed, 12 May 2010 22:05:40 +0000 (00:05 +0200)]
s3-net: Added a rather trivial "net printing dump" command.

Guenther

14 years agos3-spoolss: Added EN ISO 216, A0 and A1 to builtin forms.
Andreas Schneider [Wed, 12 May 2010 08:59:41 +0000 (10:59 +0200)]
s3-spoolss: Added EN ISO 216, A0 and A1 to builtin forms.

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-spoolss: Sorted the builtin forms alphabetically.
Andreas Schneider [Wed, 12 May 2010 08:57:14 +0000 (10:57 +0200)]
s3-spoolss: Sorted the builtin forms alphabetically.

Signed-off-by: Günther Deschner <gd@samba.org>
14 years agos3-secdesc: use SD_REVISION from security.idl.
Günther Deschner [Tue, 18 May 2010 10:52:18 +0000 (12:52 +0200)]
s3-secdesc: use SD_REVISION from security.idl.

Guenther

14 years agos3-secdesc: move SEC_DESC_HEADER_SIZE to its only user.
Günther Deschner [Tue, 18 May 2010 10:51:35 +0000 (12:51 +0200)]
s3-secdesc: move SEC_DESC_HEADER_SIZE to its only user.

Guenther

14 years agos3-secdesc: remove "typedef struct security_descriptor SEC_DESC".
Günther Deschner [Tue, 18 May 2010 08:29:34 +0000 (10:29 +0200)]
s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".

Guenther

14 years agos3-secdesc: remove "typedef struct security_acl SEC_ACL".
Günther Deschner [Tue, 18 May 2010 01:30:40 +0000 (03:30 +0200)]
s3-secdesc: remove "typedef struct security_acl SEC_ACL".

Guenther

14 years agos3-secdesc: remove "typedef struct security_ace SEC_ACE".
Günther Deschner [Tue, 18 May 2010 01:25:38 +0000 (03:25 +0200)]
s3-secdesc: remove "typedef struct security_ace SEC_ACE".

Guenther

14 years agos3-secdesc: remove "typedef struct sec_desc_buf SEC_DESC_BUF".
Günther Deschner [Tue, 18 May 2010 00:56:17 +0000 (02:56 +0200)]
s3-secdesc: remove "typedef struct sec_desc_buf SEC_DESC_BUF".

Guenther

14 years agos3-build: fix the build.
Günther Deschner [Tue, 18 May 2010 10:26:52 +0000 (12:26 +0200)]
s3-build: fix the build.

Guenther

14 years agos3: Fix some more iconv convenience usages.
Jelmer Vernooij [Fri, 14 May 2010 15:39:07 +0000 (17:39 +0200)]
s3: Fix some more iconv convenience usages.

14 years agoRemove more usages of iconv_convenience in files which were apparently not recompiled...
Jelmer Vernooij [Mon, 10 May 2010 12:08:38 +0000 (14:08 +0200)]
Remove more usages of iconv_convenience in files which were apparently not recompiled by waf.

14 years agos3: Remove use of iconv_convenience.
Jelmer Vernooij [Sun, 9 May 2010 22:42:06 +0000 (00:42 +0200)]
s3: Remove use of iconv_convenience.

14 years agoFinish removal of iconv_convenience in public API's.
Jelmer Vernooij [Sun, 9 May 2010 15:20:01 +0000 (17:20 +0200)]
Finish removal of iconv_convenience in public API's.

14 years agosmbconf: only include smbconf headers where needed.
Günther Deschner [Tue, 18 May 2010 00:27:34 +0000 (02:27 +0200)]
smbconf: only include smbconf headers where needed.

Guenther

14 years agos4:ntvfs Prepare for a possible future sharing of notify.idl
Andrew Bartlett [Wed, 5 May 2010 02:47:07 +0000 (12:47 +1000)]
s4:ntvfs Prepare for a possible future sharing of notify.idl

I would love for notify.idl to be shared between Samba4 and Samba3
some day, and this seems to be the point at which the structure is
initialised.

Andrew Bartlett

14 years agos4:winbindd Record the privilaged pipe dir
Andrew Bartlett [Mon, 17 May 2010 09:54:00 +0000 (19:54 +1000)]
s4:winbindd Record the privilaged pipe dir

This may help us return an accurate priv pipe dir later on.

Andrew Bartlett

14 years agos4:credentials Add in tracking of the password last set time
Andrew Bartlett [Mon, 17 May 2010 03:41:01 +0000 (13:41 +1000)]
s4:credentials Add in tracking of the password last set time

We perhaps need a more general API here, but for now extend the
credentials API to return the password last changed time that the
s3compat layer will need.

Andrew Bartlett

14 years agos4:provision Remove unused 'account_name' parameter
Andrew Bartlett [Mon, 17 May 2010 01:52:24 +0000 (11:52 +1000)]
s4:provision Remove unused 'account_name' parameter

The python glue code didn't even de-reference this element in the
structure.

Andrew Bartlett

14 years agos4:auth Make it clear to the callers the talloc lifetime.
Andrew Bartlett [Thu, 6 May 2010 06:47:15 +0000 (16:47 +1000)]
s4:auth Make it clear to the callers the talloc lifetime.

In other times, we might have used talloc_reference here, but this
isn't used as much these days.

Andrew Bartlett

14 years agoPlumb in krb5 to the SMB2 sessionsetup code. First cut of this code.
Jeremy Allison [Tue, 18 May 2010 01:22:19 +0000 (18:22 -0700)]
Plumb in krb5 to the SMB2 sessionsetup code. First cut of this code.

Jeremy.

14 years agoFix the build of bin/smbtorture in source3. Guenther please check !
Jeremy Allison [Tue, 18 May 2010 00:17:44 +0000 (17:17 -0700)]
Fix the build of bin/smbtorture in source3. Guenther please check !

Jeremy.

14 years agoselftest: Cope with empty testsuite results in more places.
Jelmer Vernooij [Mon, 17 May 2010 23:39:17 +0000 (01:39 +0200)]
selftest: Cope with empty testsuite results in more places.

14 years agoselftest: Cope with testsuites without any output whatsoever (probably an error though).
Jelmer Vernooij [Mon, 17 May 2010 22:01:48 +0000 (00:01 +0200)]
selftest: Cope with testsuites without any output whatsoever (probably an error though).

14 years agopynet: Remove unused credentials argument.
Jelmer Vernooij [Sun, 2 May 2010 18:02:26 +0000 (20:02 +0200)]
pynet: Remove unused credentials argument.

14 years agos3-registry: only include registry headers when really needed.
Günther Deschner [Thu, 1 Oct 2009 22:17:06 +0000 (00:17 +0200)]
s3-registry: only include registry headers when really needed.

Guenther

14 years agos3-tldap: only include tldap when actually needed.
Günther Deschner [Mon, 17 May 2010 22:39:43 +0000 (00:39 +0200)]
s3-tldap: only include tldap when actually needed.

Guenther

14 years agos3-includes: remove completely unused util_getent.h header.
Günther Deschner [Mon, 17 May 2010 22:18:55 +0000 (00:18 +0200)]
s3-includes: remove completely unused util_getent.h header.

Guenther

14 years agos3-crypto: only include crypto headers when crypto is done.
Günther Deschner [Mon, 17 May 2010 22:16:40 +0000 (00:16 +0200)]
s3-crypto: only include crypto headers when crypto is done.

Guenther

14 years agos3-samr: move samr helper prototypes outside of proto.h
Günther Deschner [Mon, 17 May 2010 21:27:30 +0000 (23:27 +0200)]
s3-samr: move samr helper prototypes outside of proto.h

Guenther

14 years agos3-services: move services.h to where it is actually used.
Günther Deschner [Mon, 17 May 2010 21:04:46 +0000 (23:04 +0200)]
s3-services: move services.h to where it is actually used.

Guenther

14 years agosecurity: merge builtin rid tables.
Günther Deschner [Mon, 17 May 2010 21:04:08 +0000 (23:04 +0200)]
security: merge builtin rid tables.

Guenther

14 years agos3-rpc_misc: clean out include/rpc_misc.h.
Günther Deschner [Mon, 17 May 2010 20:04:24 +0000 (22:04 +0200)]
s3-rpc_misc: clean out include/rpc_misc.h.

Well known rids don't really belong into an rpc header, just use the ones
defined in security.idl.

Guenther

14 years agoRefactor the sessionsetup SMB2 code to make it easy to add
Jeremy Allison [Mon, 17 May 2010 20:05:22 +0000 (13:05 -0700)]
Refactor the sessionsetup SMB2 code to make it easy to add
krb5. Fix a memory leak in returning security blobs.

Jeremy

14 years agos3-libgpo: move group policy protos to where they belong.
Günther Deschner [Sun, 9 May 2010 22:07:10 +0000 (00:07 +0200)]
s3-libgpo: move group policy protos to where they belong.

Guenther

14 years agos3-includes: remove some unused defines.
Günther Deschner [Mon, 17 May 2010 18:49:31 +0000 (20:49 +0200)]
s3-includes: remove some unused defines.

Guenther

14 years agos3-kerberos: temporary fix for ipv6 in print_kdc_line().
Günther Deschner [Fri, 14 May 2010 22:34:35 +0000 (00:34 +0200)]
s3-kerberos: temporary fix for ipv6 in print_kdc_line().

Currently no krb5 lib supports "kdc = ipv6 address" at all, so for now just fill
in just the kdc_name if we have it and let the krb5 lib figure out the
appropriate ipv6 address

ipv6 gurus, please check.

Guenther

14 years agos3-kerberos: pass down kdc_name to create_local_private_krb5_conf_for_domain().
Günther Deschner [Fri, 14 May 2010 21:23:34 +0000 (23:23 +0200)]
s3-kerberos: pass down kdc_name to create_local_private_krb5_conf_for_domain().

Guenther

14 years agos3-winbind: make the getpeername() checks in cm_prepare_connection IPv6 aware.
Günther Deschner [Fri, 14 May 2010 21:21:47 +0000 (23:21 +0200)]
s3-winbind: make the getpeername() checks in cm_prepare_connection IPv6 aware.

Note that this failure was hard to track, as winbind did only log a super helpful
"cm_prepare_connection: Success" debug message.

IPv6 gurus, please check

Successfully tested in two independent IPv6 networks now.

Guenther

14 years agos4-rodc: Set am_rodc flag during provision
Anatoliy Atanasov [Mon, 17 May 2010 09:49:37 +0000 (12:49 +0300)]
s4-rodc: Set am_rodc flag during provision

14 years agos4-rodc: Cache am_rodc flag
Anatoliy Atanasov [Thu, 13 May 2010 12:07:50 +0000 (15:07 +0300)]
s4-rodc: Cache am_rodc flag

14 years agos3:winbind:idmap_tdb: don't check ranges when an invalid entry was found.
Michael Adam [Mon, 17 May 2010 08:39:00 +0000 (10:39 +0200)]
s3:winbind:idmap_tdb: don't check ranges when an invalid entry was found.

There is no point in checking the ranges this if the record found had an
invalid/unknown type: the mapping is not filled in. If it were initialized
to some defaults before, the check just might replace the status
NT_STATUS_INTERNAL_DB_ERROR with a NT_STATUS_NONE_MAPPED, which is not
as precise.

14 years agowbinfo: Add better libwbclient error reporting
Kai Blin [Mon, 17 May 2010 08:50:39 +0000 (10:50 +0200)]
wbinfo: Add better libwbclient error reporting

14 years agoadded documentation for the -I flag
Matthew McGillis [Thu, 6 May 2010 05:43:28 +0000 (22:43 -0700)]
added documentation for the -I flag

14 years agoadded support for a -I flag
Matthew McGillis [Thu, 6 May 2010 05:35:02 +0000 (22:35 -0700)]
added support for a -I flag

14 years agoConsolidate all set SEC_DESC into single procedure set_secdesc
Matthew McGillis [Thu, 6 May 2010 05:26:15 +0000 (22:26 -0700)]
Consolidate all set SEC_DESC into single procedure set_secdesc

14 years agos3-selftest: Allow overriding the subunit formatter.
Jelmer Vernooij [Sat, 15 May 2010 22:21:19 +0000 (00:21 +0200)]
s3-selftest: Allow overriding the subunit formatter.

(e.g. "make selftest SUBUNIT_FORMATTER=cat")

14 years agos4:repl_meta_data LDB module - fix counter types
Matthias Dieter Wallnöfer [Fri, 14 May 2010 16:56:51 +0000 (18:56 +0200)]
s4:repl_meta_data LDB module - fix counter types

14 years agos4:net domainlevel tool - fix up the error handling as Jelmer suggested
Matthias Dieter Wallnöfer [Fri, 14 May 2010 16:59:36 +0000 (18:59 +0200)]
s4:net domainlevel tool - fix up the error handling as Jelmer suggested

Sorry, I've copied this from the "ldap.py" test and thought it would work.

14 years agos4:dsdb_cache LDB module - fix a typo
Matthias Dieter Wallnöfer [Fri, 14 May 2010 12:13:20 +0000 (14:13 +0200)]
s4:dsdb_cache LDB module - fix a typo

14 years agos4:samldb LDB module - remove unused variables
Matthias Dieter Wallnöfer [Tue, 11 May 2010 15:25:24 +0000 (17:25 +0200)]
s4:samldb LDB module - remove unused variables

14 years agos4:gensec expose gensec_set_target_principal for use outside GENSEC
Andrew Bartlett [Wed, 12 May 2010 21:59:41 +0000 (07:59 +1000)]
s4:gensec expose gensec_set_target_principal for use outside GENSEC

This allows for the rare case where the caller knows the target
principal.  The check for lp_client_use_spnego_principal() is moved to
the spengo code to make this work.

Andrew Bartlett

14 years agos4:winbindd Rework some winbind structures to make s3compat easier
Andrew Bartlett [Fri, 14 May 2010 07:31:33 +0000 (17:31 +1000)]
s4:winbindd Rework some winbind structures to make s3compat easier

By making the winbindd_request and winbindd_response structures
pointers, we can more easily integrate with the winbindd from
source3/winbindd

Andrew Bartlett

14 years agos4:process_model Fix process_standard and process_onefork not to use
Andrew Bartlett [Fri, 14 May 2010 11:51:48 +0000 (21:51 +1000)]
s4:process_model Fix process_standard and process_onefork not to use
multiple event contexts

It is NEVER valid to free an event context that anybody else may have
a reference to, and never normally valid to have two 'live' at once.
We must instead call tevent_re_initialise() to wipe clean an existing
pointer.

Andrew Bartlett

14 years agos4:process_modals Add another process modal - 'onefork'
Andrew Bartlett [Mon, 10 May 2010 03:47:42 +0000 (13:47 +1000)]
s4:process_modals Add another process modal - 'onefork'

This will fork off exactly one child to handle some task, ensuring
that if it dies or changes global state, that this does not change
everything.

Andrew Bartlett

14 years agos4:credentials Allow setting of an empty Kerberos CCACHE
Andrew Bartlett [Wed, 12 May 2010 02:34:15 +0000 (12:34 +1000)]
s4:credentials Allow setting of an empty Kerberos CCACHE

This allows us to tell the credentials code where we want the
credentials put.

Andrew Bartlett

14 years agos4:ntvfs Prepare for a possible future sharing of notify.idl
Andrew Bartlett [Wed, 5 May 2010 02:47:07 +0000 (12:47 +1000)]
s4:ntvfs Prepare for a possible future sharing of notify.idl

I would love for notify.idl to be shared between Samba4 and Samba3
some day, and this seems to be the point at which the structure is
initialised.

Andrew Bartlett

14 years agowaf: Make waf handle IDL files from Samba3
Andrew Bartlett [Wed, 5 May 2010 02:40:20 +0000 (12:40 +1000)]
waf: Make waf handle IDL files from Samba3

For s3compat, we need to handle IDL files not in the current directory
(so the incoming file names have a directory prefix - so we must use
os.path.basename()).

We also need to be able to disable the addition of some IDL files into
the tables.c/tables.h - some of the Samba3 IDL files are in conflict
with Samba4.

Andrew Bartlett

14 years agos3compat: use right variable for STATEDIR
Andrew Tridgell [Sun, 25 Apr 2010 11:25:01 +0000 (21:25 +1000)]
s3compat: use right variable for STATEDIR

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

14 years agos4-dynconfig: make dynconfig more compatible with s3
Andrew Tridgell [Sun, 25 Apr 2010 08:08:00 +0000 (18:08 +1000)]
s4-dynconfig: make dynconfig more compatible with s3

14 years agoRevert "s4: remove unused references to swat"
Andrew Bartlett [Fri, 30 Apr 2010 08:20:54 +0000 (18:20 +1000)]
Revert "s4: remove unused references to swat"

This reverts most of commit 1765732f82719a4bc925f21ef4999bd19a8d1f6c.

The s3compat build needs the SWAT location to be compatible with
Samba3.

14 years agoRevert "wafsamba: use -D_XOPEN_SOURCE=700 for the build"
Stefan Metzmacher [Fri, 14 May 2010 13:18:46 +0000 (15:18 +0200)]
Revert "wafsamba: use -D_XOPEN_SOURCE=700 for the build"

This reverts commit 3408c942ab09387c399dad03e22233e33fe1e2fc.

This seems to cause more problems than it tries to solve.

And Mac OS 10.4 doesn't need it anymore
(after commit bd6d76d77621c1dc92262c48204b65455a214b62).

metze

14 years agos4-libndr: fix ndr_pull_string_array() for non utf16 arrays in s4 as well.
Günther Deschner [Fri, 14 May 2010 12:51:44 +0000 (14:51 +0200)]
s4-libndr: fix ndr_pull_string_array() for non utf16 arrays in s4 as well.

Guenther