kai/samba.git
12 years agos3:dbwrap: add dbwrap_record_delete(), a wrapper for record->delete_rec
Michael Adam [Fri, 19 Aug 2011 08:52:57 +0000 (10:52 +0200)]
s3:dbwrap: add dbwrap_record_delete(), a wrapper for record->delete_rec

12 years agos3:dbwrap: add dbwrap_record_store(), a wrapper for record->store
Michael Adam [Fri, 19 Aug 2011 08:51:27 +0000 (10:51 +0200)]
s3:dbwrap: add dbwrap_record_store(), a wrapper for record->store

12 years agos3:dbwrap: add get-functions for db_record key, value and private_data
Michael Adam [Fri, 19 Aug 2011 08:50:20 +0000 (10:50 +0200)]
s3:dbwrap: add get-functions for db_record key, value and private_data

12 years agos3:dbwrap: add wrapper function dbwrap_get_seqnum()
Michael Adam [Thu, 18 Aug 2011 12:09:56 +0000 (14:09 +0200)]
s3:dbwrap: add wrapper function dbwrap_get_seqnum()

12 years agos3:dbwrap: add wrappers for transactions start/cancel/commit
Michael Adam [Wed, 17 Aug 2011 20:51:12 +0000 (22:51 +0200)]
s3:dbwrap: add wrappers for transactions start/cancel/commit

12 years agos3:dbwrap: add wrapper dbwrap_get_flags()
Michael Adam [Wed, 17 Aug 2011 20:43:01 +0000 (22:43 +0200)]
s3:dbwrap: add wrapper dbwrap_get_flags()

12 years agos3:dbwrap: fix db_rbt_traverse() to return the record count on success
Gregor Beck [Wed, 17 Aug 2011 09:44:12 +0000 (11:44 +0200)]
s3:dbwrap: fix db_rbt_traverse() to return the record count on success

this makes it consistent with documented behaviour of tdb_traverse()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_rbt
Gregor Beck [Tue, 16 Aug 2011 12:55:30 +0000 (14:55 +0200)]
s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_rbt

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_tdb
Gregor Beck [Tue, 16 Aug 2011 12:43:29 +0000 (14:43 +0200)]
s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_tdb

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add a comment
Michael Adam [Wed, 17 Aug 2011 12:42:50 +0000 (14:42 +0200)]
s3:dbwrap: add a comment

12 years agos3:dbwrap: add function dbwrap_wipe()
Gregor Beck [Tue, 16 Aug 2011 12:39:19 +0000 (14:39 +0200)]
s3:dbwrap: add function dbwrap_wipe()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add specific dbwrap_parse_record() implementation to dbwrap_rbt
Gregor Beck [Tue, 5 Jul 2011 13:06:05 +0000 (15:06 +0200)]
s3:dbwrap: add specific dbwrap_parse_record() implementation to dbwrap_rbt

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: implement dbwrap_fallback_exists() with dbwrap_parse_record()
Gregor Beck [Tue, 5 Jul 2011 11:43:59 +0000 (13:43 +0200)]
s3:dbwrap: implement dbwrap_fallback_exists() with dbwrap_parse_record()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: allow NULL parser for dbwrap_parse_record()
Gregor Beck [Tue, 5 Jul 2011 11:42:39 +0000 (13:42 +0200)]
s3:dbwrap: allow NULL parser for dbwrap_parse_record()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: dbwrap_parse_record() should always return -1 on "not found"
Gregor Beck [Tue, 5 Jul 2011 11:41:12 +0000 (13:41 +0200)]
s3:dbwrap: dbwrap_parse_record() should always return -1 on "not found"

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add function dbwrap_parse_record()
Gregor Beck [Tue, 5 Jul 2011 11:10:30 +0000 (13:10 +0200)]
s3:dbwrap: add function dbwrap_parse_record()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_rbt
Gregor Beck [Mon, 4 Jul 2011 08:22:46 +0000 (10:22 +0200)]
s3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_rbt

