bbaumbach/samba-autobuild/.git
11 years agos3-winbindd: libwbclient: implement secure channel verification for specific domains...
Günther Deschner [Tue, 6 Oct 2009 15:46:25 +0000 (17:46 +0200)]
s3-winbindd: libwbclient: implement secure channel verification for specific domains in wbcCheckTrustCredentials().

Guenther

11 years agowbinfo: allow to check trusts via "wbinfo -t --domain DOMAINNAME".
Günther Deschner [Wed, 7 Oct 2009 08:43:53 +0000 (10:43 +0200)]
wbinfo: allow to check trusts via "wbinfo -t --domain DOMAINNAME".

Guenther

11 years agolibwbclient: implement secure channel verification for specific domains in wbcCheckTr...
Günther Deschner [Tue, 6 Oct 2009 15:45:24 +0000 (17:45 +0200)]
libwbclient: implement secure channel verification for specific domains in wbcCheckTrustCredentials().

Guenther

11 years agos3-netlogon: pure cosmetic indent fixes in _netr_LogonControl2Ex().
Günther Deschner [Tue, 6 Oct 2009 15:50:15 +0000 (17:50 +0200)]
s3-netlogon: pure cosmetic indent fixes in _netr_LogonControl2Ex().

Guenther

11 years agos3: re-run make samba3-idl.
Günther Deschner [Wed, 7 Oct 2009 08:34:15 +0000 (10:34 +0200)]
s3: re-run make samba3-idl.

Guenther

