samba.git
12 years agosmbXcli: rework smb2cli_req to smbXcli_conn/smbXcli_req
Stefan Metzmacher [Thu, 15 Sep 2011 10:23:05 +0000 (12:23 +0200)]
smbXcli: rework smb2cli_req to smbXcli_conn/smbXcli_req

metze

12 years agolibcli/smb: copy smb2cli_req_* code to smbXcli_base.c
Stefan Metzmacher [Thu, 15 Sep 2011 09:47:11 +0000 (11:47 +0200)]
libcli/smb: copy smb2cli_req_* code to smbXcli_base.c

metze

12 years agosmbXcli: rework smbXcli_base.c to use smbXcli_conn/smbXcli_req
Stefan Metzmacher [Thu, 11 Aug 2011 11:29:59 +0000 (13:29 +0200)]
smbXcli: rework smbXcli_base.c to use smbXcli_conn/smbXcli_req

This splits the low level smb code from 'struct cli_state'
and makes it much more generic and useful for testing.

metze

12 years agosmbXcli: cp source3/libsmb/async_smb.c libcli/smb/smbXcli_base.c
Stefan Metzmacher [Mon, 18 Jul 2011 12:35:03 +0000 (14:35 +0200)]
smbXcli: cp source3/libsmb/async_smb.c libcli/smb/smbXcli_base.c

metze

12 years agosecurity: add local authority well-known SIDs
Christian Ambach [Thu, 1 Sep 2011 14:09:01 +0000 (16:09 +0200)]
security: add local authority well-known SIDs

add the S-1-2 well-known SID family

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Thu Nov 24 19:01:08 CET 2011 on sn-devel-104

12 years agos3:smb2 report access_based_dir_enum in tcon reply
Christian Ambach [Thu, 24 Nov 2011 13:42:21 +0000 (14:42 +0100)]
s3:smb2 report access_based_dir_enum in tcon reply

let the client know when hide unreadable or hide unwriteable files
is set for a share

12 years agos3:smb2 do not set allow_namespace_caching flag for a share
Christian Ambach [Thu, 24 Nov 2011 12:49:17 +0000 (13:49 +0100)]
s3:smb2 do not set allow_namespace_caching flag for a share

this matches Win7/2002R2 behavior and clients also must ignore
this flag when set (MS-SMB 2.2.10), so we should not set it at all

12 years agos3:vfs:gpfs remove non-working code
Christian Ambach [Thu, 24 Nov 2011 15:57:58 +0000 (16:57 +0100)]
s3:vfs:gpfs remove non-working code

when development of vfs_gpfs was started a long time ago it was
considered a good idea to have it compileable even if GPFS is not
around and then the module would complain in the logs that libgpfs
is not there

Nowadays this does not work any more as the code contains GPFS
specific types that need the GPFS header files.

Instead of making it compile again by adding GPFS typedefs, this
removes the whole approach. Other VFS modules also do not even
compile when necessary headers are not around, so do the same for
the GPFS module code.

12 years agos3:vfs:gpfs fix some compiler warnings
Christian Ambach [Thu, 24 Nov 2011 14:58:36 +0000 (15:58 +0100)]
s3:vfs:gpfs fix some compiler warnings

12 years agos3:vfs:gpfs convert syncio parameter
Christian Ambach [Thu, 24 Nov 2011 12:39:01 +0000 (13:39 +0100)]
s3:vfs:gpfs convert syncio parameter

convert syncio parameter to be stored in the VFS handle data
this removes the need to go through lp_parm_bool() on each open

12 years agos4 dns: Test QCLASS_NONE query
Kai Blin [Thu, 24 Nov 2011 11:14:55 +0000 (12:14 +0100)]
s4 dns: Test QCLASS_NONE query

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Nov 24 14:10:45 CET 2011 on sn-devel-104