12 years agos3:dbwrap: factor out db_rpt_search_internal()
Gregor Beck [Mon, 4 Jul 2011 07:54:31 +0000 (09:54 +0200)]
s3:dbwrap: factor out db_rpt_search_internal()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_tdb
Gregor Beck [Mon, 4 Jul 2011 08:27:17 +0000 (10:27 +0200)]
s3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_tdb

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add function dbwrap_exists()
Gregor Beck [Mon, 4 Jul 2011 08:15:44 +0000 (10:15 +0200)]
s3:dbwrap: add function dbwrap_exists()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add a wrapper dbwrap_traverse_read()
Michael Adam [Wed, 17 Aug 2011 07:59:25 +0000 (09:59 +0200)]
s3:dbwrap: add a wrapper dbwrap_traverse_read()

12 years agos3:dbwrap: change the dbwrap_traverse() wrapper to return the count in an additional...
Michael Adam [Wed, 17 Aug 2011 07:51:12 +0000 (09:51 +0200)]
s3:dbwrap: change the dbwrap_traverse() wrapper to return the count in an additional parameter

12 years agos3:dbwrap: reorganize dbwrap.h some
Michael Adam [Wed, 17 Aug 2011 06:45:09 +0000 (08:45 +0200)]
s3:dbwrap: reorganize dbwrap.h some

12 years agos3:dbwrap: move dbwrap_traverse() to dbwrap.c, the core of the dbrwap subsystem
Michael Adam [Wed, 17 Aug 2011 06:40:53 +0000 (08:40 +0200)]
s3:dbwrap: move dbwrap_traverse() to dbwrap.c, the core of the dbrwap subsystem

12 years agos3:dbwrap: move dbwrap_store() back to dbwrap.c, the core of the dbwrap subsystem
Michael Adam [Wed, 17 Aug 2011 06:38:39 +0000 (08:38 +0200)]
s3:dbwrap: move dbwrap_store() back to dbwrap.c, the core of the dbwrap subsystem

12 years agos3:dbwrap: move dbwrap_delete() back to dbwrap.c, the core of the dbwrap subsystem
Michael Adam [Wed, 17 Aug 2011 06:36:52 +0000 (08:36 +0200)]
s3:dbwrap: move dbwrap_delete() back to dbwrap.c, the core of the dbwrap subsystem

12 years agos3:dbwrap: move dbwrap_fetch() back to dbwrap.c, the core of the dbwrap subsystem
Michael Adam [Wed, 17 Aug 2011 06:35:21 +0000 (08:35 +0200)]
s3:dbwrap: move dbwrap_fetch() back to dbwrap.c, the core of the dbwrap subsystem

12 years agos3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.h
Michael Adam [Tue, 16 Aug 2011 14:20:14 +0000 (16:20 +0200)]
s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.h

12 years agos3:dbwrap: move the db_open_file() prototype to a new header dbwrap_file.h
Michael Adam [Tue, 16 Aug 2011 14:02:19 +0000 (16:02 +0200)]
s3:dbwrap: move the db_open_file() prototype to a new header dbwrap_file.h

12 years agos3:dbwrap: move the db_open_tdb() prototype to a new header dbwrap_tdb.h
Michael Adam [Tue, 16 Aug 2011 13:58:27 +0000 (15:58 +0200)]
s3:dbwrap: move the db_open_tdb() prototype to a new header dbwrap_tdb.h

12 years agos3:dbwrap: move the db_open_ctdb() prototype to a new header dbwrap_ctdb.h
Michael Adam [Tue, 16 Aug 2011 13:51:58 +0000 (15:51 +0200)]
s3:dbwrap: move the db_open_ctdb() prototype to a new header dbwrap_ctdb.h

12 years agos3:vfs_acl_common: also parse xattr.NTACL version 1
Stefan Metzmacher [Tue, 11 Oct 2011 10:37:56 +0000 (12:37 +0200)]
s3:vfs_acl_common: also parse xattr.NTACL version 1

This is what the source4/ntvfs/posix code uses.
It's also used at provision time to setup the sysvol permissions.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Oct 11 14:16:25 CEST 2011 on sn-devel-104

12 years agos3:wscript: add 'gssapi' dependecy to 'errors3'
Stefan Metzmacher [Tue, 11 Oct 2011 09:12:03 +0000 (11:12 +0200)]
s3:wscript: add 'gssapi' dependecy to 'errors3'

metze

12 years agos3-passdb: split out passdb/pdb_ipa.h.
Günther Deschner [Mon, 10 Oct 2011 19:53:15 +0000 (21:53 +0200)]
s3-passdb: split out passdb/pdb_ipa.h.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Oct 11 12:15:36 CEST 2011 on sn-devel-104

