samba.git
8 years agodocs: Rewrite 'password server' documentation
Andrew Bartlett [Mon, 23 May 2011 00:20:47 +0000 (10:20 +1000)]
docs: Rewrite 'password server' documentation

I think this new version is more clear.

Andrew Bartlett

8 years agos4-provision Use correct tkey-gssapi-credential
Andrew Bartlett [Mon, 23 May 2011 05:27:50 +0000 (15:27 +1000)]
s4-provision Use correct tkey-gssapi-credential

We changed to ${DNSNAME} (the fully qualified domain name) a while
back, and while it's usually functionally idential to the previous
setting, this breaks down if there is more than one DNS server.

Andrew Bartlett

8 years agodocs: Clarify the 'security=server' fails for NTLMv2
Andrew Bartlett [Mon, 23 May 2011 00:42:40 +0000 (10:42 +1000)]
docs: Clarify the 'security=server' fails for NTLMv2

8 years agoselftest: Make knowfail/skip files consistent, always use ^prefix
Andrew Bartlett [Sun, 22 May 2011 23:22:07 +0000 (09:22 +1000)]
selftest: Make knowfail/skip files consistent, always use ^prefix

Except in one case (where we mark printing tests as knownfail), this
has all our regular expressions start with ^, which ensures we don't
accidentially mix up the samba3/samba4 prefix here.

Because of the particular values in these files at the moment, this
should not change the set of tests, but it will help to ensure that
future edits follow the correct pattern.

Andrew Bartlett

8 years agoFix our asn.1 parser to handle negative numbers.
Jeremy Allison [Tue, 24 May 2011 19:47:31 +0000 (12:47 -0700)]
Fix our asn.1 parser to handle negative numbers.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue May 24 22:57:16 CEST 2011 on sn-devel-104

8 years agolib/util Add Volker's asn1_Integer test into code that runs in 'make test'
Andrew Bartlett [Sat, 14 May 2011 17:49:36 +0000 (19:49 +0200)]
lib/util Add Volker's asn1_Integer test into code that runs in 'make test'

The comfychair test harness isn't hooked up, and with the current
infrustructure C code is better tested directly here.

Andrew Bartlett

8 years agoActually make use of the SMBTA_SUBRELEASE define in smb_traffic_analyzer.h. This...
Holger Hetterich [Sun, 20 Feb 2011 10:32:39 +0000 (11:32 +0100)]
Actually make use of the SMBTA_SUBRELEASE define in smb_traffic_analyzer.h. This will allow to introduce new features or fixes into the protocol after the 3.6.0 release. The client software is designed to take care for the subrelease number.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue May 24 21:23:22 CEST 2011 on sn-devel-104

8 years agoFix bug #7054 - X account flag does not work when pwdlastset is 0.
Jeremy Allison [Tue, 24 May 2011 00:14:47 +0000 (17:14 -0700)]
Fix bug #7054 - X account flag does not work when pwdlastset is 0.

Don't allow pass_last_set_time to be set to zero (which means
"user must change password on next logon") if user object doesn't
allow password change.

Don't automatically allow user object password change if
"user must change password on next logon" is set.

Jim please check.

Jeremy.

8 years agos3:modules properly terminate enums in nfs4 acl code
Christian Ambach [Tue, 24 May 2011 17:01:22 +0000 (19:01 +0200)]
s3:modules properly terminate enums in nfs4 acl code

same issue as with the audit modules:
using a wrong parameter leads to smbd crash as lp_enum()
will not terminate on last entry of the array

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Tue May 24 20:13:39 CEST 2011 on sn-devel-104

8 years agos3:vfs properly terminate enums in audit modules
Christian Ambach [Tue, 24 May 2011 15:19:52 +0000 (17:19 +0200)]
s3:vfs properly terminate enums in audit modules

without the proper terminations of the enums, invalid arguments
for the audit modules will lead to a smbd crash as the loop in
lp_enum() will attempt to access memory behind the array