12 years agos4 dns: Test QTYPE_ALL query
Kai Blin [Thu, 24 Nov 2011 11:11:26 +0000 (12:11 +0100)]
s4 dns: Test QTYPE_ALL query

12 years agos4 dns: Check more of the returned values for the A query
Kai Blin [Thu, 24 Nov 2011 11:10:40 +0000 (12:10 +0100)]
s4 dns: Check more of the returned values for the A query

12 years agos4 dns: Move dns_transaction_udp to other helper functions
Kai Blin [Thu, 24 Nov 2011 11:09:58 +0000 (12:09 +0100)]
s4 dns: Move dns_transaction_udp to other helper functions

12 years agopidl:Samba4/NDR/Parser: don't generate code for [ignore] pointers
Stefan Metzmacher [Wed, 23 Nov 2011 14:23:48 +0000 (15:23 +0100)]
pidl:Samba4/NDR/Parser: don't generate code for [ignore] pointers

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Nov 24 12:31:04 CET 2011 on sn-devel-104

12 years agoRemove unused variable.
Jeremy Allison [Wed, 23 Nov 2011 21:42:09 +0000 (13:42 -0800)]
Remove unused variable.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Nov 24 00:17:41 CET 2011 on sn-devel-104

12 years agoFix uninitialized variable frees on error paths.
Jeremy Allison [Wed, 23 Nov 2011 19:59:53 +0000 (11:59 -0800)]
Fix uninitialized variable frees on error paths.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 23 22:38:13 CET 2011 on sn-devel-104

12 years agos3: Fix a valgrind error
Volker Lendecke [Wed, 23 Nov 2011 16:43:35 +0000 (17:43 +0100)]
s3: Fix a valgrind error

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Nov 23 19:17:20 CET 2011 on sn-devel-104

12 years agos3: Move server_info_struct to nmbd
Volker Lendecke [Wed, 23 Nov 2011 15:14:10 +0000 (16:14 +0100)]
s3: Move server_info_struct to nmbd

That's the only place where it's used.

12 years agos3: Replace delete_token_list by an array
Volker Lendecke [Mon, 21 Nov 2011 16:12:00 +0000 (17:12 +0100)]
s3: Replace delete_token_list by an array

This will make it easier to convert locking.tdb to IDL, and I don't think there
will be enough entries to justify a linked list over an array.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Nov 23 09:02:12 CET 2011 on sn-devel-104

12 years agoEnsure we don't free uninitialized variables.
Jeremy Allison [Tue, 22 Nov 2011 23:53:26 +0000 (15:53 -0800)]
Ensure we don't free uninitialized variables.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 23 02:27:53 CET 2011 on sn-devel-104

12 years agoRemove the setting of the inherited ACL on new files/directories. This is
Jeremy Allison [Tue, 22 Nov 2011 20:33:54 +0000 (12:33 -0800)]
Remove the setting of the inherited ACL on new files/directories. This is
now done correctly in the main codepath. The vfs_acl_XXXX modules are
now thin shims that simply store/retrieve ACLs as they should be.

12 years agoMove setting the inherited ACL into the main open code path. Next will
Jeremy Allison [Tue, 22 Nov 2011 20:33:27 +0000 (12:33 -0800)]
Move setting the inherited ACL into the main open code path. Next will
remove it from the ACL modules.

12 years agoMove the "set SD" code into provided SD and "inherit acls" branches.
Jeremy Allison [Tue, 22 Nov 2011 19:53:51 +0000 (11:53 -0800)]
Move the "set SD" code into provided SD and "inherit acls" branches.

12 years agoOnly add the SD if it's not a new stream file.
Jeremy Allison [Tue, 22 Nov 2011 18:37:56 +0000 (10:37 -0800)]
Only add the SD if it's not a new stream file.

12 years agoMove the add security descriptor code to *after* all the other meta-data is
Jeremy Allison [Tue, 22 Nov 2011 18:28:52 +0000 (10:28 -0800)]
Move the add security descriptor code to *after* all the other meta-data is
updated. We may be adding an SD that restricts our own access.