12 years agos3-passdb: split out passdb/pdb_nds.h.
Günther Deschner [Mon, 10 Oct 2011 19:48:35 +0000 (21:48 +0200)]
s3-passdb: split out passdb/pdb_nds.h.

Guenther

12 years agos3-passdb: split out passdb/pdb_ldap.h.
Günther Deschner [Mon, 10 Oct 2011 19:45:42 +0000 (21:45 +0200)]
s3-passdb: split out passdb/pdb_ldap.h.

Guenther

12 years agos3-smbldap: rearrange prototypes a bit.
Günther Deschner [Mon, 10 Oct 2011 16:46:53 +0000 (18:46 +0200)]
s3-smbldap: rearrange prototypes a bit.

Guenther

12 years agoldb:ldb_autotransaction_request - error string shouldn't be set here
Matthias Dieter Wallnöfer [Wed, 21 Sep 2011 09:45:32 +0000 (11:45 +0200)]
ldb:ldb_autotransaction_request - error string shouldn't be set here

A generic error string should be set independently of the access
mechanism to an LDB operation. Hence it should be handled in "ldb_wait"
and "ldb_request"

Signed-off-by: Andrew Tridgell <tridge@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Oct 11 10:15:18 CEST 2011 on sn-devel-104

12 years agoldb:pyldb.c - py_ldb_* modification calls - error string shouldn't be set here
Matthias Dieter Wallnöfer [Tue, 20 Sep 2011 15:41:10 +0000 (17:41 +0200)]
ldb:pyldb.c - py_ldb_* modification calls - error string shouldn't be set here

As discussed with Jelmer, we shouldn't be setting a generic LDB error string
only for the Python bindings alone. This should be done in "ldb_request"
and "ldb_wait" - the common place for all possible LDB access mechanisms.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos4:ldap_backend.c/"map_ldb_error" - handle errors similar to "PyErr_SetLdbError"
Matthias Dieter Wallnöfer [Wed, 21 Sep 2011 09:59:06 +0000 (11:59 +0200)]
s4:ldap_backend.c/"map_ldb_error" - handle errors similar to "PyErr_SetLdbError"

If the call was done using an error string ("add_err_string"), then use that one
without an additional "ldb_strerror()" for the definitive LDAP output.
Otherwise generate one using "ldb_strerror()".
This omits redundancies in the error string generation (twice the same
information by "ldb_strerror()").

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoldb:ldb.c/"ldb_wait" - make "ldb_wait" always return an error string
Matthias Dieter Wallnöfer [Wed, 21 Sep 2011 10:54:08 +0000 (12:54 +0200)]
ldb:ldb.c/"ldb_wait" - make "ldb_wait" always return an error string

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoldb:ldb.c/"ldb_wait" - change "ldb_wait" slightly in order to introduce error messages
Matthias Dieter Wallnöfer [Wed, 21 Sep 2011 10:38:46 +0000 (12:38 +0200)]
ldb:ldb.c/"ldb_wait" - change "ldb_wait" slightly in order to introduce error messages

In this occasion remove a redundant check for "LDB_ASYNC_DONE":

if (handle->state == LDB_ASYNC_DONE ||    if (handle->state == LDB_ASYNC_DONE)
    handle->status != LDB_SUCCESS) {              return handle->status;
        return handle->status;         == if (handle->status != LDB_SUCCESS)
}                                                 return handle->status;
...                                       ...
return LDB_SUCCESS;                       return LDB_SUCCESS;

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoldb:ldb.c/"ldb_request" - make "ldb_request" always return an error string
Matthias Dieter Wallnöfer [Wed, 21 Sep 2011 10:35:20 +0000 (12:35 +0200)]
ldb:ldb.c/"ldb_request" - make "ldb_request" always return an error string

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoldb:ldb.c - "ldb_set_errstring" can be implemented by using "ldb_asprintf_errstring"
Matthias Dieter Wallnöfer [Wed, 21 Sep 2011 11:43:29 +0000 (13:43 +0200)]
ldb:ldb.c - "ldb_set_errstring" can be implemented by using "ldb_asprintf_errstring"

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoldb:ldb_autotransaction_request - fix a typo in a comment
Matthias Dieter Wallnöfer [Wed, 21 Sep 2011 09:38:59 +0000 (11:38 +0200)]
ldb:ldb_autotransaction_request - fix a typo in a comment

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agogensec: trim header includes back to what is actually required
Andrew Bartlett [Sun, 9 Oct 2011 12:28:15 +0000 (23:28 +1100)]
gensec: trim header includes back to what is actually required

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 11 06:13:08 CEST 2011 on sn-devel-104