8 years agoFix bug #8150 - Ban 'dos charset = utf8'
Jeremy Allison [Mon, 23 May 2011 17:57:56 +0000 (10:57 -0700)]
Fix bug #8150 - Ban 'dos charset = utf8'

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue May 24 03:52:50 CEST 2011 on sn-devel-104

8 years agos3: Remove unused cli_get_nt_error
Volker Lendecke [Mon, 23 May 2011 10:26:03 +0000 (12:26 +0200)]
s3: Remove unused cli_get_nt_error

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May 23 16:54:21 CEST 2011 on sn-devel-104

8 years agos3: Remove unused cli_set_nt_error
Volker Lendecke [Mon, 23 May 2011 10:25:32 +0000 (12:25 +0200)]
s3: Remove unused cli_set_nt_error

8 years agos3: Remove unused cli_reset_error
Volker Lendecke [Mon, 23 May 2011 10:24:52 +0000 (12:24 +0200)]
s3: Remove unused cli_reset_error

8 years agos3: Remove a reference to cli->inbuf
Volker Lendecke [Mon, 23 May 2011 10:22:41 +0000 (12:22 +0200)]
s3: Remove a reference to cli->inbuf

This is only used for utf16 alignment calculations, "rdata" is aligned the
same way as cli->inbuf is.

8 years agos3: Remove two false references to cli->inbuf
Volker Lendecke [Mon, 23 May 2011 10:21:17 +0000 (12:21 +0200)]
s3: Remove two false references to cli->inbuf

8 years agos3: Fix a leftover from fstring removal in cli_state
Volker Lendecke [Mon, 23 May 2011 13:36:20 +0000 (15:36 +0200)]
s3: Fix a leftover from fstring removal in cli_state

Jeremy, please check!

8 years agoselftest: create ncalrpcdir with 0755 permissions
Stefan Metzmacher [Sun, 22 May 2011 17:40:19 +0000 (19:40 +0200)]
selftest: create ncalrpcdir with 0755 permissions

We need to reset the umask in order to set to the desired permissions.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 23 13:26:33 CEST 2011 on sn-devel-104

8 years agos3: Remove unused cli_[en|de]crypt_message
Volker Lendecke [Sun, 22 May 2011 17:14:44 +0000 (19:14 +0200)]
s3: Remove unused cli_[en|de]crypt_message

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May 23 12:15:33 CEST 2011 on sn-devel-104

8 years agos3: Directly call common_encrypt_buffer in cli_smb_req_iov_send
Volker Lendecke [Sun, 22 May 2011 17:13:19 +0000 (19:13 +0200)]
s3: Directly call common_encrypt_buffer in cli_smb_req_iov_send

8 years agos3: Remove cli_send/receive_smb
Volker Lendecke [Sun, 22 May 2011 17:00:50 +0000 (19:00 +0200)]
s3: Remove cli_send/receive_smb

A moment of silence is due here, R.I.P.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun May 22 22:17:12 CEST 2011 on sn-devel-104

8 years agos3: Remove the smbtorture3 OPLOCK3 test
Volker Lendecke [Sun, 22 May 2011 12:16:46 +0000 (14:16 +0200)]
s3: Remove the smbtorture3 OPLOCK3 test

This is the last user of cli_receive_smb. Oplocks are nowadays tested
in smbtorture4, this mainly has historic value

8 years agos3: Convert the OPEN4 test to async oplock handling
Volker Lendecke [Sun, 22 May 2011 16:50:16 +0000 (18:50 +0200)]
s3: Convert the OPEN4 test to async oplock handling

This removes a caller of cli_receive_smb

8 years agos3: Remove clistr_align_out
Volker Lendecke [Sat, 21 May 2011 20:20:18 +0000 (22:20 +0200)]
s3: Remove clistr_align_out

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May 21 23:31:12 CEST 2011 on sn-devel-104

8 years agos3: Remove unused cli_setup_bcc
Volker Lendecke [Sat, 21 May 2011 18:14:30 +0000 (20:14 +0200)]
s3: Remove unused cli_setup_bcc

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May 21 21:24:13 CEST 2011 on sn-devel-104