12 years agos3: Fix wb_next_pwent_fill_done
Volker Lendecke [Tue, 22 Nov 2011 16:37:07 +0000 (17:37 +0100)]
s3: Fix wb_next_pwent_fill_done

Within a callback routine it is not possible to call tevent_req_post

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Nov 22 19:17:30 CET 2011 on sn-devel-104

12 years agos3 libaddns: Prevent a crash when dns_create_update fails
Kai Blin [Tue, 22 Nov 2011 10:26:04 +0000 (11:26 +0100)]
s3 libaddns: Prevent a crash when dns_create_update fails

When dns_create_update() fails, it does not initialize *req, and then TALLOC_FREE(req) in the
error handling crashes if we're lucky.
Instead of going into the generic error handling, treat the failure in dns_create_update() like
dns_create_update_request() and just pass on the error.

Thanks to Harry Mason for reporting this issue.

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Tue Nov 22 14:29:07 CET 2011 on sn-devel-104

12 years agos4-dns: added --no-credentials option to samba_dnsupdate
Andrew Tridgell [Tue, 22 Nov 2011 03:58:29 +0000 (14:58 +1100)]
s4-dns: added --no-credentials option to samba_dnsupdate

this is for a user who is doing DNS updates via key files rather than
GSSAPI. This allows the update to go through without a kerberos error

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Nov 22 06:34:59 CET 2011 on sn-devel-104

12 years agoFix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable...
Jeremy Allison [Mon, 21 Nov 2011 21:06:00 +0000 (13:06 -0800)]
Fix a bunch of "warning: variable ‘XXXX’ set but not used [-Wunused-but-set-variable]" warnings from the new gcc.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104

12 years agos3:winbindd_cm: close sockfd on error in cm_prepare_connection()
Stefan Metzmacher [Mon, 21 Nov 2011 17:03:44 +0000 (18:03 +0100)]
s3:winbindd_cm: close sockfd on error in cm_prepare_connection()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Nov 21 19:58:58 CET 2011 on sn-devel-104

12 years agos3:libsmb: close fd on error in cli_connect_nb()
Stefan Metzmacher [Mon, 21 Nov 2011 17:03:07 +0000 (18:03 +0100)]
s3:libsmb: close fd on error in cli_connect_nb()

metze

12 years agolibrpc: install drsuapi and drsblobs headers.
Günther Deschner [Mon, 21 Nov 2011 12:13:11 +0000 (13:13 +0100)]
librpc: install drsuapi and drsblobs headers.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Nov 21 17:24:28 CET 2011 on sn-devel-104

12 years agos3-waf: remove version from libpdb.so for now.
Günther Deschner [Mon, 21 Nov 2011 11:55:04 +0000 (12:55 +0100)]
s3-waf: remove version from libpdb.so for now.

Guenther

12 years agos4-smbtorture: add ndr test for nbt_netlogon_packet to avoid future regressions.
Günther Deschner [Fri, 18 Nov 2011 14:38:02 +0000 (15:38 +0100)]
s4-smbtorture: add ndr test for nbt_netlogon_packet to avoid future regressions.

Guys, we really should make sure to always add ndr tests like this whenever we
change some sensitive libndr or handmarshalling bits.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Sun Nov 20 23:10:39 CET 2011 on sn-devel-104

12 years agos3:smb2_negprot: add support for SMB2_22
Stefan Metzmacher [Sat, 19 Nov 2011 13:02:22 +0000 (14:02 +0100)]
s3:smb2_negprot: add support for SMB2_22

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Nov 20 16:46:45 CET 2011 on sn-devel-104

12 years agolib/param: add "SMB2_22" to enum_protocol
Stefan Metzmacher [Sat, 19 Nov 2011 13:01:25 +0000 (14:01 +0100)]
lib/param: add "SMB2_22" to enum_protocol

