samba.git
12 years agoMerge branch 'v4-0-local' of git://git.id10ts.net/samba into 4-0-local
Andrew Bartlett [Sat, 29 Mar 2008 06:19:20 +0000 (17:19 +1100)]
Merge branch 'v4-0-local' of git://git.id10ts.net/samba into 4-0-local
(This used to be commit ee6539e4cab8882faafff17f458df91cba352f8e)

12 years agoRework 'compleated' message in provision to be more useful.
Andrew Bartlett [Sat, 29 Mar 2008 06:17:56 +0000 (17:17 +1100)]
Rework 'compleated' message in provision to be more useful.

In particular, this should draw attention to accidential 'standalone'
server provisions and therefore cause less frustration.

Andrew Bartlett
(This used to be commit e906ae041a2b589ffceff97b74f7c4b01386382a)

12 years agohowto: Simplify the commands needed and remove reference to removed script.
Andrew Kroeger [Sat, 29 Mar 2008 05:07:32 +0000 (00:07 -0500)]
howto: Simplify the commands needed and remove reference to removed script.
(This used to be commit 6e25d77be21b90c3b24cca55b08bdc39b256c381)

12 years agoMakefile: Allow "make" with no arguments to build all that will be installed.
Andrew Kroeger [Sat, 29 Mar 2008 05:06:02 +0000 (00:06 -0500)]
Makefile: Allow "make" with no arguments to build all that will be installed.
(This used to be commit 982acd6f80f009d28ff1e63abd2151de0165623e)

12 years agohowto: Clarify differences when working from a tarball instead of Git.
Andrew Kroeger [Sat, 29 Mar 2008 04:18:25 +0000 (23:18 -0500)]
howto: Clarify differences when working from a tarball instead of Git.
(This used to be commit 11cbefe307a5d7b25dc72886a0666e2523c47488)

12 years agomkrelease: Add checks to ensure run from top-level directory of repository.
Andrew Kroeger [Sat, 29 Mar 2008 03:53:01 +0000 (22:53 -0500)]
mkrelease: Add checks to ensure run from top-level directory of repository.
(This used to be commit 7d4c02fdfc9ca1a48a0a1e4672765636d4c4a717)

12 years agoAdd a few more safety catches to the mkrelease.sh script.
Andrew Bartlett [Sat, 29 Mar 2008 03:37:09 +0000 (14:37 +1100)]
Add a few more safety catches to the mkrelease.sh script.

Andrew Bartlett
(This used to be commit 96eb3f1691fbc8808e3cb80a45283fb7dff53826)

12 years agoDon't leave release trees hanging around
Andrew Bartlett [Sat, 29 Mar 2008 03:23:43 +0000 (14:23 +1100)]
Don't leave release trees hanging around

Andrew Bartlett
(This used to be commit e06911de3326fcbd751932d6ab1b9d4644619135)

12 years agoMerge branch 'v4-0-test' of git://git.id10ts.net/samba into 4-0-local
Andrew Bartlett [Sat, 29 Mar 2008 03:14:25 +0000 (14:14 +1100)]
Merge branch 'v4-0-test' of git://git.id10ts.net/samba into 4-0-local
(This used to be commit f39af7c2c35abb794e1dc1a496c1960221f006f2)

12 years agomkrelease: Update to work with Git instead of SVN.
Andrew Kroeger [Sat, 29 Mar 2008 02:55:09 +0000 (21:55 -0500)]
mkrelease: Update to work with Git instead of SVN.
(This used to be commit 66efff41a72190ad73512cbf08fa68b1b44406b9)

12 years agoFix more valgrind issues.
Andrew Bartlett [Sat, 29 Mar 2008 02:32:15 +0000 (13:32 +1100)]
Fix more valgrind issues.

This passes down the timeout more consistantly, and ensures that no
matter how the modules screw up, we don't free() the memory we are
going to write into the ASN1 packet until we actually write it out.

Andrew Bartlett
(This used to be commit eefd46289b90967ce6b4cd385fb1f7e1d6f9b343)

12 years agoFix some valgrind issues.
Andrew Bartlett [Sat, 29 Mar 2008 00:18:00 +0000 (11:18 +1100)]
Fix some valgrind issues.

These small changes seem to fix some of the early issues in 'make
valgrindtest'

Previously, the subtree_delete code didn't pass on the timeout,
leaving it uninitialised.