11 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Andrew Tridgell [Wed, 7 Oct 2009 05:21:28 +0000 (16:21 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

11 years agos4-drs: fixed a memory error introduced yesterday
Andrew Tridgell [Wed, 7 Oct 2009 05:20:16 +0000 (16:20 +1100)]
s4-drs: fixed a memory error introduced yesterday

ids is retrurned via _ids, so it needs to be on the passed in mem_ctx

11 years agos4/torture: Add server target of OneFS
Steven Danneman [Sat, 3 Oct 2009 00:02:20 +0000 (17:02 -0700)]
s4/torture: Add server target of OneFS

I've added a "--target=onefs" which lists expected deviation in the
OneFS SMB server implementation compared to a Windows machine.

I've added this in a generic way using a list of module specific
parameters.  This list currently only contains the absence of
SACL support but will be added to as additional server differences
are defined.

I'd liked to use this abstraction for defining the differences between
a WinXP and Win7 server as well.

11 years agos4/torture: Add SMB sharemode/access mask tests
Aravind Srinivasan [Tue, 6 Oct 2009 23:57:34 +0000 (16:57 -0700)]
s4/torture: Add SMB sharemode/access mask tests

Test several thousand permutations of create mask and sharemodes on file
and directory opens.

These tests use a checked-in results table derived from a WinXP server to
verify correct server behavior.

CREATEX_ACCESS
CREATEX_SHAREMODES_FILE
CREATEX_SHAREMODES_DIR
MAXIMUM_ALLOWED

11 years agos4/torture: change comments to torture_failures
Aravind Srinivasan [Tue, 6 Oct 2009 23:43:43 +0000 (16:43 -0700)]
s4/torture: change comments to torture_failures

This allows the frameworks that wrap smbtorture to detect errors
better.

11 years agoTest creating and deleting a bad symlink using the POSIX calls. Ensure
Jeremy Allison [Wed, 7 Oct 2009 00:18:15 +0000 (17:18 -0700)]
Test creating and deleting a bad symlink using the POSIX calls. Ensure
we don't regress on bug 6769.
Jeremy.

11 years agotorture: disable the ValidatePassword test
Andrew Tridgell [Tue, 6 Oct 2009 23:55:35 +0000 (10:55 +1100)]
torture: disable the ValidatePassword test

This test causes problems on non-sealed connections against windows

11 years agos4-torture: removed an accidental commit of a local test hack
Andrew Tridgell [Tue, 6 Oct 2009 23:05:26 +0000 (10:05 +1100)]
s4-torture: removed an accidental commit of a local test hack

Sorry about that ....

11 years agotdr: teach TDR about uint1632 enums
Andrew Tridgell [Tue, 6 Oct 2009 19:39:03 +0000 (06:39 +1100)]
tdr: teach TDR about uint1632 enums

TDB doesn't have NDR64, but it needs to know how to map the new types
from pidl

11 years agopidl: update PIDL tests for uint1632 enums
Andrew Tridgell [Tue, 6 Oct 2009 09:49:14 +0000 (20:49 +1100)]
pidl: update PIDL tests for uint1632 enums

11 years agoidl: recompile IDL for uint1632 change
Andrew Tridgell [Tue, 6 Oct 2009 09:47:42 +0000 (20:47 +1100)]
idl: recompile IDL for uint1632 change

11 years agopidl: get the alignment right for uint1632 enums (NDR64)
Andrew Tridgell [Tue, 6 Oct 2009 09:47:09 +0000 (20:47 +1100)]
pidl: get the alignment right for uint1632 enums (NDR64)

The default enum in NDR63 is 32 bits, not 16 bits. We need a uint1632
type to get the alignment right.

11 years agos3:winbind: Make query_user_list in winbindd_rpc a bit more readable
Volker Lendecke [Tue, 6 Oct 2009 19:31:02 +0000 (21:31 +0200)]
s3:winbind: Make query_user_list in winbindd_rpc a bit more readable

11 years agos4:various LDB modules - "build_request" functions - propagate result codes back
Matthias Dieter Wallnöfer [Tue, 6 Oct 2009 17:27:17 +0000 (19:27 +0200)]
s4:various LDB modules - "build_request" functions - propagate result codes back

It's very useful to know the exact result code when something fails and not
only a generic (by the module) created one.
Sure, there are some exception cases with specific results (special message
constellations, attributes, values...) which shouldn't be changed at all
(examples of them are in the "ldap.py" test). Therefore I looked very
carefully to not change them.

11 years agos4:rootdse module - intendation fixup
Matthias Dieter Wallnöfer [Tue, 6 Oct 2009 17:26:15 +0000 (19:26 +0200)]
s4:rootdse module - intendation fixup

11 years agos4:acl module - intendation fix and comment enhancement
Matthias Dieter Wallnöfer [Tue, 6 Oct 2009 17:24:28 +0000 (19:24 +0200)]
s4:acl module - intendation fix and comment enhancement

11 years agos3: Add access_mask to the flock VFS call
Abhidnya P Chirmule [Tue, 6 Oct 2009 15:14:56 +0000 (17:14 +0200)]
s3: Add access_mask to the flock VFS call

11 years agos3-winbindd: make sure to reset connections when machine account password change...
Günther Deschner [Mon, 5 Oct 2009 15:05:38 +0000 (17:05 +0200)]
s3-winbindd: make sure to reset connections when machine account password change chain was broken.

Guenther

11 years agos3-netlogon: setup NETLOGON credential chain in rpccli_netlogon_set_trust_password...
Günther Deschner [Mon, 5 Oct 2009 15:04:52 +0000 (17:04 +0200)]
s3-netlogon: setup NETLOGON credential chain in rpccli_netlogon_set_trust_password() only when needed.

Guenther

11 years agoadd trailer alignment to structures
Ronnie Sahlberg [Sun, 4 Oct 2009 05:57:57 +0000 (16:57 +1100)]
add trailer alignment to structures

11 years agoPIDL fix for using external types with wireshark backend
ronnie sahlberg [Tue, 6 Oct 2009 06:49:59 +0000 (17:49 +1100)]
PIDL fix for using external types with wireshark backend

List,

Please review this patch to pidl.

Basically,  we need to process the wireshark conformance file BEFORE
we process the idl file since this file may define external types
and set the alignment for them (using the TYPE directive).
Otherwise pidl will default all external types to use 4byte alignment
which breaks (much more often) on NDR64

regards
ronnie sahlberg

From 8f86903fc353d0906bd82e72ce19c5af09beb001 Mon Sep 17 00:00:00 2001
From: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Date: Mon, 5 Oct 2009 15:22:43 +1100
Subject: [PATCH] In the PIDL wireshark backend, we define external types in the conformance
 file using the TYPE directive.
 If we declare external types here, we must parse this file before we process
 the IDL file, or else these external types will all default to 4byte padding
 (pidl assumes all unknown types are 4byte aligned).

Make sure we read the conformance file and create these new types before
we parse the idl file.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
11 years agos4-provision: match win2003 functional level
Andrew Tridgell [Tue, 6 Oct 2009 08:05:15 +0000 (19:05 +1100)]
s4-provision: match win2003 functional level

We are now defaulting to win2003 functional level, and see to report
the right revisions of our db and schema

11 years agos4-drs: added some debug lines to DsAddEntry()
Andrew Tridgell [Tue, 6 Oct 2009 07:59:47 +0000 (18:59 +1100)]
s4-drs: added some debug lines to DsAddEntry()

11 years agos4-drs: take advantage of system session auth in dsbind
Andrew Tridgell [Tue, 6 Oct 2009 07:59:30 +0000 (18:59 +1100)]
s4-drs: take advantage of system session auth in dsbind

Now that the bind opens samdb with the right credentials, we no longer
need the re-open in updaterefs and getncchanges

11 years agos4-drs: fixed error message for drs_security_level_check
Andrew Tridgell [Tue, 6 Oct 2009 07:58:41 +0000 (18:58 +1100)]
s4-drs: fixed error message for drs_security_level_check

11 years agos4-drs: open samdb with system credentials when authorised
Andrew Tridgell [Tue, 6 Oct 2009 07:58:13 +0000 (18:58 +1100)]
s4-drs: open samdb with system credentials when authorised

When a DC connects to DRS, open the samdb with system session
credentials, so that we don't have to re-open it each time on other
calls.

11 years agos4-ldb: fixed error on single value error
Andrew Tridgell [Tue, 6 Oct 2009 07:57:06 +0000 (18:57 +1100)]
s4-ldb: fixed error on single value error

When you try to add a 2nd value to a single valued attribute you get
LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS. w2k8-r2 join to s4 relies on this
error, doing a replace after it sees the error

11 years agos4-repl: added RELAX control and fix transactions
Andrew Tridgell [Tue, 6 Oct 2009 07:55:14 +0000 (18:55 +1100)]
s4-repl: added RELAX control and fix transactions

Added the RELAX control to dsdb_origin_objects_commit(), as it needs
to modify system objects. This patch also fixes the use of ldb
transactions in that function, and fixes a memory leak.

11 years agos4:drs-development Scripts to assist testing of DRS replication with AD
Andrew Bartlett [Mon, 5 Oct 2009 23:59:36 +0000 (10:59 +1100)]
s4:drs-development Scripts to assist testing of DRS replication with AD

These scripts, originally by tridge, allow developers to easily
reproduce the same domain join senerio time after time.

They need documentation, and the template named.conf and zone files
for hosting an AD domain are not provided.  However, I hope to have
the provision script provide these shortly.

They assume a local 'bind' set up to read PREFIX/private/named.conf
(as per the provision instructions).

Ensure you edit the 'vars' file to match your local setup.

Andrew Bartlett

11 years agos4:param Remove duplicate argument to python provision
Andrew Bartlett [Fri, 2 Oct 2009 02:01:33 +0000 (12:01 +1000)]
s4:param Remove duplicate argument to python provision

11 years agos4:provision Remove unused parameters from provision scripts
Andrew Bartlett [Fri, 2 Oct 2009 02:01:00 +0000 (12:01 +1000)]
s4:provision Remove unused parameters from provision scripts

11 years agos4-seftest: skip hold.oplock for SMB2 as well
Andrew Tridgell [Mon, 5 Oct 2009 22:18:53 +0000 (09:18 +1100)]
s4-seftest: skip hold.oplock for SMB2 as well

This test is not designed to be run automatically. It deliberately
blocks forever.

11 years agoRevert "s3: Attempt to fix machine password change"
Volker Lendecke [Mon, 5 Oct 2009 20:14:06 +0000 (22:14 +0200)]
Revert "s3: Attempt to fix machine password change"

This reverts commit 20a8ea91e10af167067cc794a251265aaf489e75.

Ooops, this should not have been committed.

11 years agos3:winbind: Slightly simplify the logic of nss_init(), make it static
Volker Lendecke [Mon, 5 Oct 2009 20:09:01 +0000 (22:09 +0200)]
s3:winbind: Slightly simplify the logic of nss_init(), make it static

11 years agos3:winbind: Fix typos
Volker Lendecke [Mon, 5 Oct 2009 20:00:16 +0000 (22:00 +0200)]
s3:winbind: Fix typos

11 years agos3: Attempt to fix machine password change
Volker Lendecke [Sun, 4 Oct 2009 13:47:33 +0000 (15:47 +0200)]
s3: Attempt to fix machine password change

11 years agoFix bug 6776 - Running overlapping Byte Lock test will core dump Samba daemon.
Jeremy Allison [Mon, 5 Oct 2009 17:27:48 +0000 (10:27 -0700)]
Fix bug 6776 - Running overlapping Byte Lock test will core dump Samba daemon.
Re-write core of POSIX locking logic.
Jeremy.

11 years agolibndr: add int3264 ndr prototype.
Günther Deschner [Mon, 5 Oct 2009 13:10:35 +0000 (15:10 +0200)]
libndr: add int3264 ndr prototype.

Guenther

11 years agos3-net: print error when "net rpc changetrustpw" has failed.
Günther Deschner [Mon, 5 Oct 2009 11:01:53 +0000 (13:01 +0200)]
s3-net: print error when "net rpc changetrustpw" has failed.

Guenther

11 years agos3: Remove a scary error message -- talloc_move can not fail :-)
Volker Lendecke [Sun, 4 Oct 2009 13:19:19 +0000 (15:19 +0200)]
s3: Remove a scary error message -- talloc_move can not fail :-)