12 years agoauth/credentials Declare remaining functions are public interfaces and put into crede...
Andrew Bartlett [Sun, 9 Oct 2011 12:27:44 +0000 (23:27 +1100)]
auth/credentials Declare remaining functions are public interfaces and put into credentials.h

This is in preperation for this file being used by s3, and recognises that these are all
reasonable, public interfaces but were not declared as such in the past.

Andrew Bartlett

12 years agoauth: move gensec_start.c to the top level
Andrew Bartlett [Fri, 7 Oct 2011 06:24:12 +0000 (17:24 +1100)]
auth: move gensec_start.c to the top level

This does not change who uses gensec for now, but makes it possible to
write new gensec modules outside source4/

Andrew Bartlett

12 years agoauth: move credentials layer to the top level
Andrew Bartlett [Fri, 7 Oct 2011 06:20:33 +0000 (17:20 +1100)]
auth: move credentials layer to the top level

This will allow gensec_start.c to move to the top level.  This does not change
what code uses the cli_credentials code, but allows the gensec code to be
more broadly.

Andrew Bartlett

12 years agos4-s3-upgrade: Allow import (just without a uid mapping) where getpwnam fails
Andrew Bartlett [Mon, 10 Oct 2011 02:09:30 +0000 (13:09 +1100)]
s4-s3-upgrade: Allow import (just without a uid mapping) where getpwnam fails

This allows the tests to pass on systems without a jelmer user :-)

Andrew Bartlett

12 years agolib/param Avoid dyn_ defines that are not provided by the autoconf build
Andrew Bartlett [Sun, 9 Oct 2011 12:25:11 +0000 (23:25 +1100)]
lib/param Avoid dyn_ defines that are not provided by the autoconf build

The autoconf build will never use these parameters or load the
smb.conf with these defaults, so the defaults are not important.

Andrew Bartlett

12 years agolib/param Use strcasecmp_m rather than strcasecmp as this is banned in the s3 includes.h
Andrew Bartlett [Sun, 9 Oct 2011 12:24:32 +0000 (23:24 +1100)]
lib/param Use strcasecmp_m rather than strcasecmp as this is banned in the s3 includes.h

12 years agolib/param Use talloc_strdup rather than strdup as strdup is banned in the s3 includes.h
Andrew Bartlett [Sun, 9 Oct 2011 12:23:45 +0000 (23:23 +1100)]
lib/param Use talloc_strdup rather than strdup as strdup is banned in the s3 includes.h

12 years agolib/param Avoid the name string_set as this is already used in the s3 param code
Andrew Bartlett [Sun, 9 Oct 2011 12:23:05 +0000 (23:23 +1100)]
lib/param Avoid the name string_set as this is already used in the s3 param code

12 years agolib/param Avoid the use of the name service_ok() which is used in the s3 param code
Andrew Bartlett [Sun, 9 Oct 2011 12:22:11 +0000 (23:22 +1100)]
lib/param Avoid the use of the name service_ok() which is used in the s3 param code

12 years agolib/param: Remove unused #include of lib/socket/socket.h
Andrew Bartlett [Sun, 9 Oct 2011 12:17:45 +0000 (23:17 +1100)]
lib/param: Remove unused #include of lib/socket/socket.h

12 years agolibcli/smb Move CSC_POLICY_* definition to smb_constants.h
Andrew Bartlett [Sun, 9 Oct 2011 12:16:55 +0000 (23:16 +1100)]
libcli/smb Move CSC_POLICY_* definition to smb_constants.h

This removes the duplicate definition between smb.h and lib/param/loadparm.c
which in turn allows this file to be compiled with the s3 includes.h

Andrew Bartlett

12 years agolib/param move source4 param code to the top level
Andrew Bartlett [Thu, 6 Oct 2011 08:34:50 +0000 (19:34 +1100)]
lib/param move source4 param code to the top level

This is done so that the lpcfg_ functions are available across the whole
build, either with the struct loadparm_context loaded from an smb.conf directly
or as a wrapper around the source3 param code.