8 years agos4:sam.py - add tests to check that setting "userAccountValue" on usersdon't impact...
Matthieu Patou [Sat, 21 May 2011 10:35:58 +0000 (14:35 +0400)]
s4:sam.py - add tests to check that setting "userAccountValue" on usersdon't impact the "primaryGroupID" attribute

Notice: The domain administrators groups isn't referenced as "Domain Admins"
since this name could differ.

Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat May 21 19:19:57 CEST 2011 on sn-devel-104

8 years agos4:samldb LDB module - don't change the "primaryGroupId" on LDB modifications unless...
Matthieu Patou [Sat, 21 May 2011 07:56:45 +0000 (11:56 +0400)]
s4:samldb LDB module - don't change the "primaryGroupId" on LDB modifications unless we are a computer/dc/rodc

Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
8 years agos4:lsa RPC server - handle LDB flags as "unsigned"
Matthias Dieter Wallnöfer [Wed, 13 Apr 2011 07:01:42 +0000 (09:01 +0200)]
s4:lsa RPC server - handle LDB flags as "unsigned"

Signed-off-by: Metze
8 years agos4:ldb-samba/ldb_wrap.*-dsdb/samdb/samdb.c - handle LDB connection flags as unsigned
Matthias Dieter Wallnöfer [Sun, 10 Apr 2011 17:54:31 +0000 (19:54 +0200)]
s4:ldb-samba/ldb_wrap.*-dsdb/samdb/samdb.c - handle LDB connection flags as unsigned

The LDB API ("ldb_connect") prescribes that they should be "unsigned".

Signed-off-by: Metze
8 years agoldb:pyldb.c - all flags should be unsigned
Matthias Dieter Wallnöfer [Sun, 10 Apr 2011 17:48:07 +0000 (19:48 +0200)]
ldb:pyldb.c - all flags should be unsigned

Adapt it to the previous commits

Reviewed-by: Jelmer + Metze
8 years agoldb:ldb_sqlite3.c - all LDB flags should be handled as "unsigned"
Matthias Dieter Wallnöfer [Wed, 13 Apr 2011 07:05:34 +0000 (09:05 +0200)]
ldb:ldb_sqlite3.c - all LDB flags should be handled as "unsigned"

Signed-off-by: Metze
8 years agoldb:tools/cmdline.c + tools/ldbtest.c - the connection flags are typed as "unsigned"
Matthias Dieter Wallnöfer [Sun, 10 Apr 2011 17:44:53 +0000 (19:44 +0200)]
ldb:tools/cmdline.c + tools/ldbtest.c - the connection flags are typed as "unsigned"

Signed-off-by: Metze
8 years agoldb:ldbtest.c - make more use of LDB constants
Matthias Dieter Wallnöfer [Wed, 11 May 2011 12:25:11 +0000 (14:25 +0200)]
ldb:ldbtest.c - make more use of LDB constants

Signed-off-by: Metze
8 years agos4:torture - always cast correctly when using the "%x" format string argument
Matthias Dieter Wallnöfer [Sat, 7 May 2011 09:06:38 +0000 (11:06 +0200)]
s4:torture - always cast correctly when using the "%x" format string argument

Signed-off-by: Metze
8 years agos4:auth/ntlmssp/ntlmssp_server.c - add "const" in front of "dnsdomain"
Matthias Dieter Wallnöfer [Sat, 7 May 2011 08:37:24 +0000 (10:37 +0200)]
s4:auth/ntlmssp/ntlmssp_server.c - add "const" in front of "dnsdomain"

Signed-off-by: Metze
8 years agoadd a demo script for dirsync
Matthieu Patou [Mon, 7 Feb 2011 06:55:26 +0000 (09:55 +0300)]
add a demo script for dirsync

Signed-off-by: Andrew Tridgell <tridge@samba.org>
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat May 21 15:40:26 CEST 2011 on sn-devel-104