Signed-off-by: Günther Deschner <gd@samba.org>
11 years agos3: Fix nonempty blank lines
Volker Lendecke [Sun, 4 Oct 2009 13:13:44 +0000 (15:13 +0200)]
s3: Fix nonempty blank lines

Signed-off-by: Günther Deschner <gd@samba.org>
11 years agolib/tdr: get rid of build warning when using TDR_ALLOC macro.
Günther Deschner [Thu, 1 Oct 2009 23:25:13 +0000 (01:25 +0200)]
lib/tdr: get rid of build warning when using TDR_ALLOC macro.

Guenther

11 years agos3: remove unused PRS_POINTER_CAST macro.
Günther Deschner [Thu, 1 Oct 2009 11:42:29 +0000 (13:42 +0200)]
s3: remove unused PRS_POINTER_CAST macro.

Guenther

11 years agos3: remove unused SYSTEMTIME struct.
Günther Deschner [Thu, 1 Oct 2009 10:52:46 +0000 (12:52 +0200)]
s3: remove unused SYSTEMTIME struct.

Guenther

11 years agos3/s4 common: fix up header file
Matthias Dieter Wallnöfer [Tue, 29 Sep 2009 10:01:15 +0000 (12:01 +0200)]
s3/s4 common: fix up header file

11 years agos3:Makefile: another attempt to fix the wbclient dependency
Björn Jacke [Sat, 3 Oct 2009 23:40:34 +0000 (01:40 +0200)]
s3:Makefile: another attempt to fix the wbclient dependency