This is not the final, merged loadparm, but simply one step to make
it easier to solve other problems while we make our slow progress
on this difficult problem.

Andrew Bartlett

12 years agopac: Fix wrong memory allocation check
Simo Sorce [Mon, 10 Oct 2011 21:48:02 +0000 (17:48 -0400)]
pac: Fix wrong memory allocation check

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Tue Oct 11 01:18:22 CEST 2011 on sn-devel-104

12 years agondr.pc: needs samba-util not samba-hostconfig
Simo Sorce [Mon, 10 Oct 2011 19:52:38 +0000 (15:52 -0400)]
ndr.pc: needs samba-util not samba-hostconfig

12 years agolibcli/cldap: don't pass tevent_context to cldap_socket_init()
Stefan Metzmacher [Mon, 10 Oct 2011 13:58:24 +0000 (15:58 +0200)]
libcli/cldap: don't pass tevent_context to cldap_socket_init()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104

12 years agolibcli/cldap: make use of explicit tevent_contexts
Stefan Metzmacher [Mon, 10 Oct 2011 13:48:11 +0000 (15:48 +0200)]
libcli/cldap: make use of explicit tevent_contexts

metze

12 years agolibcli/cldap: pass tevent_context to cldap_search_send()
Stefan Metzmacher [Mon, 10 Oct 2011 13:46:17 +0000 (15:46 +0200)]
libcli/cldap: pass tevent_context to cldap_search_send()

metze

12 years agolibcli/cldap: pass tevent_context to cldap_netlogon_send()
Stefan Metzmacher [Mon, 10 Oct 2011 13:42:57 +0000 (15:42 +0200)]
libcli/cldap: pass tevent_context to cldap_netlogon_send()

metze

12 years agolibcli/cldap: pass tevent_context to cldap_set_incoming_handler()
Stefan Metzmacher [Mon, 10 Oct 2011 13:38:22 +0000 (15:38 +0200)]
libcli/cldap: pass tevent_context to cldap_set_incoming_handler()

metze

12 years agos3:smb2_create: fix allocation size return value when opening existing files
Christian Ambach [Mon, 10 Oct 2011 15:48:18 +0000 (17:48 +0200)]
s3:smb2_create: fix allocation size return value when opening existing files

at least on GPFS, using the stat information gave wrong results
example: FileInfo gave 12582912000, Create Response gave 25769803776000

This makes the create part use the same method as fileinfo,
matching up the replies of both calls

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Oct 10 21:49:53 CEST 2011 on sn-devel-104

12 years agos3-passdb: split out passdb/pdb_smbpasswd.h.
Günther Deschner [Tue, 4 Oct 2011 15:35:31 +0000 (17:35 +0200)]
s3-passdb: split out passdb/pdb_smbpasswd.h.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 10 20:14:46 CEST 2011 on sn-devel-104

12 years agos3-passdb: split out passdb/pdb_wbc_sam.h.
Günther Deschner [Tue, 4 Oct 2011 15:32:41 +0000 (17:32 +0200)]
s3-passdb: split out passdb/pdb_wbc_sam.h.

Guenther

12 years agos3-passdb: split out passdb/pdb_tdb.h.
Günther Deschner [Tue, 4 Oct 2011 15:31:59 +0000 (17:31 +0200)]
s3-passdb: split out passdb/pdb_tdb.h.

Guenther

12 years agos3-net: when all DNS servers fail to operate, the overal DNS registration result
Günther Deschner [Mon, 10 Oct 2011 11:06:51 +0000 (13:06 +0200)]
s3-net: when all DNS servers fail to operate, the overal DNS registration result
must be a failure.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 10 15:59:20 CEST 2011 on sn-devel-104

12 years agoldb: change version to 1.1.3 after pyldb changes save-diskspace-tags/ldb-1.1.3
Stefan Metzmacher [Mon, 10 Oct 2011 10:48:40 +0000 (12:48 +0200)]
ldb: change version to 1.1.3 after pyldb changes

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 10 14:24:25 CEST 2011 on sn-devel-104

12 years agoRemove pointless exception catching in tests.
Jelmer Vernooij [Sat, 8 Oct 2011 12:34:57 +0000 (14:34 +0200)]
Remove pointless exception catching in tests.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct  9 00:00:26 CEST 2011 on sn-devel-104

