nivanova/samba-autobuild/.git
9 years agos4-provision Add an invalid names check for 'domain == netbiosname'
Andrew Bartlett [Sat, 4 Dec 2010 01:34:44 +0000 (12:34 +1100)]
s4-provision Add an invalid names check for 'domain == netbiosname'

(This is also invalid)

Andrew Bartlett

9 years agobuild: fix hpux build pb
Matthieu Patou [Tue, 7 Dec 2010 20:42:15 +0000 (23:42 +0300)]
build: fix hpux build pb

Pair-Programmed-With: Thomas Nagy <tnagy2pow10@gmail.com>

Fix the library extension from .so to .sl
Add full path to library when linking this is needed due to a strange
behavior of HP-UX:

This command: gcc demo demo.c -L dir1/dir2/ -lsomelib
will give a binary with a hard coded lib like dir1/dir2/libsomelib.sl.
Somehow like a partial rpath, it has the first impact of fooling waf
detection of wether the plateform support libraries or not (leading to
being unable to compile samba on HPUX) and the impact of having non
functionnal binaries.

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Dec  8 00:32:50 CET 2010 on sn-devel-104

9 years agodocs: clarify the idmap_rid manpage (bug #7788)
Michael Adam [Tue, 7 Dec 2010 16:30:27 +0000 (17:30 +0100)]
docs: clarify the idmap_rid manpage (bug #7788)

The idmap_rid module should not be used as a default backend.
Also mention that the old snytax "idmap backend = rid:domain=range ..."
is not supported any more.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Dec  7 19:07:57 CET 2010 on sn-devel-104

9 years agodocs: clarify the idmap_ad manpage (bug #6322)
Michael Adam [Tue, 7 Dec 2010 14:47:52 +0000 (15:47 +0100)]
docs: clarify the idmap_ad manpage (bug #6322)

The idmap_ad module can not be used as a default backend.

9 years agolibcli/auth: let spnego_write_mech_types() check the asn1_load() return
Stefan Metzmacher [Wed, 1 Dec 2010 23:40:01 +0000 (00:40 +0100)]
libcli/auth: let spnego_write_mech_types() check the asn1_load() return

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Dec  7 18:23:41 CET 2010 on sn-devel-104

9 years agos3:ntlm_auth: support clients which offer a spnego mechs we don't support
Stefan Metzmacher [Wed, 1 Dec 2010 23:39:23 +0000 (00:39 +0100)]
s3:ntlm_auth: support clients which offer a spnego mechs we don't support

Before we rejected the authentication if we don't support the
first spnego mech the client offered.

We now negotiate the first mech we support.

This fix works arround problems, when a client
sends the NEGOEX (1.3.6.1.4.1.311.2.2.30) oid,
which we don't support.

metze

9 years agos3:ntlm_auth: free session key, as we don't use it (at least for now)
Stefan Metzmacher [Wed, 1 Dec 2010 04:52:29 +0000 (05:52 +0100)]
s3:ntlm_auth: free session key, as we don't use it (at least for now)

metze

9 years agos3:ntlm_auth: fix memory leak in the raw ntlmssp code path
Stefan Metzmacher [Wed, 1 Dec 2010 04:50:59 +0000 (05:50 +0100)]
s3:ntlm_auth: fix memory leak in the raw ntlmssp code path

metze

9 years agoMake sure that user exists after running add user script before adding sam account.
Bjoern Baumbach [Tue, 7 Dec 2010 13:36:44 +0000 (14:36 +0100)]
Make sure that user exists after running add user script before adding sam account.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Dec  7 17:37:52 CET 2010 on sn-devel-104

9 years agos3-waf: add configure/declaration checks for fdatasync, readahead and splice.
Günther Deschner [Tue, 7 Dec 2010 14:33:51 +0000 (15:33 +0100)]
s3-waf: add configure/declaration checks for fdatasync, readahead and splice.

Guenther

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

9 years agos3-waf: add valgrind configure checks.
Günther Deschner [Tue, 7 Dec 2010 13:59:53 +0000 (14:59 +0100)]
s3-waf: add valgrind configure checks.

Guenther

9 years agos4:libnet_samsync_ldb.c - simplify a talloc steal call
Matthias Dieter Wallnöfer [Tue, 7 Dec 2010 13:58:52 +0000 (14:58 +0100)]
s4:libnet_samsync_ldb.c - simplify a talloc steal call

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Dec  7 16:05:30 CET 2010 on sn-devel-104

9 years agos4:libnet_samsync_ldb.c - introduce an error message on failed domain synchronisation
Matthias Dieter Wallnöfer [Tue, 7 Dec 2010 13:57:17 +0000 (14:57 +0100)]
s4:libnet_samsync_ldb.c - introduce an error message on failed domain synchronisation

9 years agos3:registry: improve debug messages about regdb refcount changes
Michael Adam [Fri, 22 Oct 2010 10:16:20 +0000 (12:16 +0200)]
s3:registry: improve debug messages about regdb refcount changes

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Dec  7 15:18:03 CET 2010 on sn-devel-104

9 years agos3-waf: build vfs_fileid module if possible.
Günther Deschner [Tue, 7 Dec 2010 11:46:50 +0000 (12:46 +0100)]
s3-waf: build vfs_fileid module if possible.

Guenther

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

9 years agos3-waf: add support for --with-dnsupdate.
Günther Deschner [Tue, 7 Dec 2010 11:20:09 +0000 (12:20 +0100)]
s3-waf: add support for --with-dnsupdate.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec  7 13:07:51 CET 2010 on sn-devel-104

9 years agos3-waf: fix the build of nsstest in the non-devel build.
Günther Deschner [Tue, 7 Dec 2010 11:04:35 +0000 (12:04 +0100)]
s3-waf: fix the build of nsstest in the non-devel build.

Guenther

9 years agos3-waf: fix library names (we installed liblibsmbclient, etc.)
Günther Deschner [Tue, 7 Dec 2010 11:04:11 +0000 (12:04 +0100)]
s3-waf: fix library names (we installed liblibsmbclient, etc.)

Guenther

9 years agos3-waf: fix pam dependencies of the RPC_SAMR server.
Günther Deschner [Tue, 7 Dec 2010 10:49:57 +0000 (11:49 +0100)]
s3-waf: fix pam dependencies of the RPC_SAMR server.

Guenther

9 years agos3: Fix bug 7844: Race in winbind
Volker Lendecke [Mon, 6 Dec 2010 20:45:21 +0000 (12:45 -0800)]
s3: Fix bug 7844: Race in winbind

If a child dies, the parent process right away closes the socket.
This is wrong, with tevent we still have events pending. This works
fine for epoll but does not for at least the FreeBSD select variant.
Tevent sticks a closed socket into the select masks. This then
returns an error EBADF. When this happens, the parent winbind dies
instead of forking a new child.

This moves the socket close from the SIGCHLD cleanup function to
the socket receiver. I could not reproduce the parent death anymore
and it did not create an obvious fd leak.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec  6 23:21:02 CET 2010 on sn-devel-104

9 years agos3: Fix bug 7842: WINBIND_LOOKUPRIDS does not return the proper domain name
Volker Lendecke [Sat, 4 Dec 2010 19:16:00 +0000 (20:16 +0100)]
s3: Fix bug 7842: WINBIND_LOOKUPRIDS does not return the proper domain name

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Dec  6 21:18:07 CET 2010 on sn-devel-104

9 years agos3: Fix bug 7841: WINBINDD_LOOKUPRIDS asks the wrong domain
Volker Lendecke [Sat, 4 Dec 2010 19:31:36 +0000 (20:31 +0100)]
s3: Fix bug 7841: WINBINDD_LOOKUPRIDS asks the wrong domain

9 years agos3: Fix bug 7843: Expand the local SAMs aliases
Jeremy Allison [Sun, 5 Dec 2010 19:40:21 +0000 (20:40 +0100)]
s3: Fix bug 7843: Expand the local SAMs aliases

9 years agos3-waf: add pam configure checks.
Günther Deschner [Wed, 1 Dec 2010 20:26:49 +0000 (21:26 +0100)]
s3-waf: add pam configure checks.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec  6 17:34:45 CET 2010 on sn-devel-104

9 years agos4-acl: Remove unused variables from aclread module.
Nadezhda Ivanova [Mon, 6 Dec 2010 15:00:56 +0000 (17:00 +0200)]
s4-acl: Remove unused variables from aclread module.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Mon Dec  6 16:48:35 CET 2010 on sn-devel-104

9 years agos4:acl_read LDB module - fix attributes list
Matthias Dieter Wallnöfer [Mon, 6 Dec 2010 13:27:20 +0000 (14:27 +0100)]
s4:acl_read LDB module - fix attributes list

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Dec  6 15:11:44 CET 2010 on sn-devel-104

9 years agos4-acl: Some optimisation of the aclread module
Nadezhda Ivanova [Mon, 6 Dec 2010 11:58:29 +0000 (13:58 +0200)]
s4-acl: Some optimisation of the aclread module

Modified the aclread module to now insert the attributes needed to perform access checks in the same request,
instead of doind a separate search per entry. Also, instanceType is now used to determine id the object has a parent
instead of parentGUID, which saves one additional search in operational.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Mon Dec  6 13:50:19 CET 2010 on sn-devel-104

9 years agos4-acl: Moved aclread module below descriptor and acl.
Nadezhda Ivanova [Mon, 6 Dec 2010 11:53:06 +0000 (13:53 +0200)]
s4-acl: Moved aclread module below descriptor and acl.

The aclread needs to be belod descriptor, as it needs to have the full nTsecurityDescriptor to make the
checks, and the descriptor module may filter out parts of it if SD_FLAGS_CONTROL is provided.

9 years agoRevert "lib/util:tests/time.c - "test_timestring" - fix it on Solaris"
Matthias Dieter Wallnöfer [Mon, 6 Dec 2010 10:28:22 +0000 (11:28 +0100)]
Revert "lib/util:tests/time.c - "test_timestring" - fix it on Solaris"

This reverts commit 654e0102ddb0acaaf45fb55c15818722235fcc9f.
This should better be handled by the replace library.

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

9 years agolib/util/fault.c - fix "pid_t" printf warning on Solaris
Matthias Dieter Wallnöfer [Mon, 6 Dec 2010 10:27:05 +0000 (11:27 +0100)]
lib/util/fault.c - fix "pid_t" printf warning on Solaris

According to "http://www.ibm.com/developerworks/linux/library/l-solar/"
it's generally a 32bit "int" - therefore this cast should fit.

9 years agos4:torture/locktest.c - fix "pid_t" printf warning on Solaris
Matthias Dieter Wallnöfer [Mon, 6 Dec 2010 10:24:55 +0000 (11:24 +0100)]
s4:torture/locktest.c - fix "pid_t" printf warning on Solaris

According to "http://www.ibm.com/developerworks/linux/library/l-solar/"
it's generally a 32bit "int" - therefore this cast should fit.

9 years agos4:torture/locktest.c - fix one indentation
Matthias Dieter Wallnöfer [Mon, 6 Dec 2010 10:24:12 +0000 (11:24 +0100)]
s4:torture/locktest.c - fix one indentation

9 years agos4:client/client.c - fix Solaris warning by a type cast
Matthias Dieter Wallnöfer [Mon, 6 Dec 2010 10:23:30 +0000 (11:23 +0100)]
s4:client/client.c - fix Solaris warning by a type cast

9 years agos4:fix some shadowed declaration warnings on Solaris by renaming the symbols
Matthias Dieter Wallnöfer [Mon, 6 Dec 2010 10:06:27 +0000 (11:06 +0100)]
s4:fix some shadowed declaration warnings on Solaris by renaming the symbols

9 years agos4-dns: return the correct TTL
Andrew Tridgell [Mon, 6 Dec 2010 06:18:30 +0000 (17:18 +1100)]
s4-dns: return the correct TTL

I've now patched the bind9 sdlz layer to cope with multiple TTLS on a
name/type pair

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Dec  6 08:12:11 CET 2010 on sn-devel-104

9 years agos4-dns: support Samba command line options to the dlz_bind.so module
Andrew Tridgell [Mon, 6 Dec 2010 05:57:12 +0000 (16:57 +1100)]
s4-dns: support Samba command line options to the dlz_bind.so module

this allows setting of Samba command line options in named.conf

9 years agos4-dns: added flags support for dlz_bind9
Andrew Tridgell [Mon, 6 Dec 2010 05:56:18 +0000 (16:56 +1100)]
s4-dns: added flags support for dlz_bind9

this will allow us to set the THREADSAFE flag if we make this
threadsafe. For now we don't set that flag, and let bind9 do the
locking for us.

9 years agos4-dns: a dlz module for bind9
Andrew Tridgell [Mon, 6 Dec 2010 03:12:07 +0000 (14:12 +1100)]
s4-dns: a dlz module for bind9

this module can be loaded into bind9 if bind9 has been built with the
--with-dlz-dlopen option. It provides access bind9 access to the
DNS records in SAMDB.

You can then start bind9 with this in named.conf:

dlz "Samba zone" {
database "dlopen /usr/lib/samba/modules/bind9/dlz_bind9.so";
};

See http://git.samba.org/tridge/bind9.git for a bind9 tree with the
dlz_dlopen driver. See also the discussion on the bind-workers mailing
list

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Dec  6 05:48:30 CET 2010 on sn-devel-104

9 years agoidtree: fix overflow for v. large ids on allocation and removal
Rusty Russell [Mon, 6 Dec 2010 03:05:50 +0000 (13:35 +1030)]
idtree: fix overflow for v. large ids on allocation and removal

Chris Cowan tracked down a SEGV in sub_alloc: idp->level can actually
be equal to 7 (MAX_LEVEL) there, as it can be in sub_remove.

(We unfairly blamed a shift of a signed var for this crash in commit
 2db1987f5a3a).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Mon Dec  6 05:02:22 CET 2010 on sn-devel-104

9 years agos4-repl_meta_data: Print function name when we can't find attribute in Schema cache
Kamen Mazdrashki [Sun, 5 Dec 2010 22:17:43 +0000 (00:17 +0200)]
s4-repl_meta_data: Print function name when we can't find attribute in Schema cache

Same error message is printed by linked_attributes.c module
and it was really hard to tell where the error occurred

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Dec  6 00:05:59 CET 2010 on sn-devel-104

9 years agos4-linked_attributes: Give more info where an error occured
Kamen Mazdrashki [Sun, 5 Dec 2010 15:19:44 +0000 (17:19 +0200)]
s4-linked_attributes: Give more info where an error occured

We have exact same error messages at different locations
and it is little bit hard to tell where the error came from
from the log.

9 years agos4-repl_meta_data: Remove duplicated check
Kamen Mazdrashki [Sun, 5 Dec 2010 15:11:28 +0000 (17:11 +0200)]
s4-repl_meta_data: Remove duplicated check

9 years agos4-schema_load: Strip a pointless check
Kamen Mazdrashki [Sat, 4 Dec 2010 21:03:21 +0000 (23:03 +0200)]
s4-schema_load: Strip a pointless check

If *schema is NULL, then dsdb_schema_from_ldb_results()
call should have failed

9 years agolib/util:tests/time.c - "test_timestring" - fix it on Solaris
Matthias Dieter Wallnöfer [Sun, 5 Dec 2010 21:20:06 +0000 (22:20 +0100)]
lib/util:tests/time.c - "test_timestring" - fix it on Solaris

Solaris returns "Thu Jan 01" and not "Thu Jan  1" - therefore proof for
both.

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

9 years agos4:cluster/cluster.h - fix another gcc 3.4 "struct" warning
Matthias Dieter Wallnöfer [Sun, 5 Dec 2010 19:31:09 +0000 (20:31 +0100)]
s4:cluster/cluster.h - fix another gcc 3.4 "struct" warning

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec  5 21:22:18 CET 2010 on sn-devel-104

9 years agos4:dsdb/samdb/ldb_modules/util.h - fix a gcc 3.4 compile warning
Matthias Dieter Wallnöfer [Sun, 5 Dec 2010 19:28:44 +0000 (20:28 +0100)]
s4:dsdb/samdb/ldb_modules/util.h - fix a gcc 3.4 compile warning

9 years agos4:lib/messaging/*.h - fix compile warnings on gcc 3.4
Matthias Dieter Wallnöfer [Sun, 5 Dec 2010 19:24:18 +0000 (20:24 +0100)]
s4:lib/messaging/*.h - fix compile warnings on gcc 3.4

For example on OpenSolaris

9 years agopytalloc: Add docstring for talloc.Object.
Jelmer Vernooij [Sun, 5 Dec 2010 16:06:58 +0000 (17:06 +0100)]
pytalloc: Add docstring for talloc.Object.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Dec  5 18:12:59 CET 2010 on sn-devel-104

9 years agos4-python: Add more module docstrings.
Jelmer Vernooij [Sun, 5 Dec 2010 16:00:45 +0000 (17:00 +0100)]
s4-python: Add more module docstrings.

9 years agos4-python: Add some more module docstrings.
Jelmer Vernooij [Sun, 5 Dec 2010 15:56:27 +0000 (16:56 +0100)]
s4-python: Add some more module docstrings.

9 years agowafsamba: Only include versioned files when building tarball from bzr.
Jelmer Vernooij [Sun, 5 Dec 2010 14:26:05 +0000 (15:26 +0100)]
wafsamba: Only include versioned files when building tarball from bzr.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Dec  5 16:13:06 CET 2010 on sn-devel-104

9 years agoUpdated french translations from Jean Delvare <jdelvare@suse.de>
Holger Hetterich [Sat, 4 Dec 2010 16:28:12 +0000 (11:28 -0500)]
Updated french translations from Jean Delvare <jdelvare@suse.de>

Autobuild-User: Jim McDonough <jmcd@samba.org>
Autobuild-Date: Sat Dec  4 18:23:54 CET 2010 on sn-devel-104

9 years agos4:dsdb/samdb/cracknames.c - fix another memory leak
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 15:39:01 +0000 (16:39 +0100)]
s4:dsdb/samdb/cracknames.c - fix another memory leak

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Dec  4 17:26:39 CET 2010 on sn-devel-104

9 years agos4:kdc/kpasswdd.c - fix memory leaks
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 15:38:45 +0000 (16:38 +0100)]
s4:kdc/kpasswdd.c - fix memory leaks

9 years agos4:auth/gensec/gensec_krb5.c - fix/reorder memory free operations
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 15:38:02 +0000 (16:38 +0100)]
s4:auth/gensec/gensec_krb5.c - fix/reorder memory free operations

To prevent memory leaks

9 years agos4:auth/gensec/gensec_krb5.c - remove a pointless "nt_status" test
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 15:36:27 +0000 (16:36 +0100)]
s4:auth/gensec/gensec_krb5.c - remove a pointless "nt_status" test

There is no operation which sets the "nt_status" before the "if".

9 years agos4:auth/kerberos/kerberos_pac.c - fix another memory leak regarding the KRB principal
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 13:24:43 +0000 (14:24 +0100)]
s4:auth/kerberos/kerberos_pac.c - fix another memory leak regarding the KRB principal

In addition fix a counter type

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Dec  4 15:14:46 CET 2010 on sn-devel-104

9 years agos4:dsdb/common/util_samr.c and auth/sam.c - fix error message
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 11:31:34 +0000 (12:31 +0100)]
s4:dsdb/common/util_samr.c and auth/sam.c - fix error message

9 years agolib/torture: add torture_assert_u64_equal_goto()
Stefan Metzmacher [Mon, 22 Nov 2010 11:38:41 +0000 (12:38 +0100)]
lib/torture: add torture_assert_u64_equal_goto()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Dec  4 12:55:44 CET 2010 on sn-devel-104

9 years agotls_tstream: use a dynamic buffer for the push case
Stefan Metzmacher [Mon, 29 Nov 2010 11:27:11 +0000 (12:27 +0100)]
tls_tstream: use a dynamic buffer for the push case

Some versions of gnutls doesn't handle EAGAIN correctly,
so we better allow sending buffers without a low size limitation,
the limit is now UINT16_MAX (0xFFFF) and we allocate the buffer
with talloc each time.

metze

9 years agotls_tstream: increase the buffer size
Matthieu Patou [Thu, 18 Nov 2010 07:35:06 +0000 (10:35 +0300)]
tls_tstream: increase the buffer size

The problem is that with certain version of gnutls are not working
properly if the server is sending in different packet things like (at
least)

* Certificate
* Server Key exchange
* Client certificate

Somehow it really expect this to be done in one packet as some
structures used _gnutls_send_handshake are reinitialized at every
packet exchange and intermediate steps didn't expect it

Signed-off-by: Stefan Metzmacher <metze@samba.org>
9 years agos4:samr RPC server - dcesrv_samr_GetBootKeyInformation - return NOT_SUPPORTED
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 09:34:05 +0000 (10:34 +0100)]
s4:samr RPC server - dcesrv_samr_GetBootKeyInformation - return NOT_SUPPORTED

Windows Server 2008 does this

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Dec  4 12:11:47 CET 2010 on sn-devel-104

9 years agos4:dsdb/common/util_samr.c - "dsdb_enum_group_mem" - fix it up regarding non SAM...
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 09:24:30 +0000 (10:24 +0100)]
s4:dsdb/common/util_samr.c - "dsdb_enum_group_mem" - fix it up regarding non SAM members

For example contacts.

9 years agos4:torture/rpc/samr.c - fix output message
Matthias Dieter Wallnöfer [Sat, 4 Dec 2010 09:07:25 +0000 (10:07 +0100)]
s4:torture/rpc/samr.c - fix output message

9 years agoFix bug #3185 - testparm exits 0 if it can read the config file regardless of errors
Holger Hetterich [Sat, 4 Dec 2010 00:43:47 +0000 (16:43 -0800)]
Fix bug #3185 - testparm exits 0 if it can read the config file regardless of errors

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec  4 02:30:00 CET 2010 on sn-devel-104

9 years agos4/kdc - fix a warning regarding a changed parameter type (kvno)
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 22:06:53 +0000 (23:06 +0100)]
s4/kdc - fix a warning regarding a changed parameter type (kvno)

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Dec  3 23:56:15 CET 2010 on sn-devel-104

9 years agos3/s4:lsa.idl - QueryDomainInformationPolicy - the "unknown6" field is called "reserved"
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 21:56:19 +0000 (22:56 +0100)]
s3/s4:lsa.idl - QueryDomainInformationPolicy - the "unknown6" field is called "reserved"

MS-LSAD 3.1.1.1 - http://msdn.microsoft.com/en-us/library/cc234319(v=PROT.13).aspx

9 years agos4:lsa RPC server - always initialise "info" structures
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 21:47:21 +0000 (22:47 +0100)]
s4:lsa RPC server - always initialise "info" structures

This should help to fix bug #7769

9 years agos4:lsa RPC server - "dcesrv_lsa_CreateSecret" - a bit of rework
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 19:38:03 +0000 (20:38 +0100)]
s4:lsa RPC server - "dcesrv_lsa_CreateSecret" - a bit of rework

- Added 'out of memory' checks
- Added checks regarding return values
- Switch to "ldb_msg_add_string" where possible

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Dec  3 21:41:39 CET 2010 on sn-devel-104

9 years agos4:libnet/libnet_samsync_ldb,c - move away from "samdb_msg_add_string" when possible
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 19:20:17 +0000 (20:20 +0100)]
s4:libnet/libnet_samsync_ldb,c - move away from "samdb_msg_add_string" when possible

Also here we can move to "ldb_msg_add_string" without any impact!

9 years agos4:libnet_JoinADSDomain - move away from "samdb_msg_add_string"
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 19:09:31 +0000 (20:09 +0100)]
s4:libnet_JoinADSDomain - move away from "samdb_msg_add_string"

These calls can be substituted by "ldb_msg_add_string" without any problems -
only the allocation contexts of the SPNs and the DNS hostnames have to adapted.

9 years agos3-waf: add krb5 configure check for WRFILE_KEYTAB.
Günther Deschner [Wed, 1 Dec 2010 22:15:34 +0000 (23:15 +0100)]
s3-waf: add krb5 configure check for WRFILE_KEYTAB.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Dec  3 13:54:25 CET 2010 on sn-devel-104

9 years agos3-waf: add krb5 configure checks for enctype 23.
Günther Deschner [Wed, 1 Dec 2010 22:07:41 +0000 (23:07 +0100)]
s3-waf: add krb5 configure checks for enctype 23.

Guenther

9 years agos3-waf: more krb5 configure checks.
Günther Deschner [Wed, 1 Dec 2010 20:26:29 +0000 (21:26 +0100)]
s3-waf: more krb5 configure checks.

Guenther

9 years agotalloc: add ABI/talloc-2.0.4.sigs
Stefan Metzmacher [Fri, 3 Dec 2010 09:40:33 +0000 (10:40 +0100)]
talloc: add ABI/talloc-2.0.4.sigs

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec  3 11:35:45 CET 2010 on sn-devel-104

9 years agos4:auth/sam.c - when printing out a string buffer we don't strictly need the width
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 08:33:57 +0000 (09:33 +0100)]
s4:auth/sam.c - when printing out a string buffer we don't strictly need the width

The precision (maximum numbers of characters) should be enough.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Dec  3 10:26:39 CET 2010 on sn-devel-104

9 years agos4:auth/sam.c - the check for the SAMDB needs to be on the top of the call
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 08:19:42 +0000 (09:19 +0100)]
s4:auth/sam.c - the check for the SAMDB needs to be on the top of the call

Otherwise it's really useless.

9 years agos4:auth/sam.c - fix the free of memory contexts
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 08:18:23 +0000 (09:18 +0100)]
s4:auth/sam.c - fix the free of memory contexts

"tmp_ctx" needs always to be freed ("res" is freed implicitly)

9 years agos4:auth/sam.c - specify the SID ignore case better
Matthias Dieter Wallnöfer [Fri, 3 Dec 2010 08:17:01 +0000 (09:17 +0100)]
s4:auth/sam.c - specify the SID ignore case better

As per suggestion by metze.

9 years agowintest: autodetect if named supports tkey-gssapi-keytab
Andrew Tridgell [Fri, 3 Dec 2010 07:02:22 +0000 (18:02 +1100)]
wintest: autodetect if named supports tkey-gssapi-keytab

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Dec  3 08:48:52 CET 2010 on sn-devel-104

9 years agowintest: put most of the main program login in wintest.py
Andrew Tridgell [Fri, 3 Dec 2010 04:31:39 +0000 (15:31 +1100)]
wintest: put most of the main program login in wintest.py

this makes it easier to create new tests

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Dec  3 06:17:44 CET 2010 on sn-devel-104

9 years agowafsamba: Override GIT_DIR without using putenv.
Jelmer Vernooij [Fri, 3 Dec 2010 02:10:27 +0000 (03:10 +0100)]
wafsamba: Override GIT_DIR without using putenv.

putenv has sideffects on later code. This overrides GIT_DIR for just this call.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Dec  3 04:24:53 CET 2010 on sn-devel-104

9 years agotalloc: Bump version number after pytalloc changes.
Jelmer Vernooij [Fri, 3 Dec 2010 02:07:03 +0000 (03:07 +0100)]
talloc: Bump version number after pytalloc changes.

9 years agoReplace lseek()/write()/lseek() triple with pwrite call. We already emulate this
Jeremy Allison [Fri, 3 Dec 2010 01:52:11 +0000 (17:52 -0800)]
Replace lseek()/write()/lseek() triple with pwrite call. We already emulate this
inside pwrite under the covers.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec  3 03:39:42 CET 2010 on sn-devel-104

9 years agoposix_fallocate() returns an errno, not -1 on error.
Jeremy Allison [Fri, 3 Dec 2010 01:46:30 +0000 (17:46 -0800)]
posix_fallocate() returns an errno, not -1 on error.

9 years agoMerge the two conflicting allocation codes into one function, vfs_slow_fallocate()
Jeremy Allison [Fri, 3 Dec 2010 01:26:00 +0000 (17:26 -0800)]
Merge the two conflicting allocation codes into one function, vfs_slow_fallocate()
and use that from both the truncate and fill_sparse functions.

Jeremy.

9 years agoOops. Missed adding vfswrap_posix_fallocate to vfs_default_fns table.
Jeremy Allison [Fri, 3 Dec 2010 00:40:00 +0000 (16:40 -0800)]
Oops. Missed adding vfswrap_posix_fallocate to vfs_default_fns table.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec  3 02:26:23 CET 2010 on sn-devel-104

9 years agoMove posix_fallocate into the VFS where it belongs.
Jeremy Allison [Fri, 3 Dec 2010 00:25:59 +0000 (16:25 -0800)]
Move posix_fallocate into the VFS where it belongs.

Jeremy.

9 years agoFix bug #7835 - vfs_fill_sparse() doesn't use posix_fallocate when strict allocate...
Jeremy Allison [Thu, 2 Dec 2010 23:38:36 +0000 (15:38 -0800)]
Fix bug #7835 - vfs_fill_sparse() doesn't use posix_fallocate when strict allocate is on

Tries posix_fallocate() and then falls back to old code.

Jeremy.

9 years agos4-dsdb/syntax: Map remote ATTIDs for Class OID syntax
Kamen Mazdrashki [Thu, 2 Dec 2010 00:57:06 +0000 (02:57 +0200)]
s4-dsdb/syntax: Map remote ATTIDs for Class OID syntax

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Thu Dec  2 18:47:59 CET 2010 on sn-devel-104

9 years agos4-test/repl_schema: Test class inheritance through subClassOf
Kamen Mazdrashki [Wed, 1 Dec 2010 23:01:20 +0000 (01:01 +0200)]
s4-test/repl_schema: Test class inheritance through subClassOf

9 years agos4-dsdb_syntax: Be a little bit more chatty when we can't an ATTID in our cache
Kamen Mazdrashki [Wed, 1 Dec 2010 22:32:10 +0000 (00:32 +0200)]
s4-dsdb_syntax: Be a little bit more chatty when we can't an ATTID in our cache

9 years agos4-test/fsmo: Remove unused imports
Kamen Mazdrashki [Wed, 1 Dec 2010 22:30:46 +0000 (00:30 +0200)]
s4-test/fsmo: Remove unused imports

9 years agos4-test/delete_object: Remove unused imports
Kamen Mazdrashki [Wed, 1 Dec 2010 19:13:54 +0000 (21:13 +0200)]
s4-test/delete_object: Remove unused imports

9 years agos4-test/repl_schema: Make ERR_NO_SUCH_OBJECT visible to us
Kamen Mazdrashki [Wed, 1 Dec 2010 19:01:47 +0000 (21:01 +0200)]
s4-test/repl_schema: Make ERR_NO_SUCH_OBJECT visible to us

We've lost this import somehow, now it is back in :)

9 years agos4-test/repl_schema: Test classSchema and attributeSchema replication in separate...
Kamen Mazdrashki [Wed, 1 Dec 2010 18:22:06 +0000 (20:22 +0200)]
s4-test/repl_schema: Test classSchema and attributeSchema replication in separate tests

9 years agos4-dsdb/descriptor: comment typo
Kamen Mazdrashki [Wed, 1 Dec 2010 18:16:00 +0000 (20:16 +0200)]
s4-dsdb/descriptor: comment typo

9 years agos4:auth/sam.c-"authsam_expand_nested_groups" - don't fail if we've memberships on...
Matthias Dieter Wallnöfer [Thu, 2 Dec 2010 11:23:53 +0000 (12:23 +0100)]
s4:auth/sam.c-"authsam_expand_nested_groups" - don't fail if we've memberships on non-SAM objects

This can be expected (think at a membership of a "groupOfNames" group) and we
shouldn't blame about it.

This fixes a bug reported on the technical mailing list.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Dec  2 17:17:56 CET 2010 on sn-devel-104

9 years agos4:dsdb/samdb/cracknames.c - fix various KRB5 memory leaks
Matthias Dieter Wallnöfer [Thu, 2 Dec 2010 10:49:56 +0000 (11:49 +0100)]
s4:dsdb/samdb/cracknames.c - fix various KRB5 memory leaks

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Dec  2 12:35:03 CET 2010 on sn-devel-104

9 years agos4:password_hash LDB module - allow empty ("") passwords
Matthias Dieter Wallnöfer [Thu, 2 Dec 2010 08:55:56 +0000 (09:55 +0100)]
s4:password_hash LDB module - allow empty ("") passwords

This seems to have been broken some time ago - till someone on the
mailing list noticed it.

I've also added a testsuite (and some additional SamDB python helpers) which
should prove this.