in the dependencies we always used a variable that was not jet defined.

11 years agos3:Makefile: another attempt to fix the netapi dependency
Björn Jacke [Sat, 3 Oct 2009 23:33:12 +0000 (01:33 +0200)]
s3:Makefile: another attempt to fix the netapi dependency

in the dependencies we always used a variable that was not jet defined.

11 years agos3:Makefile: another attempt to fix the tdb dependency
Björn Jacke [Sat, 3 Oct 2009 23:30:43 +0000 (01:30 +0200)]
s3:Makefile: another attempt to fix the tdb dependency

in the dependencies we always used a variable that was not jet defined.

11 years agos3:Makefile: another attempt to fix the talloc dependency
Björn Jacke [Sat, 3 Oct 2009 23:20:38 +0000 (01:20 +0200)]
s3:Makefile: another attempt to fix the talloc dependency

in the dependencies we always used a variable that was not jet defined.

11 years agoRevert "s3:Makefile: fix talloc dependencies with static build (2nd try)"
Björn Jacke [Sat, 3 Oct 2009 21:04:12 +0000 (23:04 +0200)]
Revert "s3:Makefile: fix talloc dependencies with static build (2nd try)"

This reverts commit b60d87c20712bd3d83166bd13fe1d2bab0315609.

11 years agoRevert "s3:Makefile: fix libtdb dependencies with static build"
Björn Jacke [Sat, 3 Oct 2009 21:00:37 +0000 (23:00 +0200)]
Revert "s3:Makefile: fix libtdb dependencies with static build"

This reverts commit da15726630b0f796aef52a20d96898e269058456.

11 years agoRevert "s3:Makefile: fix libwbclient dependencies with static build"
Björn Jacke [Sat, 3 Oct 2009 20:53:52 +0000 (22:53 +0200)]
Revert "s3:Makefile: fix libwbclient dependencies with static build"

This reverts commit d7795f2afa3779399fe9e7b4f050d19a412f8bcd.