12 years agonetcmd/domain: Remove unused imports.
Jelmer Vernooij [Sat, 8 Oct 2011 12:34:35 +0000 (14:34 +0200)]
netcmd/domain: Remove unused imports.

12 years agos3-docs: Fix typo.
Karolin Seeger [Sat, 8 Oct 2011 18:54:37 +0000 (20:54 +0200)]
s3-docs: Fix typo.

Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Sat Oct  8 22:27:07 CEST 2011 on sn-devel-104

12 years agos3-docs: Fix bug #7908.
Karolin Seeger [Sat, 8 Oct 2011 18:53:18 +0000 (20:53 +0200)]
s3-docs: Fix bug #7908.

Fix typo.

Thanks to John Bradshaw for reporting!

Karolin

12 years agonetcmd: Avoid catching all exceptions, avoid using ';' at the end of lines.
Jelmer Vernooij [Sat, 8 Oct 2011 12:13:04 +0000 (14:13 +0200)]
netcmd: Avoid catching all exceptions, avoid using ';' at the end of lines.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Oct  8 15:46:46 CEST 2011 on sn-devel-104

12 years agoupgrade: Avoid catching all exceptions, just catch the ones we care about.
Jelmer Vernooij [Sat, 8 Oct 2011 12:07:18 +0000 (14:07 +0200)]
upgrade: Avoid catching all exceptions, just catch the ones we care about.

12 years agos4:findprovisionusnranges - the default python path is detected over "env"
Matthias Dieter Wallnöfer [Fri, 30 Sep 2011 14:45:55 +0000 (16:45 +0200)]
s4:findprovisionusnranges - the default python path is detected over "env"

Reviewed-by: Jelmer
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct  8 13:06:20 CEST 2011 on sn-devel-104

12 years agos4:upgrading-samba4.txt - fix mistakes reported by bug #8504
Matthias Dieter Wallnöfer [Fri, 30 Sep 2011 13:47:04 +0000 (15:47 +0200)]
s4:upgrading-samba4.txt - fix mistakes reported by bug #8504

Reviewed-by: Jelmer
12 years agoexamples/VFS: add skel_get_dfs_referrals()
Stefan Metzmacher [Sat, 8 Oct 2011 07:18:02 +0000 (09:18 +0200)]
examples/VFS: add skel_get_dfs_referrals()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct  8 11:29:18 CEST 2011 on sn-devel-104

12 years agoexamples/VFS: fix names in skel_opaque.c
Stefan Metzmacher [Sat, 8 Oct 2011 07:17:11 +0000 (09:17 +0200)]
examples/VFS: fix names in skel_opaque.c

metze

12 years agos4:torture/smb2: avoid '//' comments
Stefan Metzmacher [Sat, 8 Oct 2011 05:23:00 +0000 (07:23 +0200)]
s4:torture/smb2: avoid '//' comments

The compiler on openindiana doesn't like them.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct  8 08:56:10 CEST 2011 on sn-devel-104

12 years agos4:torture/drs: avoid '//' comments
Stefan Metzmacher [Sat, 8 Oct 2011 05:22:39 +0000 (07:22 +0200)]
s4:torture/drs: avoid '//' comments

The compiler on openindiana doesn't like them.

metze

12 years agos4:lib/wmi: avoid '//' comments
Stefan Metzmacher [Sat, 8 Oct 2011 05:22:14 +0000 (07:22 +0200)]
s4:lib/wmi: avoid '//' comments

The compiler on openindiana doesn't like them.

metze

12 years agos3:utils: avoid '//' comments
Stefan Metzmacher [Sat, 8 Oct 2011 05:21:49 +0000 (07:21 +0200)]
s3:utils: avoid '//' comments

The compiler on openindiana doesn't like them.

metze

12 years agos3:lib/netapi: avoid '//' comments
Stefan Metzmacher [Sat, 8 Oct 2011 05:21:25 +0000 (07:21 +0200)]
s3:lib/netapi: avoid '//' comments

The compiler on openindiana doesn't like them.

metze

12 years agodnsserver.idl: avoid '//' comments
Stefan Metzmacher [Sat, 8 Oct 2011 05:20:39 +0000 (07:20 +0200)]
dnsserver.idl: avoid '//' comments