The ldap_server/ldap_backend.c change tidies up the talloc hierarchy a
bit.

Andrew Bartlett
(This used to be commit 95314f29a9cf83db71d37e68728bfb5009fce60d)

12 years agoFinally found the magic string to skip the python registry tests.
Andrew Bartlett [Fri, 28 Mar 2008 22:43:58 +0000 (09:43 +1100)]
Finally found the magic string to skip the python registry tests.

(I really do wish it was clear what strings should be used in this file)

Until these tests authenticate, we can't pass against Samba4, and they
never could pass against AD.

Andrew Bartlett
(This used to be commit 6e863e5fecf83f95ddc5b0149cf7093e2a6a1b07)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Fri, 28 Mar 2008 11:04:52 +0000 (22:04 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 764b7879d23bfa413a6747226f377ce2eaeaea26)

12 years agoFix and test python scripts and kerberos
Andrew Bartlett [Fri, 28 Mar 2008 10:57:15 +0000 (21:57 +1100)]
Fix and test python scripts and kerberos

This fixes up the python credentials interface in a number of areas,
with the aim of supporting '-k yes' as a command line option.  (This
enables the use of kerberos).

As such, I've had to change the get_credentials call to take a
loadparm context, so that the credentials can be initialised
correctly.

The test_kinit script has been modified to prove that this continues
to work, as well as to provide greater code coverage of the kerberos
paths.

Andrew Bartlett
(This used to be commit 727ef40c2b56910028ef3c1092b8eab1bfa6ce63)