8 years agos4-dsdb: add unit tests for dirsync control
Matthieu Patou [Sun, 27 Feb 2011 09:24:45 +0000 (12:24 +0300)]
s4-dsdb: add unit tests for dirsync control

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agos4-dsdb: implementation of the dirsync control
Matthieu Patou [Thu, 13 Jan 2011 18:55:11 +0000 (21:55 +0300)]
s4-dsdb: implementation of the dirsync control

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agos4-dsdb: introduce dsdb_module_search_tree
Matthieu Patou [Sat, 19 Mar 2011 22:20:22 +0000 (01:20 +0300)]
s4-dsdb: introduce dsdb_module_search_tree

With this function your own search tree can be specified

This function is similar to ldb_build_search_req_ex as it allows to
pass a parse tree structure.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agos4-dsdb: relax a bit the checks on read acl when dirsync control is specified
Matthieu Patou [Mon, 7 Mar 2011 22:02:32 +0000 (01:02 +0300)]
s4-dsdb: relax a bit the checks on read acl when dirsync control is specified

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agos4-dsdb: create flag for requesting ACL relax in case of DIRSYNC request
Matthieu Patou [Sat, 16 Apr 2011 07:46:40 +0000 (11:46 +0400)]
s4-dsdb: create flag for requesting ACL relax in case of DIRSYNC request

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agos4: do not change the critical flag when it's on a dirsync control
Matthieu Patou [Mon, 7 Feb 2011 06:58:17 +0000 (09:58 +0300)]
s4: do not change the critical flag when it's on a dirsync control

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agoselftest: Allow to test samba4 with ACL on read set
Matthieu Patou [Thu, 14 Apr 2011 05:48:14 +0000 (09:48 +0400)]
selftest: Allow to test samba4 with ACL on read set

Signed-off-by: Andrew Tridgell <tridge@samba.org>
8 years agos4: add blackbox test for rename
Matthieu Patou [Fri, 20 May 2011 19:50:55 +0000 (23:50 +0400)]
s4: add blackbox test for rename

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat May 21 09:50:34 CEST 2011 on sn-devel-104

8 years agoupgradeprovision: add hostname in the blackbox tests
Matthieu Patou [Fri, 20 May 2011 19:50:11 +0000 (23:50 +0400)]
upgradeprovision: add hostname in the blackbox tests

8 years agoMake the purge first so that the provision can reused during tests
Matthieu Patou [Fri, 20 May 2011 16:45:43 +0000 (20:45 +0400)]
Make the purge first so that the provision can reused during tests

8 years agoAdd a script for renaming a DC
Matthieu Patou [Mon, 25 Apr 2011 20:04:32 +0000 (00:04 +0400)]
Add a script for renaming a DC

8 years agos4-python: Remove not used imports
Matthieu Patou [Sat, 23 Apr 2011 09:47:27 +0000 (13:47 +0400)]
s4-python: Remove not used imports

8 years agos4-python: move function find_provision_key_parameters to provision namespace as...
Matthieu Patou [Fri, 20 May 2011 15:43:19 +0000 (19:43 +0400)]
s4-python: move function find_provision_key_parameters to provision namespace as it can be used not only for upgradeprovision

8 years agoPatch for bug #8156 - net ads join fails to use the user's kerberos ticket.
Jeremy Allison [Fri, 20 May 2011 21:43:50 +0000 (14:43 -0700)]
Patch for bug #8156 - net ads join fails to use the user's kerberos ticket.

