samba.git
13 years agos4-dsdb Don't talloc_free() ares on failure, as LDB might free it later
Andrew Bartlett [Thu, 16 Dec 2010 04:51:55 +0000 (15:51 +1100)]
s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later

We need to make LDB consistent here (indexed vs unindexed behaviour
differs here!), but for the moment this is the easiest way out of a
segfault.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Dec 16 06:42:56 CET 2010 on sn-devel-104

13 years agos4-dsdb Use sid_blob_parse()
Andrew Bartlett [Wed, 15 Dec 2010 04:48:00 +0000 (15:48 +1100)]
s4-dsdb Use sid_blob_parse()

13 years agolibcli/security Add sid_blob_parse() to directly parse a binary SID blob
Andrew Bartlett [Wed, 15 Dec 2010 04:47:01 +0000 (15:47 +1100)]
libcli/security Add sid_blob_parse() to directly parse a binary SID blob

13 years agoTypos in wintest
Zahari Zahariev [Mon, 13 Dec 2010 16:14:51 +0000 (18:14 +0200)]
Typos in wintest

13 years agoFix old bug in openX code, exposed when "strict allocate" is set to true.
Jeremy Allison [Thu, 16 Dec 2010 00:49:04 +0000 (16:49 -0800)]
Fix old bug in openX code, exposed when "strict allocate" is set to true.

We need to return the file size here, not the allocation size, but
we were not updating the stat struct after the vfs_set_filesize()
call. Ensure we always use fresh data in openX replies.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 16 02:37:58 CET 2010 on sn-devel-104