12 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into v4-0-local
Andrew Kroeger [Fri, 28 Mar 2008 10:43:52 +0000 (05:43 -0500)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into v4-0-local
(This used to be commit 9b4449b46c0404b3c694ac9c592be63185c366b7)

12 years agotorture: fix compiler warnings
Stefan Metzmacher [Fri, 28 Mar 2008 08:40:08 +0000 (09:40 +0100)]
torture: fix compiler warnings

metze
(This used to be commit 326ae6ce9c8a6f5800d5ecb4a2bfdfc32336797d)

12 years agolibcli/security: fix compiler warnings
Stefan Metzmacher [Fri, 28 Mar 2008 08:39:32 +0000 (09:39 +0100)]
libcli/security: fix compiler warnings

metze
(This used to be commit 91dd223bd432f0461c5c85259b4e48a1b7f83af1)

12 years agocldap_server: fix compiler warning
Stefan Metzmacher [Fri, 28 Mar 2008 08:39:03 +0000 (09:39 +0100)]
cldap_server: fix compiler warning

metze
(This used to be commit a6cd4e7509dbd1aef4873c7c0eef2a13bc907880)

12 years agolibreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for now
Stefan Metzmacher [Fri, 28 Mar 2008 06:56:20 +0000 (07:56 +0100)]
libreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for now

This should fix the build on solaris.
Later this needs better fixing...

metze
(This used to be commit 89b7955733c34e9699a3b43ee54de92cb9469b90)

12 years agoConvert some more files to GPLv3.
Andrew Kroeger [Fri, 28 Mar 2008 06:08:49 +0000 (01:08 -0500)]
Convert some more files to GPLv3.
(This used to be commit ebe5e8399422eb7e2ff4deb546338823e2718907)

12 years agoAdd tool for enabling accounts
Andrew Bartlett [Thu, 27 Mar 2008 16:46:23 +0000 (03:46 +1100)]
Add tool for enabling accounts
(This used to be commit 2e14b4ea64ba7e223f29b5b535b1b1be326f711c)

12 years agoRemove references to the new SWAT.
Andrew Bartlett [Fri, 28 Mar 2008 02:56:47 +0000 (13:56 +1100)]
Remove references to the new SWAT.

Andrew Bartlett
(This used to be commit ac11c018715a2e59af3a716f8fabe8aeb667e660)

12 years agoMerge branch 'v4-0-local' of git://git.id10ts.net/samba into 4-0-local
Andrew Bartlett [Fri, 28 Mar 2008 02:39:59 +0000 (13:39 +1100)]
Merge branch 'v4-0-local' of git://git.id10ts.net/samba into 4-0-local
(This used to be commit 7d1e922a6879110b7953de7560cc4b51ff36ea10)

12 years agoWHATSNEW: Update information in preparation of Alpha3.
Andrew Kroeger [Fri, 28 Mar 2008 01:30:22 +0000 (20:30 -0500)]
WHATSNEW: Update information in preparation of Alpha3.

- Update the listing of prior releases.
- Indicate that python is now required.
- Provide additional information on some of the more user-visible changes.
(This used to be commit 68f0b4f929748dad3641fd84ee9eea0b109f898b)

12 years agoMake the setup/newuser and setup/setpassword scripts actually work...
Andrew Bartlett [Fri, 28 Mar 2008 01:08:54 +0000 (12:08 +1100)]
Make the setup/newuser and setup/setpassword scripts actually work...

These need a testsuite, but this will come soon.

Andrew Bartlett
(This used to be commit fbcaa622bd1929399e32326349e96b6676a49b96)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Fri, 28 Mar 2008 00:10:19 +0000 (11:10 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit ddf9d6ef70f0a6b7da420f772b34962fb25d761a)

12 years agoAdd change about account expiry
Andrew Bartlett [Fri, 28 Mar 2008 00:09:34 +0000 (11:09 +1100)]
Add change about account expiry
(This used to be commit 092592233fe02d0c05933bafd52d790a9561cf9b)

12 years agoMerge branch 'v4-0-local' of git://git.id10ts.net/samba into v4-0-test
Jelmer Vernooij [Fri, 28 Mar 2008 00:00:48 +0000 (01:00 +0100)]
Merge branch 'v4-0-local' of git://git.id10ts.net/samba into v4-0-test
(This used to be commit b6c61bee649734f6000fbf3fe3736d8c82155ac9)

12 years agoNo longer install SWAT files
Andrew Bartlett [Thu, 27 Mar 2008 23:39:22 +0000 (10:39 +1100)]
No longer install SWAT files

Andrew Bartlett
(This used to be commit cd275862c65542ea1118cfb76d7d1b082427098a)

12 years agoDon't specify what should be a default option in the generated smb.conf
Andrew Bartlett [Thu, 27 Mar 2008 23:38:12 +0000 (10:38 +1100)]
Don't specify what should be a default option in the generated smb.conf

Instead, sub in "", so that the default continued to come from the code.

Andrew Bartlett
(This used to be commit b1829da8f75175fcc569a3a9195f2358731055a9)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Thu, 27 Mar 2008 23:19:21 +0000 (10:19 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 59d8d17093efac3a177a032f2e121ea6f43a96c8)

12 years agoFix 'oplocks' in loadparm.
Andrew Bartlett [Thu, 27 Mar 2008 23:18:06 +0000 (10:18 +1100)]
Fix 'oplocks' in loadparm.

I forgot one more place where I must specify the new config option.  I
wish this was more templated...

Andrew Bartlett
(This used to be commit 5a740f4daa79cf1b5fc9f24e424ae50e10932f4b)

12 years agoprovision: Increase max NetBIOS name length from 13 to 15.
Andrew Kroeger [Thu, 27 Mar 2008 21:30:18 +0000 (16:30 -0500)]
provision: Increase max NetBIOS name length from 13 to 15.

Issue originally reported by user Julsa-FR on IRC.
(This used to be commit ee9ad77009ef5e36655a49c41730a4a963ba9d43)

12 years agoRemove define that appears to cause configure test breakage on Julien's machine.
Jelmer Vernooij [Thu, 27 Mar 2008 21:26:37 +0000 (22:26 +0100)]
Remove define that appears to cause configure test breakage on Julien's machine.
(This used to be commit f47df5761571dd5c36789fb2e225a1125ca0e8f7)

12 years agoprovision: Initialize uninitialized variables if "targetdir" is not
Kai Blin [Thu, 27 Mar 2008 16:49:56 +0000 (17:49 +0100)]
provision: Initialize uninitialized variables if "targetdir" is not
defined and there is no smb.conf file
(This used to be commit 19c29f473883be0a17fa740de9feb226f347df4a)

12 years agolibreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.c
Michael Adam [Thu, 27 Mar 2008 10:26:33 +0000 (11:26 +0100)]
libreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.c

This is not a proper bug but the code is clearer now
and we are tracking failure of open separate from that of close.

Michael
(This used to be commit 4ae4692bc6c6da15483a6f4a3363cdc23121efc7)

12 years agoFix how we initialise the oplocks parameter.
Andrew Bartlett [Thu, 27 Mar 2008 10:00:04 +0000 (21:00 +1100)]
Fix how we initialise the oplocks parameter.

Andrew Bartlett
(This used to be commit 08ec91958d5d773dfc805869685094da749470e8)

12 years agoActually call into lp_oplocks() in share_classic backend.
Andrew Bartlett [Thu, 27 Mar 2008 09:50:39 +0000 (20:50 +1100)]
Actually call into lp_oplocks() in share_classic backend.

Andrew Bartlett
(This used to be commit 2c18482b1983b4e2764beccc20f08e9b3074816a)

12 years agoFix references to ntvfs share config
Andrew Bartlett [Thu, 27 Mar 2008 09:40:40 +0000 (20:40 +1100)]
Fix references to ntvfs share config

Andrew Bartlett
(This used to be commit 4e4152dfd70145a7a00bc42effcd07b607204926)

12 years agoMerge with metze's change for oplocks to be on by default
Andrew Bartlett [Thu, 27 Mar 2008 09:38:36 +0000 (20:38 +1100)]
Merge ... metze's change for oplocks to be on by default

Andrew Bartlett
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local

Conflicts:

source/ntvfs/common/opendb_tdb.c
(This used to be commit 7c7a1a2b1f69cb4623c8832b732e8a1343ebd109)

12 years agoMake oplocks a per-share option.
Andrew Bartlett [Thu, 27 Mar 2008 09:32:02 +0000 (20:32 +1100)]
Make oplocks a per-share option.

This even goes via the share options system (a very odd layer of indirection).

Andrew Bartlett
(This used to be commit f2c65f9907760b8852b70c53637388f08751ba88)

12 years agoselfteset: oplocks are enabled by default now
Stefan Metzmacher [Thu, 27 Mar 2008 09:12:19 +0000 (10:12 +0100)]
selfteset: oplocks are enabled by default now

metze
(This used to be commit 9342c4f5ff2be16c9771fd07fbec87076af2e681)

12 years agoopendb_tdb: enable oplocks per default
Stefan Metzmacher [Thu, 27 Mar 2008 09:11:48 +0000 (10:11 +0100)]
opendb_tdb: enable oplocks per default

metze
(This used to be commit 225a9852eeee66f22a4135a660f18b70666c1c5f)

12 years agoPrepare for Samba4 alpha3.
Andrew Bartlett [Thu, 27 Mar 2008 06:34:25 +0000 (17:34 +1100)]
Prepare for Samba4 alpha3.

I need help with filling this list of changes out.

Andrew Bartlett
(This used to be commit 990476261c16f2f7044d88f99e4983f559a637f8)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Wed, 26 Mar 2008 04:42:43 +0000 (15:42 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit e1095673089d12e11a4e17a8d6c5b756cc9f427b)

12 years agoRemove old js versions of newuser and provision.
Andrew Bartlett [Wed, 26 Mar 2008 04:42:20 +0000 (15:42 +1100)]
Remove old js versions of newuser and provision.

Andrew Bartlett
(This used to be commit 861a85985d2d27f58cb8fa2fef0d445c7dac94c6)

12 years agoClean up the ldb python bindings to be 64 bit safe.
Andrew Bartlett [Wed, 26 Mar 2008 04:18:17 +0000 (15:18 +1100)]
Clean up the ldb python bindings to be 64 bit safe.

Thanks in particular to arkanes and KirkMcDonald on #python for their
assistance, suggesting breaking the DN check.

I eventually found it while trying to cut down on the number of gcc
warnings, which is why we also add printf annotations.

Andrew Bartlett
(This used to be commit ba30e82d4efcba23c49622de43d3d6fc9c800e35)

12 years agoAdd some more header properties as inline comments to the generated samba3 client.
Günther Deschner [Tue, 25 Mar 2008 16:38:27 +0000 (17:38 +0100)]
Add some more header properties as inline comments to the generated samba3 client.

Guenther
(This used to be commit 8ca4b0b0942564afa70b2e8a6d67d65ea8b75e43)

12 years agoRemove pointless cast
Andrew Bartlett [Tue, 25 Mar 2008 05:36:13 +0000 (16:36 +1100)]
Remove pointless cast
(This used to be commit 9a1466abbd4115f4a57d794006aca29aa0184ced)

12 years agoRemove useless extra argument to samdb_result_account_expires().
Andrew Bartlett [Tue, 25 Mar 2008 04:25:13 +0000 (15:25 +1100)]
Remove useless extra argument to samdb_result_account_expires().

Andrew Bartlett
(This used to be commit bc607c334ff86624b891886a6f874da2bcff113e)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Mon, 24 Mar 2008 23:29:35 +0000 (10:29 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 3903ef9168a18d34517c78536d34e147a9bc01cd)

12 years agoAdd my copyright
Volker Lendecke [Fri, 21 Mar 2008 09:35:54 +0000 (10:35 +0100)]
Add my copyright

If I remember it right and when I look at the git log, then this way to do the
async functions was designed by me.
(This used to be commit 8d44f997c88b97fc40a88eebd50b6df720c0c10f)

12 years agoProve that a setuserinfo level 25 does set the pwdlastset field
Volker Lendecke [Thu, 20 Mar 2008 20:59:46 +0000 (21:59 +0100)]
Prove that a setuserinfo level 25 does set the pwdlastset field

Very likely this is not the full story, but as it happens so often this proof
is needed to fix a direct s3 bug.
(This used to be commit 16b4a3685bf59faee22882ee14ddb95918f64e22)

12 years agoAdd the workstation to the anon sessetup credentials
Volker Lendecke [Thu, 20 Mar 2008 20:11:49 +0000 (21:11 +0100)]
Add the workstation to the anon sessetup credentials

Without this patch the RPC-SAMBA3SESSIONKEY against W2k3 gives
INVALID_PARAMETER for the anonymous session setup
(This used to be commit eb459be878e98cb58c6b5779584e187cdcbf4f91)

12 years agoFix a warning
Volker Lendecke [Thu, 20 Mar 2008 20:10:39 +0000 (21:10 +0100)]
Fix a warning

Without this patch I get
./libcli/security/proto.h:45: warning: 'struct auth_session_info' declared inside parameter list
(This used to be commit 078a6fdb3f8e389102a07b81b6b8d87fa8bf17c3)

12 years agoExplain why this attribute should be skipped.
Andrew Bartlett [Thu, 20 Mar 2008 04:14:49 +0000 (15:14 +1100)]
Explain why this attribute should be skipped.

Andrew Bartlett
(This used to be commit 7503f93f2f07f81ada1b5d9ec8fdd3d5509376ae)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Thu, 20 Mar 2008 02:25:05 +0000 (13:25 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 7c4356084a389c3a4edc16f06906ce6127a3a59b)

12 years agoMore kludge ACLs!
Andrew Bartlett [Thu, 20 Mar 2008 01:12:10 +0000 (12:12 +1100)]
More kludge ACLs!

Rather than killing off the nasty 'kludge ACLs' stuff, this patch
extends it, to ensure that LSA secrets and the registry are also
protected.

Andrew Bartlett
(This used to be commit 2f2b110fb870132099bad1d4c16ed8962affb3ce)

12 years agontlm_auth: Improve compliance to the Squid helper protocol.
Kai Blin [Wed, 19 Mar 2008 23:42:42 +0000 (00:42 +0100)]
ntlm_auth: Improve compliance to the Squid helper protocol.

This fixes bug #4235 for Samba4.
(This used to be commit b6bb7621053bccc9d06b1b2ee9f71b1b1acf3b70)

12 years agoExtend the ldap.js test to prove faults with the LDAP backend.
Andrew Bartlett [Wed, 19 Mar 2008 01:12:24 +0000 (12:12 +1100)]
Extend the ldap.js test to prove faults with the LDAP backend.

Try to provide more information to see why OpenLDAP isn't quite up to
being a Samba4 Backend.

Andrew Bartlett
(This used to be commit 89458c7d8b46cf5cf6c0dc514bb7e658f48c2adf)

12 years agoIndent
Andrew Bartlett [Wed, 19 Mar 2008 01:06:37 +0000 (12:06 +1100)]
Indent

Andrew Bartlett
(This used to be commit d2b5f40d80008ca3269118915409333755b6eac3)

12 years agoRemove unused variable.
Andrew Bartlett [Wed, 19 Mar 2008 00:15:04 +0000 (11:15 +1100)]
Remove unused variable.
(This used to be commit 1de21f5fdd9e377801af25b7ce461bdf7a16e1de)

12 years agoMore safety around ldb_dn C functions in python bindings.
Andrew Bartlett [Wed, 19 Mar 2008 00:11:55 +0000 (11:11 +1100)]
More safety around ldb_dn C functions in python bindings.

Ensure that the ldb python binding 'TypeError dn not set' errors are
not in the SWIG wrapper's use of ldb functions, put some more error
checks in.

Andrew Bartlett
(This used to be commit 8d4c831184cff8bca85daf6cc711b189b5cf3a47)

12 years agoSupply HDB_DB_DIR macro
Andrew Bartlett [Wed, 19 Mar 2008 00:10:19 +0000 (11:10 +1100)]
Supply HDB_DB_DIR macro

While we don't use the default HDB directories, the code needs this
macro defined.

Andrew Bartlett
(This used to be commit b5dbdef1580a58c0f208e83491946391cd08e570)

12 years agoMerge branch 'v4-0-logon' of git://git.id10ts.net/samba into 4-0-local
Andrew Bartlett [Wed, 19 Mar 2008 00:04:42 +0000 (11:04 +1100)]
Merge branch 'v4-0-logon' of git://git.id10ts.net/samba into 4-0-local
(This used to be commit 8252b51850f108aa8f43ec25c752a411c32f9764)

12 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Tue, 18 Mar 2008 23:18:35 +0000 (10:18 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 400c16e7004bc3a881bb6efb99a273cdac87f70c)

12 years agoMerge lorikeet-heimdal -r 787 into Samba4 tree.
Andrew Bartlett [Tue, 18 Mar 2008 23:17:42 +0000 (10:17 +1100)]
Merge lorikeet-heimdal -r 787 into Samba4 tree.

Andrew Bartlett
(This used to be commit d88b530522d3cef67c24422bd5182fb875d87ee2)

12 years agolib/util: use LIBREPLACE_NETWORK as EXT_NSL doesn't exist anymore
Stefan Metzmacher [Tue, 18 Mar 2008 17:03:18 +0000 (18:03 +0100)]
lib/util: use LIBREPLACE_NETWORK as EXT_NSL doesn't exist anymore

metze
(This used to be commit b7dad8674a3aaa27bc1103a83be75434d413239b)

12 years agolibndr: EXT_NSL doesn't exist anymore, but it wasn't needed anyway
Stefan Metzmacher [Tue, 18 Mar 2008 17:02:23 +0000 (18:02 +0100)]
libndr: EXT_NSL doesn't exist anymore, but it wasn't needed anyway

metze
(This used to be commit 33347928e17dead3485de7dcfb0915da4638da05)

12 years agosocket_wrapper: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist...
Stefan Metzmacher [Tue, 18 Mar 2008 16:59:31 +0000 (17:59 +0100)]
socket_wrapper: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist anymore

metze
(This used to be commit 1dd8e3775686badfd35dca23d291af93d8cf5695)

12 years agoheimdal_build: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist...
Stefan Metzmacher [Tue, 18 Mar 2008 16:58:36 +0000 (17:58 +0100)]
heimdal_build: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist anymore

metze
(This used to be commit 0fb3d246212e2e7d68c1276dff1628ece9794283)

12 years agolibreplace: replace.c does not need system/network.h anymore.
Michael Adam [Tue, 18 Mar 2008 16:50:23 +0000 (17:50 +0100)]
libreplace: replace.c does not need system/network.h anymore.

Michael
(This used to be commit 2d3c2f34f33338ff422047dae9cc262522689328)

12 years agolibreplace: move rep_socketpair() to its own module.
Michael Adam [Tue, 18 Mar 2008 16:20:47 +0000 (17:20 +0100)]
libreplace: move rep_socketpair() to its own module.

Prototype is now in system/network.h,
implementation in socketpair.c, and
check in socketpair.m4.

Now the last networking function has vanished from replace.c.

Michael
(This used to be commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)

12 years agoldb: not every shell supports '==' so use '='
Stefan Metzmacher [Tue, 18 Mar 2008 15:53:21 +0000 (16:53 +0100)]
ldb: not every shell supports '==' so use '='

metze
(This used to be commit b5eeaf9b27e0116e57825b664642d2b5cfd895f0)

12 years agoFix macro name (no 's' in ifr_addr).
Gerald W. Carter [Thu, 28 Feb 2008 17:58:05 +0000 (11:58 -0600)]
Fix macro name (no 's' in ifr_addr).

Interface detection on Solaris still failing due to items pointed out here:
http://lists.samba.org/archive/samba-technical/2007-November/056701.html
(cherry picked from commit 37c87acc9d48c1fb5d4806374ca8e992300db1ff)
(This used to be commit 5757d8dfe9e6cf7b662acdf5c3d825f0021822c0)

12 years agoFix Coverity ID 554
Volker Lendecke [Sat, 15 Mar 2008 21:27:05 +0000 (22:27 +0100)]
Fix Coverity ID 554
(cherry picked from commit 471b1b0c58bc2def5d2fe9d98401def34724d447)
(This used to be commit effda48a2670325fed56e158539417c6f95381b8)

12 years agoCheck the return value of fgets
Volker Lendecke [Sat, 23 Feb 2008 09:42:43 +0000 (10:42 +0100)]
Check the return value of fgets
(cherry picked from commit b8aaa9a69fd6217ce0387ef8e84f316706186d70)
(This used to be commit 8f58d39c0c621e9da85308d721a146352cc4939e)

12 years agolibreplace: remove duplicate entry of inet_ntoa from README.
Michael Adam [Tue, 18 Mar 2008 15:31:15 +0000 (16:31 +0100)]
libreplace: remove duplicate entry of inet_ntoa from README.

Michael
(This used to be commit 98ee8c84300757d778733a458c6ca3e6022b40ea)

12 years agolibreplace: remove trailing white spaces.
Michael Adam [Tue, 18 Mar 2008 12:10:22 +0000 (13:10 +0100)]
libreplace: remove trailing white spaces.

Michael
(This used to be commit 1f9ca7eed965904f67cf78fbac007432b8a057fd)

12 years agolibreplace: replace inet_ntoa() when it is missing
Michael Adam [Tue, 18 Mar 2008 11:16:47 +0000 (12:16 +0100)]
libreplace: replace inet_ntoa() when it is missing

...not only replace it when it is broken.

This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.

NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.

So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.

Michael
(This used to be commit 974c0c45ad42644348e0b55454715b12158f1028)

12 years agolibreplace: put inet_aton.c under LGPL instead of GPL.
Michael Adam [Fri, 14 Mar 2008 14:53:38 +0000 (15:53 +0100)]
libreplace: put inet_aton.c under LGPL instead of GPL.

Michael
(This used to be commit cca5d6626fe395f08fd4c8b2344e4e43646cb987)

12 years agosmbtorture: fix typos in RAW-OPLOCK output.
Michael Adam [Tue, 18 Mar 2008 12:02:32 +0000 (13:02 +0100)]
smbtorture: fix typos in RAW-OPLOCK output.

Michael
(This used to be commit 9fa4b53b61064c910b8f5c9c676c971023b8670c)

12 years agolibreplace: remove unused SOCKET_LIBS and NSL_LIBS
Stefan Metzmacher [Tue, 18 Mar 2008 14:01:34 +0000 (15:01 +0100)]
libreplace: remove unused SOCKET_LIBS and NSL_LIBS

metze
(This used to be commit 62bb177a6e4a3e1f949b78c7cd7583f2e1271739)

12 years agolib/socket: use LIBREPLACE_NETWORK instead of EXT_SOCKET and EXT_NSL
Stefan Metzmacher [Tue, 18 Mar 2008 13:59:10 +0000 (14:59 +0100)]
lib/socket: use LIBREPLACE_NETWORK instead of EXT_SOCKET and EXT_NSL

The configure checks are also in libreplace now.

metze
(This used to be commit 07e931a77f21e025281b6285f4ce7aebf1106b86)

12 years agolibreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
Stefan Metzmacher [Tue, 18 Mar 2008 13:55:05 +0000 (14:55 +0100)]
libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB

metze
(This used to be commit 79037c31334e271a718fcac234148038814b591e)

12 years agolibreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
Stefan Metzmacher [Tue, 18 Mar 2008 13:53:59 +0000 (14:53 +0100)]
libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks

...instead of using SOCKET_LIBS and NSL_LIBS.

metze
(This used to be commit cef2e8d748756f61c248ad6660e85dd1ac36308a)

12 years agolibreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS
Stefan Metzmacher [Tue, 18 Mar 2008 13:52:36 +0000 (14:52 +0100)]
libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS

But keep the old ones untill the callers are fixed.

metze
(This used to be commit e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9)

12 years agoldb: remove configure with 'make realdistclean'
Stefan Metzmacher [Tue, 18 Mar 2008 13:31:49 +0000 (14:31 +0100)]
ldb: remove configure with 'make realdistclean'

configure.in doesn't exist at all...

metze
(This used to be commit ca414d4e9e96b90100c46b006825bc8e935ba0b4)

12 years agoldb: nothing uses "system/network.h" so don't include it
Stefan Metzmacher [Tue, 18 Mar 2008 13:29:43 +0000 (14:29 +0100)]
ldb: nothing uses "system/network.h" so don't include it

metze
(This used to be commit 087667e0cd66ea615b5aa43538192fe1d7de87ae)

12 years agoldb: fix the standalone build
Stefan Metzmacher [Tue, 18 Mar 2008 13:29:13 +0000 (14:29 +0100)]
ldb: fix the standalone build

metze
(This used to be commit 91b49365abed6f67e2b3c18b0090b4e6ff1df935)

12 years agoselftest: fix parsing of Subunit results
Stefan Metzmacher [Tue, 18 Mar 2008 14:36:03 +0000 (15:36 +0100)]
selftest: fix parsing of Subunit results

This reverts parts of
903eb9a23d80576f5df2d90a0e025f2366ffe4c6
and
9196213c49532ac60349ff55e66430b7c80b09c2.

metze
(This used to be commit 5f5fa368c2ca472409c0082400b6e26029dfd7b5)

12 years agoAllocate one 0-byte in asprintf replacement when len==0
Volker Lendecke [Sat, 15 Mar 2008 20:47:22 +0000 (21:47 +0100)]
Allocate one 0-byte in asprintf replacement when len==0

Some S3 code depends on this.
(cherry picked from commit dc3d5e16452bf30055638ba3cfe99097fb557156)
(This used to be commit 842d144b4fb0981250157f72956e732709663107)

12 years agoselftest: use a separate var for printing out sub parts of lines with \r
Stefan Metzmacher [Tue, 18 Mar 2008 08:36:29 +0000 (09:36 +0100)]
selftest: use a separate var for printing out sub parts of lines with \r

This restores the bahavior of the $_ variable in the code
that detects expected failures.

metze
(This used to be commit 903eb9a23d80576f5df2d90a0e025f2366ffe4c6)

12 years agoidmap: Map SIDs to unixids instead of uids/gids
Kai Blin [Wed, 5 Mar 2008 23:52:37 +0000 (00:52 +0100)]
idmap: Map SIDs to unixids instead of uids/gids
(This used to be commit 73ac7c4a1ce937bddd3c52d048665cd0078c6aaa)

12 years agomake: Fix make valgrindtest-env
Kai Blin [Tue, 18 Mar 2008 09:53:25 +0000 (10:53 +0100)]
make: Fix make valgrindtest-env
(This used to be commit f56912e3b545325e941ee898337c5483ec435e39)

12 years agoRAW-BENCH-OPEN: avoid sync calls before the main loop
Stefan Metzmacher [Mon, 17 Mar 2008 11:11:44 +0000 (12:11 +0100)]
RAW-BENCH-OPEN: avoid sync calls before the main loop

On multi cpu machines the server may reply to the
first requests while the test is still in setup mode.

Now we setup the first opens, but send them all together
when entering the main loop.

metze
(This used to be commit 3f2d12c61e95475009baf77c3e0fbea2abecc17a)

12 years agoRAW-BENCH-OPEN: fix the output and calculate the total operations
Stefan Metzmacher [Mon, 17 Mar 2008 08:59:30 +0000 (09:59 +0100)]
RAW-BENCH-OPEN: fix the output and calculate the total operations

metze
(This used to be commit c84e3abae9781c0cbea5fee00bafe70967fb6468)

12 years agoselftest: handle progress output in verbose mode
Stefan Metzmacher [Mon, 17 Mar 2008 14:17:19 +0000 (15:17 +0100)]
selftest: handle progress output in verbose mode

metze
(This used to be commit 9196213c49532ac60349ff55e66430b7c80b09c2)

12 years agosocket_wrapper: make pcap code more portable
Stefan Metzmacher [Mon, 17 Mar 2008 13:08:57 +0000 (14:08 +0100)]
socket_wrapper: make pcap code more portable

Now the pcap support works on x86_64.

metze
(This used to be commit 61a87bed61ef661d98131239976be95c6a8b4d96)