11 years agoRevert "s3:Makefile: fix libnetapi dependencies with static build"
Björn Jacke [Sat, 3 Oct 2009 20:53:15 +0000 (22:53 +0200)]
Revert "s3:Makefile: fix libnetapi dependencies with static build"

This reverts commit 110897a057af01f3c01a1783e06080b54631ba2d.

11 years agos3:winbind: use wb_fill_pwent in wb_getpwsid
Volker Lendecke [Sat, 3 Oct 2009 15:10:53 +0000 (17:10 +0200)]
s3:winbind: use wb_fill_pwent in wb_getpwsid

11 years agos3:winbind: No point in using strequal to detect a 0-length string
Volker Lendecke [Sat, 3 Oct 2009 15:11:43 +0000 (17:11 +0200)]
s3:winbind: No point in using strequal to detect a 0-length string

11 years agos4:ldap.py - commented out the UTF8 tests (and fixed some deletion DNs)
Matthias Dieter Wallnöfer [Sat, 3 Oct 2009 14:50:34 +0000 (16:50 +0200)]
s4:ldap.py - commented out the UTF8 tests (and fixed some deletion DNs)

11 years agos3:winbind: use talloc_tos() instead of NULL in fillup_pw_field
Volker Lendecke [Sat, 3 Oct 2009 14:43:01 +0000 (16:43 +0200)]
s3:winbind: use talloc_tos() instead of NULL in fillup_pw_field

11 years agos3:winbind: Fix a debug message
Volker Lendecke [Sat, 3 Oct 2009 14:36:11 +0000 (16:36 +0200)]
s3:winbind: Fix a debug message

11 years agos4:ldb_tdb - fix memory leaks
Matthias Dieter Wallnöfer [Sat, 3 Oct 2009 13:37:25 +0000 (15:37 +0200)]
s4:ldb_tdb - fix memory leaks