If kerberos_get_realm_from_hostname() or kerberos_get_default_realm_from_ccache() fails due to
 a misconfigured krb5.conf, try the "realm =" from smb.conf as a fallcback before going back to
 NTLMSSP (which we'll do anyway).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat May 21 00:58:09 CEST 2011 on sn-devel-104

8 years agoThe "workgroup" parameter is not used at all in cli_session_setup_kerberos(). Remove it.
Jeremy Allison [Fri, 20 May 2011 21:34:18 +0000 (14:34 -0700)]
The "workgroup" parameter is not used at all in cli_session_setup_kerberos(). Remove it.

8 years agoFix bug #8157 - std_pcap_cache_reload() fails to parse a cups printcap file correctly.
Jeremy Allison [Fri, 20 May 2011 19:27:02 +0000 (12:27 -0700)]
Fix bug #8157 - std_pcap_cache_reload() fails to parse a cups printcap file correctly.

The parsing code made some strange assumptions about what is a printer
name, and what is a comment.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 20 22:52:23 CEST 2011 on sn-devel-104

8 years agoFix bug 8133 - strange behavior for the file (whose filename first character is perio...
Jeremy Allison [Thu, 19 May 2011 23:39:18 +0000 (16:39 -0700)]
Fix bug 8133 - strange behavior for the file (whose filename first character is period ) in SMB2 case.

When doing SMB2 renames, we need to match all filetypes (no attributes field in the SMB2 call).
By default a file starting with a period is returned as FILE_ATTRIBUTE_HIDDEN in Samba.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 20 19:26:04 CEST 2011 on sn-devel-104

8 years agoOptimization. If the attributes passed to can_rename() include both FILE_ATTRIBUTE_HI...
Jeremy Allison [Thu, 19 May 2011 23:38:11 +0000 (16:38 -0700)]
Optimization. If the attributes passed to can_rename() include both FILE_ATTRIBUTE_HIDDEN and FILE_ATTRIBUTE_SYSTEM then there's no point in reading the source DOS attribute, as we're not going to deny the rename on attribute match.

8 years agos3:smbd remove unused code
Christian Ambach [Fri, 20 May 2011 12:17:36 +0000 (14:17 +0200)]
s3:smbd remove unused code

in the early CTDB days, the RELEASE_IP message was defined
and some code was added to react on such a message to make
smbd exit if the IP address it was using for the server socket
is removed by CTDB.
Later, it was discovered that we need to stop smbd immediately
and logic was added to ctdb_conn to call release_ip() without
going through the messaging system.

So this code is not used and can be removed

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Fri May 20 16:18:24 CEST 2011 on sn-devel-104

8 years agos3: Fork the echo handler only after SMB1 negprot is done
Volker Lendecke [Fri, 20 May 2011 11:07:17 +0000 (13:07 +0200)]
s3: Fork the echo handler only after SMB1 negprot is done

This enables activating the echo responder also if SMB2 is enabled, albeit it
will only be used for SMB1 at this moment.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri May 20 15:06:03 CEST 2011 on sn-devel-104

8 years agos3: Fix Coverity ID 2573: UNUSED_VALUE
Volker Lendecke [Fri, 20 May 2011 11:25:31 +0000 (13:25 +0200)]
s3: Fix Coverity ID 2573: UNUSED_VALUE

Andrew B., please check!

8 years agos3: Fix an uninitialized variable
Volker Lendecke [Fri, 20 May 2011 13:21:43 +0000 (15:21 +0200)]
s3: Fix an uninitialized variable

8 years agos3:testparm: don't return an error for a warning message
Stefan Metzmacher [Fri, 20 May 2011 06:31:16 +0000 (08:31 +0200)]
s3:testparm: don't return an error for a warning message

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri May 20 13:14:39 CEST 2011 on sn-devel-104

8 years agos3-epmapper: Fixed endpoint registration.
Andreas Schneider [Wed, 18 May 2011 10:10:42 +0000 (12:10 +0200)]
s3-epmapper: Fixed endpoint registration.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Fri May 20 12:03:18 CEST 2011 on sn-devel-104

8 years agos3: Remove unused cli_setup_packet()
Volker Lendecke [Fri, 20 May 2011 06:36:46 +0000 (08:36 +0200)]
s3: Remove unused cli_setup_packet()

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri May 20 10:51:36 CEST 2011 on sn-devel-104

8 years agotorture-dfs: fix a typo that was causing the test to be flacky
Matthieu Patou [Fri, 20 May 2011 06:30:54 +0000 (10:30 +0400)]
torture-dfs: fix a typo that was causing the test to be flacky

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri May 20 09:39:12 CEST 2011 on sn-devel-104

8 years agoFix Bug 8152 - smbd crash in release_ip()
Christian Ambach [Thu, 19 May 2011 16:13:40 +0000 (18:13 +0200)]
Fix Bug 8152 - smbd crash in release_ip()

release_ip() needs the private_data, but it was never saved away
to feed it into release_ip() later

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Thu May 19 21:21:14 CEST 2011 on sn-devel-104

8 years agos3: Remove a use of cli_send_smb
Volker Lendecke [Thu, 19 May 2011 16:48:09 +0000 (18:48 +0200)]
s3: Remove a use of cli_send_smb

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu May 19 20:11:33 CEST 2011 on sn-devel-104

8 years agofix the WAF build
Volker Lendecke [Thu, 19 May 2011 15:37:19 +0000 (17:37 +0200)]
fix the WAF build

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu May 19 18:46:51 CEST 2011 on sn-devel-104

8 years agos3: Do central cli_set_error
Volker Lendecke [Thu, 19 May 2011 11:43:15 +0000 (13:43 +0200)]
s3: Do central cli_set_error

8 years agos3: Remove the use of cli->inbuf/outbuf from cli_session_request
Volker Lendecke [Thu, 19 May 2011 07:12:13 +0000 (09:12 +0200)]
s3: Remove the use of cli->inbuf/outbuf from cli_session_request

8 years agos3: Add sync read_smb
Volker Lendecke [Thu, 19 May 2011 06:36:54 +0000 (08:36 +0200)]
s3: Add sync read_smb

8 years agos3: Make read_smb_send/recv public
Volker Lendecke [Thu, 19 May 2011 06:23:50 +0000 (08:23 +0200)]
s3: Make read_smb_send/recv public

8 years agoFix bug found when building on an IPv6-only system by Kai Blin.
Jeremy Allison [Wed, 18 May 2011 22:28:28 +0000 (15:28 -0700)]
Fix bug found when building on an IPv6-only system by Kai Blin.

When building on IPv6-only, doing:

hints.ai_family = AF_INET;
getaddrinfo("0.0.0.0", NULL, &hints, &ppres)

fails as AF_INET is unavailable on an IPv6-only system. This
causes us to fallback to our replacement getaddrinfo code
which is IPv4-only.

As we're only trying to detect a specific AIX bug here,
broaden the tests to find that bug, and also test for
working getaddrinfo in an IPv6-only safe way.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu May 19 02:21:54 CEST 2011 on sn-devel-104

8 years agopackaging(RHEL-CTDB): honour rpm build target options handed in to makerpms.sh
Michael Adam [Wed, 18 May 2011 08:35:42 +0000 (10:35 +0200)]
packaging(RHEL-CTDB): honour rpm build target options handed in to makerpms.sh

This allows to call e.g. "makerpms.sh -bs" to only build the source rpm.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed May 18 23:10:59 CEST 2011 on sn-devel-104

8 years agopackaging(RHEL-CTDB): adapt configure.rpm
Michael Adam [Fri, 6 May 2011 15:22:06 +0000 (17:22 +0200)]
packaging(RHEL-CTDB): adapt configure.rpm

8 years agopackaging(RHEL-CTDB): enforce building of libtdb and libtalloc
Michael Adam [Fri, 6 May 2011 15:21:10 +0000 (17:21 +0200)]
packaging(RHEL-CTDB): enforce building of libtdb and libtalloc

8 years agopackaging(RHEL-CTDB): build libtdb and libtalloc packages ourselves
Michael Adam [Fri, 6 May 2011 10:29:10 +0000 (12:29 +0200)]
packaging(RHEL-CTDB): build libtdb and libtalloc packages ourselves

and add appropriate dependencies to the samba-common package.
It should also be possible to run with appropriate system talloc
and tdb packages.

8 years agopackaging(RHEL-CTDB): update configure.rpm (--disable-smbtorture4)
Michael Adam [Fri, 6 May 2011 16:36:38 +0000 (18:36 +0200)]
packaging(RHEL-CTDB): update configure.rpm (--disable-smbtorture4)

8 years agopackaging(RHEL-CTDB): disable smbtorture4 in the rpm build
Michael Adam [Fri, 6 May 2011 16:35:55 +0000 (18:35 +0200)]
packaging(RHEL-CTDB): disable smbtorture4 in the rpm build

8 years agopackaging(RHEL-CTDB): Remove the packaging of the winbind-32bit compat package
Michael Adam [Fri, 6 May 2011 10:03:52 +0000 (12:03 +0200)]
packaging(RHEL-CTDB): Remove the packaging of the winbind-32bit compat package

8 years agopackaging(RHEL-CTDB): create the rpm directories
Volker Lendecke [Wed, 27 Apr 2011 08:25:05 +0000 (10:25 +0200)]
packaging(RHEL-CTDB): create the rpm directories

In RHEL6, rpms are built in /root/rpmbuild, and those directories do not
necessarily exist.

8 years agoMake protocol version 2 the default protocol, and only run on version 1 if V1 is...
Holger Hetterich [Wed, 18 May 2011 13:24:23 +0000 (15:24 +0200)]
Make protocol version 2 the default protocol, and only run on version 1 if V1 is explcitly given as a module option.

I haven't received a single line of feedback on protocol v1
for at least 1 1/2 years, whereas protocol v2 has an active
userbase and more people developing around it.

This patch includes a manpage update, describing the new
version handling, as well as documenting the recent changes
making the module transfer the IP address of the client machine
as submitted with
464c69609aa7e582f484c1d357b7c6d3eb2bcbe3.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 18 21:36:44 CEST 2011 on sn-devel-104

8 years agolib/util/charset: Remove unused strcasecmp_w and strncasecmp_w
Andrew Bartlett [Wed, 18 May 2011 13:57:10 +0000 (23:57 +1000)]
lib/util/charset: Remove unused strcasecmp_w and strncasecmp_w

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed May 18 17:22:15 CEST 2011 on sn-devel-104

8 years agos3-selftest Remove unused and unimplemented info3cache test
Andrew Bartlett [Wed, 18 May 2011 04:13:18 +0000 (14:13 +1000)]
s3-selftest Remove unused and unimplemented info3cache test

8 years agolib/util/charset use talloc_stackframe() rather than talloc_tos()
Andrew Bartlett [Wed, 18 May 2011 03:57:26 +0000 (13:57 +1000)]
lib/util/charset use talloc_stackframe() rather than talloc_tos()

This is common code, and we can't assume a talloc_stackframe() so we
must create it.

Andrew Bartlett

8 years agoselftest: Re-enable strings.py from source3/stf as a python subunit test
Andrew Bartlett [Wed, 18 May 2011 02:06:25 +0000 (12:06 +1000)]
selftest: Re-enable strings.py from source3/stf as a python subunit test

8 years agos3-testparm Warn more on incorrect use of 'password server'
Andrew Bartlett [Wed, 18 May 2011 01:53:34 +0000 (11:53 +1000)]
s3-testparm Warn more on incorrect use of 'password server'

8 years agolib/util/charset Don't allow invalid 'dos charset = utf8'
Andrew Bartlett [Wed, 18 May 2011 01:51:37 +0000 (11:51 +1000)]
lib/util/charset Don't allow invalid 'dos charset = utf8'

No DOS client used UTF8, and this creates subtle, difficult to
disagnose breakage of schannel (domain membership).

Andrew Bartlett

8 years agos3-selftest Remove unused sambalib.py from comfychair test system
Andrew Bartlett [Wed, 18 May 2011 00:34:03 +0000 (10:34 +1000)]
s3-selftest Remove unused sambalib.py from comfychair test system

The test binary t_snprintf has moved to lib/replace

8 years agos3-lib Replace StrnCaseCmp() with strncasecmp_m()
Andrew Bartlett [Fri, 13 May 2011 18:23:36 +0000 (20:23 +0200)]
s3-lib Replace StrnCaseCmp() with strncasecmp_m()

strncasecmp_m() never needs to call to talloc, and via next_codepoint()
still has an ASCII fast-path bypassing iconv() calls.

Andrew Bartlett

8 years agos3-lib Replace StrCaseCmp() with strcasecmp_m()
Andrew Bartlett [Fri, 13 May 2011 18:21:30 +0000 (20:21 +0200)]
s3-lib Replace StrCaseCmp() with strcasecmp_m()

strcasecmp_m() never needs to call to talloc, and via next_codepoint()
still has an ASCII fast-path bypassing iconv() calls.

Andrew Bartlett

8 years agos3-param: Remove unused snum2params_static
Andrew Bartlett [Mon, 16 May 2011 12:27:28 +0000 (22:27 +1000)]
s3-param: Remove unused snum2params_static

8 years agos3-param: remove unused share_iterator functions
Andrew Bartlett [Mon, 16 May 2011 12:26:00 +0000 (22:26 +1000)]
s3-param: remove unused share_iterator functions

8 years agos4-libnet: Remove libnet_Join and create libnet_Join_member
Andrew Bartlett [Mon, 16 May 2011 12:55:29 +0000 (22:55 +1000)]
s4-libnet: Remove libnet_Join and create libnet_Join_member

libnet_Join conflicts with a function in the source3 netapi of the
same name, and the ability to join as a DC via this particular method
is unused.

Andrew Bartlett

8 years agobuild: Add 'cap' as a dependency of samba3core
Andrew Bartlett [Mon, 16 May 2011 11:57:27 +0000 (21:57 +1000)]
build: Add 'cap' as a dependency of samba3core

8 years agobuild: Make POPT_SAMBA3 a library
Andrew Bartlett [Mon, 16 May 2011 11:20:36 +0000 (21:20 +1000)]
build: Make POPT_SAMBA3 a library

This avoids some duplicate symbols when libnet and libsmbclient are
linked into the same binary (smbtorture4).

Andrew Bartlett

8 years agolibrpc/ndr Merge ndr_print_sockaddr_storage() into common code
Andrew Bartlett [Mon, 16 May 2011 11:18:25 +0000 (21:18 +1000)]
librpc/ndr Merge ndr_print_sockaddr_storage() into common code

There is no longer a reason to leave this source3 specific, and this
brings it into a library (avoiding duplicate symbols).

Andrew Bartlett

8 years agobuild: Make util_reg subsystem in libcli/registry a library
Andrew Bartlett [Mon, 16 May 2011 11:14:48 +0000 (21:14 +1000)]
build: Make util_reg subsystem in libcli/registry a library

8 years agobuild: Add rpc_client grouping library
Andrew Bartlett [Mon, 16 May 2011 11:08:20 +0000 (21:08 +1000)]
build: Add rpc_client grouping library

8 years agobuild: Add depenencies needed by Samba3 subsystems
Andrew Bartlett [Mon, 16 May 2011 11:08:06 +0000 (21:08 +1000)]
build: Add depenencies needed by Samba3 subsystems

8 years agobuild: Make auth_sam_reply a library
Andrew Bartlett [Mon, 16 May 2011 11:06:22 +0000 (21:06 +1000)]
build: Make auth_sam_reply a library

8 years agobuild: Make msrpc3 a library
Andrew Bartlett [Sat, 14 May 2011 19:54:57 +0000 (21:54 +0200)]
build: Make msrpc3 a library

8 years agobuild: Expand dcerpc-samba grouping library
Andrew Bartlett [Sat, 14 May 2011 17:55:57 +0000 (19:55 +0200)]
build: Expand dcerpc-samba grouping library

This is possible in common now because the generated RPC code does not
rely on a particular dcerpc layer.

Andrew Bartlett