13 years agoChange strict allocate to default to true. (cherry picked from commit 820ea22a07b062b...
Jeremy Allison [Wed, 15 Dec 2010 21:32:09 +0000 (13:32 -0800)]
Change strict allocate to default to true. (cherry picked from commit 820ea22a07b062b1717d35de8fa7051fc1067c3f)

13 years agos4-tests: Added a speedtest for LDAP search operations with different accounts.
Nadezhda Ivanova [Wed, 15 Dec 2010 19:29:53 +0000 (21:29 +0200)]
s4-tests: Added a speedtest for LDAP search operations with different accounts.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Dec 15 21:32:09 CET 2010 on sn-devel-104

13 years agos4-tests: Added tests for LDAP add/delete/modify using anonymous login.
Nadezhda Ivanova [Wed, 15 Dec 2010 19:28:59 +0000 (21:28 +0200)]
s4-tests: Added tests for LDAP add/delete/modify using anonymous login.

13 years agos4-dsdb: Fixed incorrect LDAP return code when anonymous login is used.
Nadezhda Ivanova [Wed, 15 Dec 2010 19:28:12 +0000 (21:28 +0200)]
s4-dsdb: Fixed incorrect LDAP return code when anonymous login is used.

13 years agoFix bug 7866 - "net" in v3-6-test broken.
Jeremy Allison [Wed, 15 Dec 2010 18:57:23 +0000 (10:57 -0800)]
Fix bug 7866 - "net" in v3-6-test broken.

Someone wasn't careful about testing when not running as root :-).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 20:45:25 CET 2010 on sn-devel-104

13 years agoldb: Bump API after symbol changes.
Jelmer Vernooij [Wed, 15 Dec 2010 16:29:59 +0000 (17:29 +0100)]
ldb: Bump API after symbol changes.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Dec 15 18:18:52 CET 2010 on sn-devel-104

13 years agoldb: Build modules as .so files.
Jelmer Vernooij [Wed, 15 Dec 2010 15:47:46 +0000 (16:47 +0100)]
ldb: Build modules as .so files.

13 years agojoin: Properly cancel transaction on exceptions.
Jelmer Vernooij [Wed, 15 Dec 2010 15:40:59 +0000 (16:40 +0100)]
join: Properly cancel transaction on exceptions.

13 years agoMove get_loadparm() and get_credentials() to samba.tests.TestCase.
Jelmer Vernooij [Wed, 15 Dec 2010 13:57:43 +0000 (14:57 +0100)]
Move get_loadparm() and get_credentials() to samba.tests.TestCase.

13 years agos3:rpc_client: implement rpc_transport_np_init() on top of rpc_transport_tstream_init()
Stefan Metzmacher [Mon, 6 Sep 2010 15:31:15 +0000 (17:31 +0200)]
s3:rpc_client: implement rpc_transport_np_init() on top of rpc_transport_tstream_init()

This also makes use of tstream_cli_np_open() to get the tstream.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 15 16:12:30 CET 2010 on sn-devel-104

13 years agos3:rpc_client: implement rpc_transport_sock_init() on top of rpc_transport_tstream_init()
Stefan Metzmacher [Mon, 6 Sep 2010 15:31:27 +0000 (17:31 +0200)]
s3:rpc_client: implement rpc_transport_sock_init() on top of rpc_transport_tstream_init()

metze

13 years agos3:rpc_client/rpc_transport_tstream.c: add some logic to handle cli_np tstreams
Stefan Metzmacher [Tue, 14 Dec 2010 17:20:25 +0000 (18:20 +0100)]
s3:rpc_client/rpc_transport_tstream.c: add some logic to handle cli_np tstreams

metze

13 years agos3:rpc_client/rpc_transport_tstream: timeout should be unsigned int
Stefan Metzmacher [Tue, 14 Dec 2010 17:19:14 +0000 (18:19 +0100)]
s3:rpc_client/rpc_transport_tstream: timeout should be unsigned int

metze

13 years agos3:rpc_client: let rpc_transport_tstream_init() create read and write queue
Stefan Metzmacher [Tue, 22 Jun 2010 22:01:45 +0000 (18:01 -0400)]
s3:rpc_client: let rpc_transport_tstream_init() create read and write queue

metze

13 years agos3:libsmb: add tstream_cli_np_get_cli_state()
Stefan Metzmacher [Tue, 14 Dec 2010 17:18:13 +0000 (18:18 +0100)]
s3:libsmb: add tstream_cli_np_get_cli_state()

metze

13 years agos3:libsmb: add tstream_cli_np_set_timeout()
Stefan Metzmacher [Tue, 14 Dec 2010 17:17:45 +0000 (18:17 +0100)]
s3:libsmb: add tstream_cli_np_set_timeout()

metze

13 years agos3:libsmb: add tstream_cli_np_use_trans() and the needed logic
Stefan Metzmacher [Sat, 4 Sep 2010 09:01:55 +0000 (11:01 +0200)]
s3:libsmb: add tstream_cli_np_use_trans() and the needed logic

tstream_cli_np_use_trans() defers the next tstream_writev
to the next tstream_readv and send both as an SMBtrans request.

metze

13 years agos3:libsmb: add tstream_is_cli_np()
Stefan Metzmacher [Sat, 4 Sep 2010 09:00:31 +0000 (11:00 +0200)]
s3:libsmb: add tstream_is_cli_np()

metze

13 years agos3:libsmb: add cli_np_tstream.c
Stefan Metzmacher [Thu, 12 Aug 2010 10:00:15 +0000 (12:00 +0200)]
s3:libsmb: add cli_np_tstream.c

This abstracts a named pipe over smb as a tstream,
which will make it easier to implement the dcerpc
layer in a more generic way.

metze

13 years agos4-dsdb/tests/python: Explicitly pass comamnd line LoadParm() instance to system_sess...
Kamen Mazdrashki [Wed, 15 Dec 2010 13:16:54 +0000 (15:16 +0200)]
s4-dsdb/tests/python: Explicitly pass comamnd line LoadParm() instance to system_session()

Otherwise system_session() creates a LoadParm() instance
which resets certain global parameters to their defaults
from smb.conf ("log level" for instance)

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 15 15:10:47 CET 2010 on sn-devel-104

13 years agos4-dns: implemented parsing and storing of DNS records from bind
Andrew Tridgell [Wed, 15 Dec 2010 10:46:05 +0000 (21:46 +1100)]
s4-dns: implemented parsing and storing of DNS records from bind

DNS updates from nsupdate against our ldb SAM now work

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec 15 12:36:46 CET 2010 on sn-devel-104

13 years agos4-dns: added basic DLZ writeable support to dlz_bind9
Andrew Tridgell [Wed, 15 Dec 2010 04:02:09 +0000 (15:02 +1100)]
s4-dns: added basic DLZ writeable support to dlz_bind9

this implements the expanded DLZ update driver API, allowing for bind9
to send dynamic updates to the Samba DLZ driver.

This change also adds support for exporting all DNS zones in the SAM
database, which also means we now correctly separate the _msdcs zone
from the main zone.

13 years agowaf: fixed re-running of build rules
Andrew Tridgell [Wed, 15 Dec 2010 03:59:47 +0000 (14:59 +1100)]
waf: fixed re-running of build rules

the addition of ldflags deps caused us to re-run the build rules every
time.

13 years agos3-waf: use shared libwbclient wscript_build.
Günther Deschner [Wed, 15 Dec 2010 09:21:16 +0000 (10:21 +0100)]
s3-waf: use shared libwbclient wscript_build.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 15 11:42:16 CET 2010 on sn-devel-104

13 years agos3-waf: fix winbind-client subsystem.
Günther Deschner [Wed, 15 Dec 2010 09:11:34 +0000 (10:11 +0100)]
s3-waf: fix winbind-client subsystem.

Guenther

13 years agos3-waf: add libkrb5 winbind locator plugin.
Günther Deschner [Wed, 15 Dec 2010 09:04:34 +0000 (10:04 +0100)]
s3-waf: add libkrb5 winbind locator plugin.

Guenther

13 years agos3-waf: rework rpc_server handling a bit.
Günther Deschner [Tue, 14 Dec 2010 23:33:21 +0000 (00:33 +0100)]
s3-waf: rework rpc_server handling a bit.

Guenther

13 years agobuild: openbsd plateform is openbsd4
Matthieu Patou [Wed, 15 Dec 2010 09:06:53 +0000 (12:06 +0300)]
build: openbsd plateform is openbsd4

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Dec 15 10:55:08 CET 2010 on sn-devel-104

13 years agobuild: hpux didn't support -Bdynamic
Matthieu Patou [Wed, 15 Dec 2010 08:33:02 +0000 (11:33 +0300)]
build: hpux didn't support -Bdynamic

13 years agoProtect the onefs sendfile from EAGAIN/EWOULDBLOCK.
Jeremy Allison [Wed, 15 Dec 2010 01:35:29 +0000 (17:35 -0800)]
Protect the onefs sendfile from EAGAIN/EWOULDBLOCK.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 03:26:43 CET 2010 on sn-devel-104

13 years agoImplement "use sendfile = yes" for SMB2. (cherry picked from commit 95cb7adcd03a1abbd...
Jeremy Allison [Tue, 14 Dec 2010 21:36:08 +0000 (13:36 -0800)]
Implement "use sendfile = yes" for SMB2. (cherry picked from commit 95cb7adcd03a1abbd0af395b6c96dd8e0eebd3d1)

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 02:24:08 CET 2010 on sn-devel-104

13 years agoFix read/write calls over sockets to cope with EAGAIN/EWOULDBLOCK for non-blocking...
Jeremy Allison [Tue, 14 Dec 2010 23:30:06 +0000 (15:30 -0800)]
Fix read/write calls over sockets to cope with EAGAIN/EWOULDBLOCK for non-blocking sockets.

13 years agoChange interface of schedule_smb2_aio_read() to allocate the return DATA_BLOB.
Jeremy Allison [Wed, 15 Dec 2010 00:32:10 +0000 (16:32 -0800)]
Change interface of schedule_smb2_aio_read() to allocate the return DATA_BLOB.
Change smb2_read code to allocate return DATA_BLOB just before the read.

Preparing for SMB2 sendfile change which will not need to allocate
return buffer.

Jeremy

13 years agos4-test/repl_schema: remove unused and commented out code
Kamen Mazdrashki [Tue, 14 Dec 2010 22:24:23 +0000 (00:24 +0200)]
s4-test/repl_schema: remove unused and commented out code

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 15 01:37:10 CET 2010 on sn-devel-104

13 years agos4-test/repl_schema: Make sure every object is with unique name
Kamen Mazdrashki [Mon, 13 Dec 2010 18:15:26 +0000 (20:15 +0200)]
s4-test/repl_schema: Make sure every object is with unique name

This way, test writer don't have to be careful to choose
unique objects suffix

13 years agos4-dsdb_schema: Handle remote ATTIDs based on msDs-IntId value
Kamen Mazdrashki [Fri, 10 Dec 2010 23:59:05 +0000 (01:59 +0200)]
s4-dsdb_schema: Handle remote ATTIDs based on msDs-IntId value

If we get such an msDs-IntId value, then we should just use it,
there is no mapping available for such values

13 years agos4-schema_syntax: Log error message when _dsdb_syntax_OID_oid_drsuapi_to_ldb() fails
Kamen Mazdrashki [Fri, 10 Dec 2010 02:22:58 +0000 (04:22 +0200)]
s4-schema_syntax: Log error message when _dsdb_syntax_OID_oid_drsuapi_to_ldb() fails

I haven't found a way to test this function during replication so far,
but when I do, it will be useful to notice this error in the log file

13 years agos4-drepl: We won't need a working schema for empty replicas sent.
Kamen Mazdrashki [Fri, 10 Dec 2010 02:17:09 +0000 (04:17 +0200)]
s4-drepl: We won't need a working schema for empty replicas sent.

Without this check, receiving empty replica leads to a situation
where we left with a working_schema attached to the ldb.

The problem here is that working_schema is not fully functional
schema cache and keeping it attached to the ldb may lead
to modules failing to accomplish their jobs

13 years agos4-dsdb_schema: We need base_dn in Schema's shallow copy too
Kamen Mazdrashki [Fri, 10 Dec 2010 02:08:58 +0000 (04:08 +0200)]
s4-dsdb_schema: We need base_dn in Schema's shallow copy too

13 years agos4-schema_syntax: We should use make_ATTID function when converting remote-ATTID...
Kamen Mazdrashki [Fri, 10 Dec 2010 02:03:00 +0000 (04:03 +0200)]
s4-schema_syntax: We should use make_ATTID function when converting remote-ATTID to local one

We may have no prefix for the remote ATTID (remote OID strictly speaking)
So this is the place for us to update our local prefixMap
adding a prefix for the numeric OID we've recived

13 years agos4-drepl: User working schema for commiting objects when replicating Schema NC
Kamen Mazdrashki [Fri, 10 Dec 2010 01:55:24 +0000 (03:55 +0200)]
s4-drepl: User working schema for commiting objects when replicating Schema NC

13 years agos4-repl: Allow dsdb_replicated_objects_commit() to use different schema while committ...
Kamen Mazdrashki [Fri, 10 Dec 2010 00:55:30 +0000 (02:55 +0200)]
s4-repl: Allow dsdb_replicated_objects_commit() to use different schema while committing objects

working_schema is to be used while committing a Schema replica.

When we replicate Schema, then we most probably won't be
able to convert all replicated objects using the current
Schema cache (as we don't know anything about those new objects).

Thus, during Schema replication, we make a temporary
working_schema that contains both our current Schema +
all objects we get on the wire.
When we commit those new objects, we should use our working_schema
(by setting it to the ldb), and after all changes are commited,
we can refresh the schema cache so we have a brand new,
full-featured Schema cache

13 years agos4-schema_syntax: Use remote prefixMap to map remote ATTID to local one
Kamen Mazdrashki [Thu, 9 Dec 2010 02:45:17 +0000 (04:45 +0200)]
s4-schema_syntax: Use remote prefixMap to map remote ATTID to local one

in dsdb_attribute_drsuapi_to_ldb() function.

drsuapi_DsReplicaAttribute *in parameter come from remote DC
so we can't rely on in->attid to map it directly to an
dsdb_attribute in our local schema cache

13 years agos4-test/repl_schema: use 'top' as default base class for our test classSchema objects
Kamen Mazdrashki [Thu, 9 Dec 2010 02:57:08 +0000 (04:57 +0200)]
s4-test/repl_schema: use 'top' as default base class for our test classSchema objects

Otherwise we will end up passing whole inheritance chain
every time we create some new fancy classSchema object
(as the 'cls-A' and 'cls-B' ones in test_classWithCustomAttribute test)

13 years agos4-test/repl_schema: New test to test a classSchema with custom attribute
Kamen Mazdrashki [Thu, 9 Dec 2010 02:42:13 +0000 (04:42 +0200)]
s4-test/repl_schema: New test to test a classSchema with custom attribute

Create new Attribute and a Class,
that has value for newly created attribute.

This should check code path that searches for
AttributeID_id in Schema cacheThis test.

It also tests how we replicate a leaf classSchema that
inherits from a new classSchema with attribute added
- tests both dsdb_attribute_drsuapi_to_ldb() and
_dsdb_syntax_OID_obj_drsuapi_to_ldb() syntax handler

13 years agos4-dsdb_schema: Seize using global_schema when referencing new schema for an LDB
Kamen Mazdrashki [Thu, 9 Dec 2010 02:31:14 +0000 (04:31 +0200)]
s4-dsdb_schema: Seize using global_schema when referencing new schema for an LDB

Without this change, when a schema is set to ldb, the
effect is that dsdb_get_schema() returns global_schema
preferably.

Thus we end up with two schemas in effect:
- global one, which is the old one and it is still used everywhere
- new one, which is just cached in ldb, but can't be used, as
  there is no way to access it

13 years agos3-waf: libwbclient does not depend on talloc anymore.
Günther Deschner [Tue, 14 Dec 2010 21:54:01 +0000 (22:54 +0100)]
s3-waf: libwbclient does not depend on talloc anymore.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 15 00:50:08 CET 2010 on sn-devel-104

13 years agos3-waf: add missing libnss_wins.so.2 library.
Günther Deschner [Tue, 14 Dec 2010 21:18:43 +0000 (22:18 +0100)]
s3-waf: add missing libnss_wins.so.2 library.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec 14 23:29:25 CET 2010 on sn-devel-104

13 years agos3-waf: recurse into ../libcli/ldap.
Günther Deschner [Tue, 14 Dec 2010 21:09:44 +0000 (22:09 +0100)]
s3-waf: recurse into ../libcli/ldap.

Guenther

13 years agos3-waf: recurse into ../libcli/smb.
Günther Deschner [Tue, 14 Dec 2010 16:47:46 +0000 (17:47 +0100)]
s3-waf: recurse into ../libcli/smb.

Guenther

13 years agos3-waf: recurse into ../libcli/samsync.
Günther Deschner [Tue, 14 Dec 2010 16:45:33 +0000 (17:45 +0100)]
s3-waf: recurse into ../libcli/samsync.

Guenther

13 years agos3-waf: recurse into ../libcli/named_pipe_auth.
Günther Deschner [Tue, 14 Dec 2010 16:36:06 +0000 (17:36 +0100)]
s3-waf: recurse into ../libcli/named_pipe_auth.

Guenther

13 years agos3-waf: recurse into ../libcli/drsuapi.
Günther Deschner [Tue, 14 Dec 2010 16:33:49 +0000 (17:33 +0100)]
s3-waf: recurse into ../libcli/drsuapi.

Guenther

13 years agos3-waf: add pam_ and nss_winbind.
Günther Deschner [Tue, 14 Dec 2010 16:14:58 +0000 (17:14 +0100)]
s3-waf: add pam_ and nss_winbind.

Guenther

13 years agos3-waf: check for "WITH_PAM_MODULES" to determine pam_smbpass build.
Günther Deschner [Tue, 14 Dec 2010 16:14:30 +0000 (17:14 +0100)]
s3-waf: check for "WITH_PAM_MODULES" to determine pam_smbpass build.

Guenther

13 years agos3-waf: fix pamsmbpass libwbclient dependency.
Günther Deschner [Tue, 14 Dec 2010 16:13:46 +0000 (17:13 +0100)]
s3-waf: fix pamsmbpass libwbclient dependency.

Guenther

13 years agos3-waf: recurse into ../libcli/auth.
Günther Deschner [Tue, 14 Dec 2010 13:03:22 +0000 (14:03 +0100)]
s3-waf: recurse into ../libcli/auth.

Guenther

13 years agos3-waf: add CHARSET subsystem.
Günther Deschner [Tue, 14 Dec 2010 15:47:35 +0000 (16:47 +0100)]
s3-waf: add CHARSET subsystem.

Guenther

13 years agos3-waf: convert UTIL_SRC into a subsystem samba-util, similar to the s4 one.
Günther Deschner [Tue, 14 Dec 2010 12:50:30 +0000 (13:50 +0100)]
s3-waf: convert UTIL_SRC into a subsystem samba-util, similar to the s4 one.

Guenther

13 years agos3-waf: convert lib/util_tdb.c into a subsystem.
Günther Deschner [Tue, 14 Dec 2010 12:27:24 +0000 (13:27 +0100)]
s3-waf: convert lib/util_tdb.c into a subsystem.

Guenther

13 years agos3-waf: use shared LIBASYNC_REQ subsystem.
Günther Deschner [Tue, 14 Dec 2010 12:14:00 +0000 (13:14 +0100)]
s3-waf: use shared LIBASYNC_REQ subsystem.

Guenther

13 years agos4-smbtorture: paranoia check for architectures in request and reply for enumdrivers...
Günther Deschner [Mon, 13 Dec 2010 14:46:05 +0000 (15:46 +0100)]
s4-smbtorture: paranoia check for architectures in request and reply for enumdrivers test.

Guenther

13 years agobuild: fix bad syntax
Matthieu Patou [Tue, 14 Dec 2010 19:04:42 +0000 (22:04 +0300)]
build: fix bad syntax

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Dec 14 20:55:17 CET 2010 on sn-devel-104

13 years agos4:gensec/spnego: only look at the optimistic token if we support the first mech
Stefan Metzmacher [Wed, 1 Dec 2010 06:02:15 +0000 (07:02 +0100)]
s4:gensec/spnego: only look at the optimistic token if we support the first mech

As a server only try the mechs the client proposed
and only call gensec_update() with the optimistic token
for the first mech in the list.

If the server doesn't support the first mech we pick the
first one in the clients list we also support.
That's how w2k8r2 works.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec 14 16:50:50 CET 2010 on sn-devel-104

13 years agos3/net: don't use external "date" to make "net time set" more portable
Björn Jacke [Tue, 14 Dec 2010 12:28:49 +0000 (13:28 +0100)]
s3/net: don't use external "date" to make "net time set" more portable

the "date" syntax is different for example on *BSD

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Dec 14 15:31:03 CET 2010 on sn-devel-104

13 years agowafsamba: change the default value for SAMBA_MODULE of pyembed to False
Matthieu Patou [Tue, 14 Dec 2010 12:38:03 +0000 (15:38 +0300)]
wafsamba: change the default value for SAMBA_MODULE of pyembed to False

ALL SAMBA_MODULE didn't need this, new modules that could need will just
have to opt this in

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Dec 14 14:45:15 CET 2010 on sn-devel-104

13 years agobuild do not add -no-undefined on openbsd
Matthieu Patou [Mon, 13 Dec 2010 14:41:26 +0000 (17:41 +0300)]
build do not add -no-undefined on openbsd

13 years agoEnsure we use vfs_fsp_stat(), not VFS_STAT directly, and store into fsp->fsp_name->st
Jeremy Allison [Tue, 14 Dec 2010 03:17:57 +0000 (19:17 -0800)]
Ensure we use vfs_fsp_stat(), not VFS_STAT directly, and store into fsp->fsp_name->st
instead of a SMB_STRUCT_STAT on the stack.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 14 05:05:50 CET 2010 on sn-devel-104

13 years agowintest Add testing of kerberos connections to Windows members of an AD domain
Andrew Bartlett [Mon, 13 Dec 2010 23:53:34 +0000 (10:53 +1100)]
wintest Add testing of kerberos connections to Windows members of an AD domain

This improves the Samba3 wintest script to test against Windows7 and
WinXP domain members, and Windows7 standalone servers.  To do this,
more of the samba4 script is put in common, and we splut up the
starting of the VMs from the preperation of the VM.

This also improves the nmblookup command parsing to cope with both the
samba3 and samba4 nmblookup commands.

A krb5.conf is now provided for both s3 and s4 tests.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Dec 14 01:54:46 CET 2010 on sn-devel-104

13 years agos3-libsmb Improve error message when denying LM encryption
Andrew Bartlett [Mon, 13 Dec 2010 01:40:25 +0000 (12:40 +1100)]
s3-libsmb Improve error message when denying LM encryption

Now that 'client ntlmv2 auth = yes' is the default, make it more clear
what options a user may need to enable to get this to work.

Andrew Bartlett

13 years agoChange crediting so that the credits are returned on the interim async response.
Jeremy Allison [Mon, 13 Dec 2010 23:22:47 +0000 (15:22 -0800)]
Change crediting so that the credits are returned on the interim async response.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Dec 14 01:09:05 CET 2010 on sn-devel-104

13 years agoAs we handle missing sendfile() inside lib/sendfile.c, remove the WITH_SENDFILE ifdefs.
Jeremy Allison [Mon, 13 Dec 2010 22:00:34 +0000 (14:00 -0800)]
As we handle missing sendfile() inside lib/sendfile.c, remove the WITH_SENDFILE ifdefs.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec 13 23:47:07 CET 2010 on sn-devel-104

13 years agoWe need to start off with smb2.credits_granted == 0. That way
Jeremy Allison [Mon, 13 Dec 2010 21:34:50 +0000 (13:34 -0800)]
We need to start off with smb2.credits_granted == 0. That way
when processing the faked up SMB2 NegProt from the SMB1 packet we
always allocate one credit on reply.

Jeremy.

13 years agoRemove extra unused credit arg. to smbd_smb2_request_setup_out()
Jeremy Allison [Mon, 13 Dec 2010 21:17:49 +0000 (13:17 -0800)]
Remove extra unused credit arg. to smbd_smb2_request_setup_out()

13 years agos4:dsdb:password_hash: verify content if the BYPASS_PASSWORD_HASH control is used
Stefan Metzmacher [Tue, 7 Dec 2010 15:10:49 +0000 (16:10 +0100)]
s4:dsdb:password_hash: verify content if the BYPASS_PASSWORD_HASH control is used

Make it much harder to import bad data into the password attributes.
This isn't 100% safe, but much better than no checks.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 13 16:17:36 CET 2010 on sn-devel-104

13 years agos4:ldap_controls: allow DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID over sockets.
Stefan Metzmacher [Wed, 1 Dec 2010 19:36:43 +0000 (20:36 +0100)]
s4:ldap_controls: allow DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID over sockets.

The DSDB_CONTROL_BYPASS_PASSWORD_HASH_OID control has to data attached to it.
So we can allow it to be send over LDAP.

We'll accept this control over the privileged ldapi socket only.

metze

13 years agos4:ldap_server: don't call ldb_req_mark_untrusted() on the privileged ldapi socket
Stefan Metzmacher [Wed, 1 Dec 2010 11:18:21 +0000 (12:18 +0100)]
s4:ldap_server: don't call ldb_req_mark_untrusted() on the privileged ldapi socket

metze

13 years agos4:ldap_server: rename helper functions to ldapsrv_ prefix and pass ldapsrv_call
Stefan Metzmacher [Wed, 1 Dec 2010 11:14:22 +0000 (12:14 +0100)]
s4:ldap_server: rename helper functions to ldapsrv_ prefix and pass ldapsrv_call

metze

13 years agos4:dsdb:util: dsdb_get_single_valued_attr() only needs a const ldb_messages
Stefan Metzmacher [Mon, 13 Dec 2010 10:28:59 +0000 (11:28 +0100)]
s4:dsdb:util: dsdb_get_single_valued_attr() only needs a const ldb_messages

metze

13 years agos3-waf: try to fix the build with snow leopard.
Günther Deschner [Mon, 13 Dec 2010 11:56:38 +0000 (12:56 +0100)]
s3-waf: try to fix the build with snow leopard.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 13 15:03:08 CET 2010 on sn-devel-104

13 years agos3:selftest: fix knownfail for samba3.posix_s3.rpc.spoolss.*printserver.enum_printers_old
Stefan Metzmacher [Mon, 13 Dec 2010 11:04:28 +0000 (12:04 +0100)]
s3:selftest: fix knownfail for samba3.posix_s3.rpc.spoolss.*printserver.enum_printers_old

The name is in lowercase since commit 35fbc7bbda5851f7172538f79fc79be201f1d521
(s4-smbtorture: Make test names lowercase and dot-separated.)

This should avoid intermittent failures in make test.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Dec 13 13:52:18 CET 2010 on sn-devel-104

13 years agos4:heimdal_build: replace '+' by '_' for vscripts in HEIMDAL_LIBRARY()
Stefan Metzmacher [Mon, 13 Dec 2010 10:53:03 +0000 (11:53 +0100)]
s4:heimdal_build: replace '+' by '_' for vscripts in HEIMDAL_LIBRARY()

metze

13 years agos3-selftest: support differing VFSLIBDIR in autoconf and waf build.
Günther Deschner [Fri, 10 Dec 2010 16:15:18 +0000 (17:15 +0100)]
s3-selftest: support differing VFSLIBDIR in autoconf and waf build.

With this change make test in the s3 waf build (w/o s4 smbtorture yet) works!

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 13 13:06:05 CET 2010 on sn-devel-104

13 years agos3-waf: add -Wl,--export-dynamic to LDFLAGS.
Günther Deschner [Thu, 9 Dec 2010 14:44:30 +0000 (15:44 +0100)]
s3-waf: add -Wl,--export-dynamic to LDFLAGS.

Our binaries did not export symbols so e.g. smbd could not load vfs modules.
Patch from tridge.

We might remove this later on, once we decide to resolve all symbols and fix all
dependencies in s3 modules.

Guenther

13 years agonss_wrapper: make nss_wrapper.pl executeable.
Günther Deschner [Thu, 9 Dec 2010 14:33:25 +0000 (15:33 +0100)]
nss_wrapper: make nss_wrapper.pl executeable.

Guenther

13 years agobuild: remove -no-undefined and -as-needed on openbsd
Matthieu Patou [Sun, 12 Dec 2010 21:55:08 +0000 (00:55 +0300)]
build: remove -no-undefined and -as-needed on openbsd

This is causing problems with linker

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Dec 13 00:25:38 CET 2010 on sn-devel-104

13 years agos4:dsdb/pydsdb.c - don't throw another exception on "PyObject_AsDn"
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 20:42:30 +0000 (21:42 +0100)]
s4:dsdb/pydsdb.c - don't throw another exception on "PyObject_AsDn"

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 23:40:17 CET 2010 on sn-devel-104

13 years agoldb:pyldb.h - revert to the previous header behaviour
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 20:40:03 +0000 (21:40 +0100)]
ldb:pyldb.h - revert to the previous header behaviour

"ldb_private.h" is private and therefore might not always be available.

13 years agobuild: move the import near the place where need it, so that we can build on hosts...
Matthieu Patou [Sun, 12 Dec 2010 20:57:37 +0000 (23:57 +0300)]
build: move the import near the place where need it, so that we can build on hosts with python's zlib

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Dec 12 22:54:19 CET 2010 on sn-devel-104

13 years agos4:scripting/python/pyglue.c - add a OOM handling
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:23:53 +0000 (19:23 +0100)]
s4:scripting/python/pyglue.c - add a OOM handling

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 20:50:55 CET 2010 on sn-devel-104

13 years agos4:scripting/python/pyglue.c - optimise includes
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:23:34 +0000 (19:23 +0100)]
s4:scripting/python/pyglue.c - optimise includes

13 years agos4:param/provision.c - optimise includes
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:19:43 +0000 (19:19 +0100)]
s4:param/provision.c - optimise includes

13 years agos4:libcli/finddc.h - fix header dependancies
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:13:51 +0000 (19:13 +0100)]
s4:libcli/finddc.h - fix header dependancies

And optimise includes

13 years agos4:libcli/finddcs_nbt.c - optimise headers
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 18:01:23 +0000 (19:01 +0100)]
s4:libcli/finddcs_nbt.c - optimise headers

13 years agos4:libnet/py_net.c - add checks for OOM conditions
Matthias Dieter Wallnöfer [Sun, 12 Dec 2010 17:54:56 +0000 (18:54 +0100)]
s4:libnet/py_net.c - add checks for OOM conditions