The compiler on openindiana doesn't like them.

metze

12 years agobuild: build wbinfo only once in the waf build
Andrew Bartlett [Sat, 8 Oct 2011 00:19:35 +0000 (11:19 +1100)]
build: build wbinfo only once in the waf build

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Oct  8 04:52:03 CEST 2011 on sn-devel-104

12 years agobuild: remove double-setting of build_public_headers
Andrew Bartlett [Fri, 7 Oct 2011 23:50:32 +0000 (10:50 +1100)]
build: remove double-setting of build_public_headers

The top level build already sets this, so we do not need to set it twice.

Andrew Bartlett

12 years agobuild: s3 public headers appear to be correct now
Andrew Bartlett [Fri, 7 Oct 2011 23:49:49 +0000 (10:49 +1100)]
build: s3 public headers appear to be correct now

The build now passes without this setting, so remove it to ensure we
do this check in future.

Andrew Bartlett

12 years agoselftest: run dfs tests on plugin_s4_dc
Stefan Metzmacher [Tue, 4 Oct 2011 10:44:12 +0000 (12:44 +0200)]
selftest: run dfs tests on plugin_s4_dc

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct  8 03:18:54 CEST 2011 on sn-devel-104

12 years agos3:modules: add vfs_dfs_samba4
Stefan Metzmacher [Tue, 4 Oct 2011 10:38:00 +0000 (12:38 +0200)]
s3:modules: add vfs_dfs_samba4

This module overloads the SMB_VFS_GET_DFS_REFERRAL() hooks,
in order to support the domain, dc and sysvol referrals
for a AD DC.

The config would look like this:

[IPC$]
    vfs objects = dfs_samba4

metze

12 years agos3:msdfs: removed unused variables
Stefan Metzmacher [Sat, 1 Oct 2011 07:15:58 +0000 (09:15 +0200)]
s3:msdfs: removed unused variables

metze

12 years agos3:msdfs: implement setup_dfs_referral() on top of SMB_VFS_GET_DFS_REFERRALS()
Stefan Metzmacher [Sat, 1 Oct 2011 07:13:50 +0000 (09:13 +0200)]
s3:msdfs: implement setup_dfs_referral() on top of SMB_VFS_GET_DFS_REFERRALS()

metze

12 years agos3:vfs: add SMB_VFS_GET_DFS_REFERRAL() hooks
Stefan Metzmacher [Sat, 1 Oct 2011 04:57:18 +0000 (06:57 +0200)]
s3:vfs: add SMB_VFS_GET_DFS_REFERRAL() hooks

metze

12 years agos3:param: add lp_host_msdfs to loadparm_s3_context
Stefan Metzmacher [Tue, 4 Oct 2011 10:41:12 +0000 (12:41 +0200)]
s3:param: add lp_host_msdfs to loadparm_s3_context

metze

12 years agos4:smb_server: implement dfs referral handing on top of dfs_server_ad_get_referrals()
Stefan Metzmacher [Tue, 4 Oct 2011 10:42:11 +0000 (12:42 +0200)]
s4:smb_server: implement dfs referral handing on top of dfs_server_ad_get_referrals()

metze

12 years agodfs_server: add generic dfs_server_ad_get_referrals() call
Stefan Metzmacher [Tue, 4 Oct 2011 11:08:50 +0000 (13:08 +0200)]
dfs_server: add generic dfs_server_ad_get_referrals() call

This is a generic function to implement the domain, dc and sysvol
DFS referrals.

metze

12 years agoexamples/VFS: fix a typo in the README
Michael Adam [Fri, 7 Oct 2011 12:00:18 +0000 (14:00 +0200)]
examples/VFS: fix a typo in the README

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Oct  8 01:42:33 CEST 2011 on sn-devel-104

12 years agoFix bug #8509 - Read-only handles on SAMR allow SAMR_DOMAIN_ACCESS_CREATE_USER.
Jeremy Allison [Fri, 7 Oct 2011 18:09:44 +0000 (11:09 -0700)]
Fix bug #8509 - Read-only handles on SAMR allow SAMR_DOMAIN_ACCESS_CREATE_USER.

Not a security issue as we also check inside _samr_CreateUser2.
Thanks to Andreas Schneider <asn@samba.org> for finding and testing this.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Oct  7 21:51:27 CEST 2011 on sn-devel-104