metze

12 years agos4-dsdb: Modify the repl_meta_data behavior to allow Metadata change on attribute...
Matthieu Patou [Fri, 18 Nov 2011 23:37:27 +0000 (00:37 +0100)]
s4-dsdb: Modify the repl_meta_data behavior to allow Metadata change on attribute interSiteTopologyGenerator even if the value didn't change

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Nov 19 16:47:53 CET 2011 on sn-devel-104

12 years agosocket_wrapper/py_socket_wrapper.c - include Python 2.4 compatiblity code
Matthias Dieter Wallnöfer [Sat, 19 Nov 2011 11:59:01 +0000 (12:59 +0100)]
socket_wrapper/py_socket_wrapper.c - include Python 2.4 compatiblity code

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 19 14:53:43 CET 2011 on sn-devel-104

12 years agoRemove rawmemchr calls - found by Ira Cooper. These are glibc-specific calls, makes...
Jeremy Allison [Fri, 18 Nov 2011 21:13:02 +0000 (13:13 -0800)]
Remove rawmemchr calls - found by Ira Cooper. These are glibc-specific calls, makes us completely non-portable.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Nov 18 23:50:50 CET 2011 on sn-devel-104

12 years agos3/packaging: Fix rpm build issues on RHEL4.
Karolin Seeger [Thu, 17 Nov 2011 20:23:09 +0000 (21:23 +0100)]
s3/packaging: Fix rpm build issues on RHEL4.

Second part of a fix for bug #7705 (RHEL samba.spec broken - and fix).
Based on patches of Jason Haar and Daniël van Eeden. Thanks a lot!

Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Fri Nov 18 22:13:06 CET 2011 on sn-devel-104

12 years agos3:libsmb: verify num_setup for SMBnttrans in cli_pull_trans()
Stefan Metzmacher [Fri, 18 Nov 2011 12:20:43 +0000 (13:20 +0100)]
s3:libsmb: verify num_setup for SMBnttrans in cli_pull_trans()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Nov 18 15:13:52 CET 2011 on sn-devel-104

12 years agos3:libsmb: fix compiler warning in cli_pull_trans()
Stefan Metzmacher [Fri, 18 Nov 2011 12:19:19 +0000 (13:19 +0100)]
s3:libsmb: fix compiler warning in cli_pull_trans()

metze