11 years agoheimdal kerberos - fix memory leak (free the plugin list always - not only in error...
Matthias Dieter Wallnöfer [Sat, 3 Oct 2009 13:36:44 +0000 (15:36 +0200)]
heimdal kerberos - fix memory leak (free the plugin list always - not only in error cases)

11 years agos4:objectclass - Free unused memory from responses
Matthias Dieter Wallnöfer [Sat, 3 Oct 2009 13:08:19 +0000 (15:08 +0200)]
s4:objectclass - Free unused memory from responses

11 years agos4:schema_inferiors - Fix wrong check
Matthias Dieter Wallnöfer [Sat, 3 Oct 2009 13:08:00 +0000 (15:08 +0200)]
s4:schema_inferiors - Fix wrong check

11 years agos3: Make default_[static|shared]_modules a bit more readable
Volker Lendecke [Sat, 3 Oct 2009 12:21:13 +0000 (14:21 +0200)]
s3: Make default_[static|shared]_modules a bit more readable

11 years agos4:ldb.h - add constant for LDAP EXOP password change
Matthias Dieter Wallnöfer [Thu, 1 Oct 2009 09:37:01 +0000 (11:37 +0200)]
s4:ldb.h - add constant for LDAP EXOP password change

Also enhance some other comments.

11 years agoheimdal - fix various warnings
Matthias Dieter Wallnöfer [Tue, 29 Sep 2009 09:43:17 +0000 (11:43 +0200)]
heimdal - fix various warnings

- Shadowed variables
- "const" related warnings
- Parameter names which shadow function declarations
- Non-void functions which have no return value

(patch also ported upstream)

11 years agos4:ldap.py - add tests for valid parent and RDN
Matthias Dieter Wallnöfer [Sat, 3 Oct 2009 09:37:30 +0000 (11:37 +0200)]
s4:ldap.py - add tests for valid parent and RDN

11 years agos4:dsdb Use possibleInferiors to restrict creation of child objects
Andrew Bartlett [Thu, 24 Sep 2009 22:14:49 +0000 (15:14 -0700)]
s4:dsdb Use possibleInferiors to restrict creation of child objects

This also uses systemPossibleInferiors when the 'relax' control is
specified, which is done by the provision.

Andrew Bartlett

11 years agos4:dsdb add systemPossibleInferiors to schema code
Andrew Bartlett [Thu, 24 Sep 2009 22:12:49 +0000 (15:12 -0700)]
s4:dsdb add systemPossibleInferiors to schema code

This allows us to figure out what the system can add, which will not
be in possibleInferiors due to the systemOnly flag.

Andrew Bartlett

11 years agos4:dsdb Add objectClass and RDN constraints to objectClass module
Andrew Bartlett [Thu, 24 Sep 2009 04:16:42 +0000 (21:16 -0700)]
s4:dsdb Add objectClass and RDN constraints to objectClass module

These additional constraints are applied, found by the Microsoft testsuite.

 - When the parent is not present, we now return 'NO_SUCH_OBJECT'.
 - Restrict the choice of RDN to the correct one per the schema
 - Honour the allowedChildClasses attribute from the parent's objectClass.

Andrew Bartlett

11 years agondr: rebuild lsa IDL after recent change
Andrew Tridgell [Sat, 3 Oct 2009 09:02:27 +0000 (19:02 +1000)]
ndr: rebuild lsa IDL after recent change

11 years agos4:ldap.py - add a test for the "systemOnly" classes
Matthias Dieter Wallnöfer [Sat, 3 Oct 2009 08:57:14 +0000 (10:57 +0200)]
s4:ldap.py - add a test for the "systemOnly" classes

11 years agos4:dsdb Don't allow creation of systemOnly objectclasses
Matthias Dieter Wallnöfer [Sat, 3 Oct 2009 08:52:53 +0000 (10:52 +0200)]
s4:dsdb Don't allow creation of systemOnly objectclasses

(except as part of the provision, which specifies the 'relax' control)

Andrew Bartlett

11 years agos4:rdn_name - fix up the rename operation
Matthias Dieter Wallnöfer [Sat, 3 Oct 2009 08:36:41 +0000 (10:36 +0200)]
s4:rdn_name - fix up the rename operation

A function call was wrong ("ldb_request" rathen than "ldb_next_request").

11 years agoidl: some lsa vars are uint3264
Andrew Tridgell [Sat, 3 Oct 2009 08:13:50 +0000 (18:13 +1000)]
idl: some lsa vars are uint3264

11 years agopidl: added int3264 as a base type
Andrew Tridgell [Sat, 3 Oct 2009 08:13:25 +0000 (18:13 +1000)]
pidl: added int3264 as a base type

This is the type used for a variable that is 32 bits for NDR32 and 64
bits for NDR64

11 years agos3:Makefile: minor clean up
Björn Jacke [Fri, 2 Oct 2009 22:19:30 +0000 (00:19 +0200)]
s3:Makefile: minor clean up

11 years agos3:Makefile: fix libnetapi dependencies with static build
Björn Jacke [Fri, 2 Oct 2009 22:15:19 +0000 (00:15 +0200)]
s3:Makefile: fix libnetapi dependencies with static build

analogical to previous libtalloc fix

11 years agos3:Makefile: eventlogadm dependency cleanup
Björn Jacke [Fri, 2 Oct 2009 21:08:11 +0000 (23:08 +0200)]
s3:Makefile: eventlogadm dependency cleanup

no need to link against popt lib

11 years agos3:Makefile: fix libwbclient dependencies with static build
Björn Jacke [Fri, 2 Oct 2009 21:05:27 +0000 (23:05 +0200)]
s3:Makefile: fix libwbclient dependencies with static build

analogical to previous libtalloc fix

11 years agos3:Makefile: fix libtdb dependencies with static build
Björn Jacke [Fri, 2 Oct 2009 21:01:18 +0000 (23:01 +0200)]
s3:Makefile: fix libtdb dependencies with static build

analogical to previous libtalloc fix

11 years agos3:Makefile: fix talloc dependencies with static build (2nd try)
Björn Jacke [Fri, 2 Oct 2009 20:43:14 +0000 (22:43 +0200)]
s3:Makefile: fix talloc dependencies with static build (2nd try)

When configure options --with-libtalloc=no --enable-shared-libs=no are used,
LIBTALLOC_TARGET stays empty. Actually LIBTALLOC_TARGET which is only used for
Makefile dependencies is obsolete as LIBTALLOC contains exactly the targets
that we depend on, libtalloc finally is the target to depend on.

11 years agoRevert "s3:Makefile: fix talloc dependencies with static build"
Björn Jacke [Fri, 2 Oct 2009 20:00:50 +0000 (22:00 +0200)]
Revert "s3:Makefile: fix talloc dependencies with static build"

This reverts commit 2af2334522bc3d2c44bdcf7c9f1e80d2bcbf2024.

a more correct way to fix the libtalloc dependencies follows

11 years agos3:Makefile: libsmbsharemode dependency cleanup
Björn Jacke [Fri, 2 Oct 2009 00:18:50 +0000 (02:18 +0200)]
s3:Makefile: libsmbsharemode dependency cleanup

no need to link against ldap and krb5 libs

11 years agos3:Makefile: net utility dependency cleanup
Björn Jacke [Fri, 2 Oct 2009 00:28:56 +0000 (02:28 +0200)]
s3:Makefile: net utility dependency cleanup

no need to link against iniparser lib

11 years agos3:configure: use --aѕ-needed linker option when supported
Björn Jacke [Fri, 2 Oct 2009 17:53:53 +0000 (19:53 +0200)]
s3:configure: use --aѕ-needed linker option when supported

Based on a patch from Andreas Schneider but modified that --aѕ-needed is also
used when own libs are not build shared (--enable-shared). Also change order of
options so that user supplied LDFLAGS are put *after* the automatic --aѕ-needed
flag. This way it's pollible to force not use as-needed by setting LDFLAGS
environment variable to "-Wl,--no-as-needed".

11 years agos3:doc: add some detail about lanman auth parameter
Björn Jacke [Fri, 2 Oct 2009 15:55:50 +0000 (17:55 +0200)]
s3:doc: add some detail about lanman auth parameter

add interesting detail: lm passwords will be removed from databaѕe with
lanman auth = no

11 years agoRevert "s4:LDB/LDAP - Re-allow renames"
Matthias Dieter Wallnöfer [Fri, 2 Oct 2009 22:06:41 +0000 (00:06 +0200)]
Revert "s4:LDB/LDAP - Re-allow renames"

This reverts commit 767fce6fccf484b547219abd5e6abc941eacaf92.

Simo pointed out that the patch generates race conditions. We need to solve this
using a new control.

11 years agos4:repl_meta_data - various
Matthias Dieter Wallnöfer [Fri, 2 Oct 2009 21:26:35 +0000 (23:26 +0200)]
s4:repl_meta_data - various

- Add more "talloc_free"s and right error values where needed
- Add a pre-lookup for entries before searching for metadata attribute
  (also suggested by TODO list)
- Now the most part of "ldap.py" works again

11 years agoRemove lots of duplicate code and move it into one
Jeremy Allison [Fri, 2 Oct 2009 20:45:38 +0000 (13:45 -0700)]
Remove lots of duplicate code and move it into one
function vfs_stat_fsp(). Stops code looking at fsp->posix_open
except for exceptional circumstances.
Jeremy.

11 years agos4:ldap.py - add a very special rename test (with invalid - empty RDN)
Matthias Dieter Wallnöfer [Fri, 2 Oct 2009 19:26:35 +0000 (21:26 +0200)]
s4:ldap.py - add a very special rename test (with invalid - empty RDN)

11 years agos4:ldb_ildap - Don't segfault on a empty RDN
Matthias Dieter Wallnöfer [Fri, 2 Oct 2009 19:26:12 +0000 (21:26 +0200)]
s4:ldb_ildap - Don't segfault on a empty RDN

11 years agos4:LDB/LDAP - Re-allow renames
Matthias Dieter Wallnöfer [Fri, 2 Oct 2009 19:23:23 +0000 (21:23 +0200)]
s4:LDB/LDAP - Re-allow renames

The main problem is that the "rdn_name" module launches on a rename request also
a modification one with the "special attributes" which can't be changed directly.
An introduced flag helps to bypass the restriction.

11 years agoMissed one VFS_STAT -> VFS_LSTAT
Jeremy Allison [Fri, 2 Oct 2009 18:07:17 +0000 (11:07 -0700)]
Missed one VFS_STAT -> VFS_LSTAT
Jeremy.

11 years agoFix more use of VFS_STAT when posix pathnames selected.
Jeremy Allison [Fri, 2 Oct 2009 18:05:03 +0000 (11:05 -0700)]
Fix more use of VFS_STAT when posix pathnames selected.
Jeremy.

11 years agos4:ldap.py - major enhancements
Matthias Dieter Wallnöfer [Fri, 2 Oct 2009 16:31:38 +0000 (18:31 +0200)]
s4:ldap.py - major enhancements

- Clean up and reorder it a bit
- Test which adds invalid attributes
- Test which makes sure that the 'distinguishedName' attribute cannot be modified
- Test which makes sure that we cannot change the RDN/'name' attribute through a modify request