12 years agos3:libsmb: only align unicode pipe_name (bug #8586)
Stefan Metzmacher [Fri, 18 Nov 2011 07:40:18 +0000 (08:40 +0100)]
s3:libsmb: only align unicode pipe_name (bug #8586)

metze

12 years agos3: Fix bug 8371
Volker Lendecke [Thu, 17 Nov 2011 21:36:22 +0000 (22:36 +0100)]
s3: Fix bug 8371

ndr_set_flag or's in the given flag (ALIGN4). At this point, ndr->flags
contains NOALIGN, which will persist. In ndr_push_DATA_BLOB NOALIGN overrides
everything else, so that the ALIGN4 is not respected.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Nov 18 09:33:37 CET 2011 on sn-devel-104

12 years agos3-py-passdb: Fix handling of uninitialized gid values
Amitay Isaacs [Fri, 18 Nov 2011 03:35:56 +0000 (14:35 +1100)]
s3-py-passdb: Fix handling of uninitialized gid values

Uninitialized gid value is set to -1 and return as such from python
passdb api.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Nov 18 06:18:33 CET 2011 on sn-devel-104

12 years agodsdb: Fix the password expiry calculation
Amitay Isaacs [Thu, 17 Nov 2011 23:34:44 +0000 (10:34 +1100)]
dsdb: Fix the password expiry calculation

As per Section 3.1.1.4.5.26 [MS-ADTS.pdf], password is expired if

  pwdLastSet = null, or
  pwdLastSet = 0, or
  (maxPwdAge != 0x8000000000000000 and (ST - pwdLastSet) > maxPwdAge)

12 years agos3-passdb_test: Policy values are converted to signed integer
Amitay Isaacs [Thu, 17 Nov 2011 22:55:38 +0000 (09:55 +1100)]
s3-passdb_test: Policy values are converted to signed integer

No need to check value for 0xffffffff (4294967295).

12 years agos4-s3-upgrade: Add --verbose option to print extra details
Amitay Isaacs [Thu, 17 Nov 2011 07:51:14 +0000 (18:51 +1100)]
s4-s3-upgrade: Add --verbose option to print extra details

12 years agos4-auth log details about any token we fail to convert to a unix token
Andrew Bartlett [Thu, 17 Nov 2011 07:24:24 +0000 (18:24 +1100)]
s4-auth log details about any token we fail to convert to a unix token

Now that entries are being added into the idmap DB from Samba3, and
may be UID or GID but not BOTH, failures are more likely.

Andrew Bartlett

12 years agos4-s3-upgrade: Fix idmap types ID_TYPE_UID/ID_TYPE_GID instead of UID/GID
Amitay Isaacs [Thu, 17 Nov 2011 05:08:16 +0000 (16:08 +1100)]
s4-s3-upgrade: Fix idmap types ID_TYPE_UID/ID_TYPE_GID instead of UID/GID

12 years agosamba-tool: Fix the domain account policy max_pwd_age calculation
Amitay Isaacs [Wed, 16 Nov 2011 22:34:57 +0000 (09:34 +1100)]
samba-tool: Fix the domain account policy max_pwd_age calculation

Windows sets maxPwdAge to -0x8000000000000000 when maximum password
age is set to 0 days.

12 years agos4-s3-upgrade: Fix the minimum and maximum password age calculation
Amitay Isaacs [Wed, 16 Nov 2011 01:59:52 +0000 (12:59 +1100)]
s4-s3-upgrade: Fix the minimum and maximum password age calculation

Windows sets maxPwdAge to -0x8000000000000000 when maximum password age
is set to 0 days.

12 years agos4-s3-upgrade now look for -1 as the special 'not set' value
Andrew Bartlett [Wed, 16 Nov 2011 05:51:06 +0000 (16:51 +1100)]
s4-s3-upgrade now look for -1 as the special 'not set' value

this is possible because we know the py_passdb will always set -1
here, not passing though 0xFFFFFFFF.

Andrew Bartlett

12 years agos3/packaging: Fix rpm build issues on RHEL.
Karolin Seeger [Thu, 17 Nov 2011 20:02:30 +0000 (21:02 +0100)]
s3/packaging: Fix rpm build issues on RHEL.

Fix bug #7705 (RHEL samba.spec broken - and fix).
Based on patches of Jason Haar and Daniël van Eeden. Thanks a lot!

Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Thu Nov 17 23:05:28 CET 2011 on sn-devel-104

12 years agos4 dns: Reduce test output noise by upping log level for dns_name_packet logging
Kai Blin [Tue, 15 Nov 2011 07:38:27 +0000 (08:38 +0100)]
s4 dns: Reduce test output noise by upping log level for dns_name_packet logging

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Nov 17 20:10:05 CET 2011 on sn-devel-104

12 years agos4 dns: Add a first test case
Kai Blin [Thu, 10 Nov 2011 23:32:09 +0000 (00:32 +0100)]
s4 dns: Add a first test case

12 years agos4 dns: Turn on internal DNS server during testing
Kai Blin [Mon, 7 Nov 2011 23:34:01 +0000 (00:34 +0100)]
s4 dns: Turn on internal DNS server during testing

12 years agosocket_wrapper: Added python interface to socket_wrapper
Amitay Isaacs [Fri, 14 Oct 2011 06:24:16 +0000 (17:24 +1100)]
socket_wrapper: Added python interface to socket_wrapper

The socket_wrapper does not support setting blocking flag or
timeouts on the sockets.

To use socket module in python, use

from samba import socket

Signed-off-by: Kai Blin <kai@samba.org>
12 years agosamba.tests.dsdb: Import TestCase from samba.tests.
Jelmer Vernooij [Thu, 17 Nov 2011 01:31:13 +0000 (02:31 +0100)]
samba.tests.dsdb: Import TestCase from samba.tests.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Nov 17 08:36:17 CET 2011 on sn-devel-104

12 years agosamba.tests: Make sure testtools is available before importing it.
Jelmer Vernooij [Thu, 17 Nov 2011 01:30:38 +0000 (02:30 +0100)]
samba.tests: Make sure testtools is available before importing it.

12 years agoImprove configure.in so it can be used outside the Samba source tree.
Richard Sharpe [Mon, 14 Nov 2011 15:47:38 +0000 (07:47 -0800)]
Improve configure.in so it can be used outside the Samba source tree.

Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Thu Nov 17 07:00:38 CET 2011 on sn-devel-104

12 years agoldb: Add handy macros for reporting error inside ldb module
Amitay Isaacs [Tue, 15 Nov 2011 01:34:40 +0000 (12:34 +1100)]
ldb: Add handy macros for reporting error inside ldb module

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu Nov 17 05:24:46 CET 2011 on sn-devel-104

12 years agos4-dsdb: Remove unsed variable
Amitay Isaacs [Mon, 14 Nov 2011 06:34:17 +0000 (17:34 +1100)]
s4-dsdb: Remove unsed variable

12 years agos3-smbldap: move ldap_open_with_timeout out of smb_ldap.h to ads where it lives.
Günther Deschner [Wed, 16 Nov 2011 23:55:04 +0000 (00:55 +0100)]
s3-smbldap: move ldap_open_with_timeout out of smb_ldap.h to ads where it lives.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Nov 17 03:47:53 CET 2011 on sn-devel-104

12 years agos3-smbldap: remove duplicate LDAP_OPT_SUCCESS define.
Günther Deschner [Wed, 16 Nov 2011 23:44:41 +0000 (00:44 +0100)]
s3-smbldap: remove duplicate LDAP_OPT_SUCCESS define.

Guenther

12 years agos3-winbindd: no need to globally include ldap headers in winbindd.
Günther Deschner [Wed, 16 Nov 2011 21:53:24 +0000 (22:53 +0100)]
s3-winbindd: no need to globally include ldap headers in winbindd.

Guenther

12 years agos3-smbldap: include talloc.h and tevent.h in smbldap.h
Günther Deschner [Wed, 16 Nov 2011 21:50:18 +0000 (22:50 +0100)]
s3-smbldap: include talloc.h and tevent.h in smbldap.h

Guenther

12 years agos3-param: loadparm has no dependency to smbldap.
Günther Deschner [Wed, 16 Nov 2011 18:31:34 +0000 (19:31 +0100)]
s3-param: loadparm has no dependency to smbldap.

Guenther

12 years agos3-smbldap: improve smbldap.h readability and rearrange some defines.
Günther Deschner [Wed, 16 Nov 2011 17:59:26 +0000 (18:59 +0100)]
s3-smbldap: improve smbldap.h readability and rearrange some defines.

Guenther

12 years agos3-smbldap: remove duplicate prototype.
Günther Deschner [Wed, 16 Nov 2011 17:54:02 +0000 (18:54 +0100)]
s3-smbldap: remove duplicate prototype.

Guenther

12 years agos3-nmbd Remove AD netlogon response from s3 nmbd server
Andrew Bartlett [Thu, 10 Nov 2011 06:41:28 +0000 (17:41 +1100)]
s3-nmbd Remove AD netlogon response from s3 nmbd server

I do not want users with misconfigurations to have nmbd respond
with this partially correct packet.  For example, it hardcodes
the site as Default-First-Site-Name.

If nmbd wishes to return this information, it would need to query
the AD database using the same APIs that the source4/ nbt server
does.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Nov 17 02:10:54 CET 2011 on sn-devel-104

12 years agos4-s3-upgrade Test getdomainsid as well
Andrew Bartlett [Thu, 10 Nov 2011 09:16:23 +0000 (20:16 +1100)]
s4-s3-upgrade Test getdomainsid as well

12 years agos3-net Do not look for a local SID when we are a DC
Andrew Bartlett [Thu, 10 Nov 2011 08:57:05 +0000 (19:57 +1100)]
s3-net Do not look for a local SID when we are a DC

If we are actually a DC, then the only SID we have is the domain SID,
and looking for it under the local name fails if we are a Samba4 AD DC.

Andrew Bartlett

12 years agolib/param simplify server role values specified in smb.conf
Andrew Bartlett [Thu, 10 Nov 2011 10:27:13 +0000 (21:27 +1100)]
lib/param simplify server role values specified in smb.conf

The pdc/bdc split is only in smb.conf for Samba3 DCs, and so is
too confusing to document in this paramter.  It will be clearer
to sort out "domain master" into a "pdc emulator" paramter
to conver this distinction.

Andrew Bartlett

12 years agodocs: Add documentation for server role
Andrew Bartlett [Thu, 10 Nov 2011 10:16:18 +0000 (21:16 +1100)]
docs: Add documentation for server role

12 years agolibds: Make server role values explicit for easier debugging
Andrew Bartlett [Thu, 10 Nov 2011 08:48:06 +0000 (19:48 +1100)]
libds: Make server role values explicit for easier debugging

12 years agoparam: use lp_is_security_and_server_role_valid()
Andrew Bartlett [Thu, 10 Nov 2011 08:34:36 +0000 (19:34 +1100)]
param: use lp_is_security_and_server_role_valid()

This also permits a few more valid combinations, due to the layer at which this is
being used.

Andrew Bartlett

12 years agoparam: Check if server role and security parameters are conflicting
Amitay Isaacs [Thu, 10 Nov 2011 06:45:28 +0000 (17:45 +1100)]
param: Check if server role and security parameters are conflicting

12 years agolib/param: Add tests for security= behaviour now it operates with server role
Andrew Bartlett [Thu, 10 Nov 2011 06:11:56 +0000 (17:11 +1100)]
lib/param: Add tests for security= behaviour now it operates with server role

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agoparam: Connect lp_security to the lib/param code to allow tests
Andrew Bartlett [Thu, 10 Nov 2011 06:11:18 +0000 (17:11 +1100)]
param: Connect lp_security to the lib/param code to allow tests

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agos4-provision permit server role to be the ROLE_ strings from s3
Andrew Bartlett [Thu, 10 Nov 2011 05:26:57 +0000 (16:26 +1100)]
s4-provision permit server role to be the ROLE_ strings from s3

Also convert between the aliases in one single place.

Andrew Bartlett

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agoparam: Add tests for automatic server role guessing
Andrew Bartlett [Thu, 10 Nov 2011 05:07:52 +0000 (16:07 +1100)]
param: Add tests for automatic server role guessing

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agopy-param: Add python interface to get server_role
Amitay Isaacs [Thu, 10 Nov 2011 04:42:44 +0000 (15:42 +1100)]
py-param: Add python interface to get server_role

12 years agoparam: Move enum values into a common (included) .c file
Andrew Bartlett [Thu, 10 Nov 2011 04:19:33 +0000 (15:19 +1100)]
param: Move enum values into a common (included) .c file

This #include hack is required as it is not possible to declare a
compile-time sized array in a header file.

Andrew Bartlett

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agoparam: move server role helpers into loadparm.h
Andrew Bartlett [Thu, 10 Nov 2011 04:22:37 +0000 (15:22 +1100)]
param: move server role helpers into loadparm.h

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agos4-s3-upgrade Add test of net getlocalsid after the upgrade
Andrew Bartlett [Tue, 1 Nov 2011 01:59:38 +0000 (12:59 +1100)]
s4-s3-upgrade Add test of net getlocalsid after the upgrade

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agoparam: calculate server role from security, and security from server role
Andrew Bartlett [Thu, 10 Nov 2011 01:45:54 +0000 (12:45 +1100)]
param: calculate server role from security, and security from server role

This allows smb.conf files from either the samba3 or samba4 tradition
to come to the same value of server role, using the information in the
smb.conf file.

This is important so that tools like 'net getlocalsid' work against a
Samba4 AD installation (yes, users have tried this).

Andrew Bartlett

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agos3-param remove lp_domain_logons(), always use IS_DC
Andrew Bartlett [Thu, 10 Nov 2011 02:37:54 +0000 (13:37 +1100)]
s3-param remove lp_domain_logons(), always use IS_DC

This makes the code internally consistant.

Andrew Bartlett

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agoparam: make server role list common and include auto (for the new default)
Andrew Bartlett [Thu, 10 Nov 2011 01:50:09 +0000 (12:50 +1100)]
param: make server role list common and include auto (for the new default)

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>

12 years agoroles: Add ROLE_AUTO to indicate that the server role is calculated
Amitay Isaacs [Tue, 8 Nov 2011 02:22:37 +0000 (13:22 +1100)]
roles: Add ROLE_AUTO to indicate that the server role is calculated

12 years agos3-param: Add "server role" as global parameter
Amitay Isaacs [Tue, 8 Nov 2011 01:12:06 +0000 (12:12 +1100)]
s3-param: Add "server role" as global parameter

This will help extracting server role processing code in common
library.

12 years agoparam: Add "domain logons" and "domain master" parameters
Amitay Isaacs [Tue, 8 Nov 2011 00:36:00 +0000 (11:36 +1100)]
param: Add "domain logons" and "domain master" parameters

This makes parsing of config files with s3 loadparm code and s4 loadparm
code consistent.

12 years agos3-libsmb/passchange.c: remove some cli_nt_error() calls
Björn Baumbach [Wed, 16 Nov 2011 15:57:25 +0000 (16:57 +0100)]
s3-libsmb/passchange.c: remove some cli_nt_error() calls

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Nov 16 20:36:11 CET 2011 on sn-devel-104

12 years agos3-winbindd/winbindd_cm.c: remove cli_nt_error()
Björn Baumbach [Wed, 16 Nov 2011 15:52:38 +0000 (16:52 +0100)]
s3-winbindd/winbindd_cm.c: remove cli_nt_error()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libsmb/clidfs.c: remove cli_nt_error()
Björn Baumbach [Wed, 16 Nov 2011 15:37:24 +0000 (16:37 +0100)]
s3-libsmb/clidfs.c: remove cli_nt_error()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3:winbindd_cm: remove unused ads_status
Stefan Metzmacher [Wed, 16 Nov 2011 15:48:37 +0000 (16:48 +0100)]
s3:winbindd_cm: remove unused ads_status

metze

12 years agos3-torture: remove all cli_nt_error() calls in torture
Björn Baumbach [Wed, 16 Nov 2011 15:21:13 +0000 (16:21 +0100)]
s3-torture: remove all cli_nt_error() calls in torture

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-torture: replace cli_errstr() with nt_errstr()
Björn Baumbach [Wed, 16 Nov 2011 14:03:49 +0000 (15:03 +0100)]
s3-torture: replace cli_errstr() with nt_errstr()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libsmb: introduce option to disable dos error mapping
Björn Baumbach [Wed, 16 Nov 2011 13:45:01 +0000 (14:45 +0100)]
s3-libsmb: introduce option to disable dos error mapping

Signed-off-by: Stefan Metzmacher <metze@samba.org>