17 years agoadded a TDB_MODIFY flag to tdb_store() that says "if the record
Andrew Tridgell [Sun, 28 Mar 2004 01:38:42 +0000 (01:38 +0000)]
added a TDB_MODIFY flag to tdb_store() that says "if the record
doesn't exist then fail the store"
(This used to be commit 6aec1457f8772cf81b88a0a00cc2ad7c16cd0d87)

17 years agoadded a private pointer to tdb_traverse() to allow callers to supply
Andrew Tridgell [Sun, 28 Mar 2004 01:33:32 +0000 (01:33 +0000)]
added a private pointer to tdb_traverse() to allow callers to supply
data to their traverse function
(This used to be commit 76bf816485bf869c293791659da5dff2425d2d32)

17 years agoremoved the state parameter to tdb_traverse and the TDB_MODIFY flag
Andrew Tridgell [Sun, 28 Mar 2004 01:30:54 +0000 (01:30 +0000)]
removed the state parameter to tdb_traverse and the TDB_MODIFY flag
(This used to be commit 6505efc7e9bfcdae3e370d8557328470608b87ca)

17 years agocopy with a null volume name in a trans2 QFSINFO call
Andrew Tridgell [Fri, 26 Mar 2004 02:41:20 +0000 (02:41 +0000)]
copy with a null volume name in a trans2 QFSINFO call
(This used to be commit 96c54df6facc8d1d5ef559ebc3e7e0953d89b2ab)

17 years ago- moved some of the base tests into torture/basic/
Andrew Tridgell [Fri, 26 Mar 2004 02:39:48 +0000 (02:39 +0000)]
- moved some of the base tests into torture/basic/

- added a CHARSET set of tests, which determines how the server deals
with some specific charset issues related to UTF-16
support. Interestingly, Samba3 already passes all but one of these
tests, because our incorrect UCS-2 and UTF-8 implementations where we
don't check the validity of characters actually matches what Windows
does! This means that adding UTF-16 support to Samba is going to be
_much_ easier than we expected.
(This used to be commit c8497a42364d186f08102224d5062d176ee81f5b)

17 years ago- use a linked list for the ftable in the nbench load generator. This
Andrew Tridgell [Fri, 26 Mar 2004 02:11:31 +0000 (02:11 +0000)]
- use a linked list for the ftable in the nbench load generator. This
allows us to cope a little better with the async nature of open/close
requests which implies a ordering on which handle to close.

- request oplocks in NBENCH and add a oplock handler
(This used to be commit 3bcd27e0f0a20f2d9923815a123044bda710693c)

17 years agouse client1, client2 not client0, client1 to better match netbench
Andrew Tridgell [Fri, 26 Mar 2004 02:09:51 +0000 (02:09 +0000)]
use client1, client2 not client0, client1 to better match netbench
(This used to be commit 4bbc77fa0c3a91fd34e1966892782f5b2a441359)

17 years agofixed the handling of level II oplocks in samba4, especially when
Andrew Tridgell [Thu, 25 Mar 2004 02:41:19 +0000 (02:41 +0000)]
fixed the handling of level II oplocks in samba4, especially when
acting as a cifs redirectory (using the cifs backend)
(This used to be commit 06a8100e6a2f3f079af5b6ec32d87d1d25f56c3c)

17 years agoput the "max xmit" option back into Samba4
Andrew Tridgell [Tue, 23 Mar 2004 03:17:38 +0000 (03:17 +0000)]
put the "max xmit" option back into Samba4
(This used to be commit 82e50a1ce8904c72c90b1e771f232acaad2c835e)

17 years agoreadx reply packets can be over-sized
Andrew Tridgell [Tue, 23 Mar 2004 03:13:24 +0000 (03:13 +0000)]
readx reply packets can be over-sized
(This used to be commit ad42c8432b7df0ae44ca73e08d017e61a2bc6f1c)

17 years agonicer way of handling \clients
Andrew Tridgell [Wed, 10 Mar 2004 09:00:24 +0000 (09:00 +0000)]
nicer way of handling \clients
(This used to be commit 931138cc440f646671ec5e9b52eb3666b2ff014b)

17 years agoas a special case don't check the status of the create of \clients -
Andrew Tridgell [Wed, 10 Mar 2004 07:38:47 +0000 (07:38 +0000)]
as a special case don't check the status of the create of \clients -
there is a race condition in the create
(This used to be commit ddfddcbffd304b5ac51140dee048ead7137e293a)

17 years agomake the warmup and execute phases clearer
Andrew Tridgell [Wed, 10 Mar 2004 05:05:56 +0000 (05:05 +0000)]
make the warmup and execute phases clearer
(This used to be commit d49e4407e59a25c8e887b552ed2a58de7a16b6d9)

17 years agoadd config hints for cifs backend
Andrew Tridgell [Wed, 10 Mar 2004 04:07:02 +0000 (04:07 +0000)]
add config hints for cifs backend
(This used to be commit bba81f1c7a87499f610ca19fbc5f1485d368c5b8)

17 years agoadded a 5% warmup time to NBENCH to make the results more consistent
Andrew Tridgell [Wed, 10 Mar 2004 03:24:03 +0000 (03:24 +0000)]
added a 5% warmup time to NBENCH to make the results more consistent
(This used to be commit df50911a9c71bf5b8a8988fdbf6c716f8343fa45)

17 years agoadded the -C option to smbtorture
Andrew Tridgell [Tue, 9 Mar 2004 09:04:06 +0000 (09:04 +0000)]
added the -C option to smbtorture

this option takes a filename containing a list of UNC names. When
supplied to a torture test that uses multiple client connections the
test will distribute the load across the listed UNC names. This allows
you to use NBENCH effectively against a server that has multiple IP
addresses, and spread the load among them.
(This used to be commit e0d9502aa20e2e9a343274cd7f12e6ef2f49c104)

17 years agomake sure the tags in the NBENCH test match the tags in the generated
Andrew Tridgell [Tue, 9 Mar 2004 05:06:57 +0000 (05:06 +0000)]
make sure the tags in the NBENCH test match the tags in the generated
load files
(This used to be commit 1c5dc25b3b678d7c5d271cc9bee5bf80cfbec3b9)

17 years agodon't check return fields (like search count) on an expected failure
Andrew Tridgell [Tue, 9 Mar 2004 03:28:21 +0000 (03:28 +0000)]
don't check return fields (like search count) on an expected failure
(This used to be commit 6cbe8a6bd5998c67b74b989d13d3cb7863fee75d)

17 years agohandle incomplete load files
Andrew Tridgell [Tue, 9 Mar 2004 02:24:14 +0000 (02:24 +0000)]
handle incomplete load files
change default timelimit to 600 secs
(This used to be commit c5c75a6adab10e35584dca760586fda333ca5308)

17 years agogreatly improved NBENCH netbench simulator
Andrew Tridgell [Tue, 9 Mar 2004 02:13:13 +0000 (02:13 +0000)]
greatly improved NBENCH netbench simulator

 - more accurate request simulation using Samba4 raw client library
 - now checks for correct status on all requests
 - timelimit based benchmarking, default of 600 seconds
(This used to be commit a46c009c0459658784d7d7b3b0502dc20958043a)

17 years agofixed the label for search requests
Andrew Tridgell [Tue, 9 Mar 2004 02:01:42 +0000 (02:01 +0000)]
fixed the label for search requests
(This used to be commit 8dbf08549e17a48a5cff114671122edb035dd900)

17 years agofixed a typo
Andrew Tridgell [Mon, 8 Mar 2004 09:13:35 +0000 (09:13 +0000)]
fixed a typo
(This used to be commit 10b137c6e3c1a640597ff4a0db10d635b51b806b)

17 years agoadded the "nbench" ntvfs backend. This is used to capture NBENCH load
Andrew Tridgell [Mon, 8 Mar 2004 07:17:15 +0000 (07:17 +0000)]
added the "nbench" ntvfs backend. This is used to capture NBENCH load
files, and also serves as an example of how to write a NTVFS filter
module for Samba4.
(This used to be commit 04f8996dd32d92c5df1b6b1b27c6e71e99bc77da)

17 years agoin the async socket handling routines in the cifs backend don't assume
Andrew Tridgell [Mon, 8 Mar 2004 07:13:11 +0000 (07:13 +0000)]
in the async socket handling routines in the cifs backend don't assume
that conn->ntvfs_private is set correctly, instead use our copy of the
private pointer in the fde callback. This allows the cifs backend to
be used on conjunction with a NTVFS filter module.
(This used to be commit 8047b806e78815706bca81a77d04d5874ffd7d6e)

17 years agofixed two writex client bugs
Andrew Tridgell [Mon, 8 Mar 2004 07:11:13 +0000 (07:11 +0000)]
fixed two writex client bugs

 - always use the 14 word writex varient even for small transfers as
   long as large offsets are negotiated (this matches windows

 - make sure we fill in the top 16 bits of the count for large writex
(This used to be commit 9ea20d0c9a1cb4800f3f54195cbbe70c98c8e423)

17 years agomake proto should not catch any function of the lib/popt/*.c stuff
Stefan Metzmacher [Tue, 24 Feb 2004 06:53:53 +0000 (06:53 +0000)]
make proto should not catch any function of the lib/popt/*.c stuff

(This used to be commit ec96914c66573ae54f4fa0a706001f5b91c61075)

17 years agolet the popt replacement stuff survive a make proto
Stefan Metzmacher [Tue, 24 Feb 2004 06:49:59 +0000 (06:49 +0000)]
let the popt replacement stuff survive a make proto

(This used to be commit 0f1c6dd631c7a1d4be333b8e3e4ce9850752d5c2)

17 years agorenaming and restructuring of same object file lists
Stefan Metzmacher [Mon, 23 Feb 2004 10:51:36 +0000 (10:51 +0000)]
renaming and restructuring of same object file lists

(This used to be commit 2915a4039ba27b4ef454f4cc86382ae7c229ccb5)

17 years ago- creat the LIBCMDLINE subsystem
Stefan Metzmacher [Sun, 22 Feb 2004 13:09:51 +0000 (13:09 +0000)]
- creat the LIBCMDLINE subsystem
  including readline and popt

- creat the CONFIG subsystem
  including param/* dynconfig.* and passdb/secrets.*

(This used to be commit bfd7fd21c8e38c0065fc41dde10e863a169878c2)

17 years agoThe file descriptor argument to cli_getattrE() is a fnum not a fd.
Tim Potter [Sat, 21 Feb 2004 11:23:51 +0000 (11:23 +0000)]
The file descriptor argument to cli_getattrE() is a fnum not a fd.
(This used to be commit f172b6f1d08b7de040cde4a7d88708e5af29a3a4)

17 years agoremove the python stuff, this will be rewritten on top of
Stefan Metzmacher [Sat, 21 Feb 2004 11:08:10 +0000 (11:08 +0000)]
remove the python stuff, this will be rewritten on top of
and maintained in a external tree.
(discussed with tpot)

(This used to be commit 54a01008413e1f03a49f5d6f9e2f98c8b8d1c87a)

17 years agosplit up the schannel rpc client code into separate key establishment
Andrew Tridgell [Sat, 21 Feb 2004 04:46:49 +0000 (04:46 +0000)]
split up the schannel rpc client code into separate key establishment
and bind calls, but with a combined call that does both. This makes is
easier to write a schannel test program that tried different keys.
(This used to be commit 9d89928086a7095bbc2218760b12263298af4217)

17 years agoadded the simple HOLDCON torture test. This is used to establish
Andrew Tridgell [Sat, 21 Feb 2004 04:02:55 +0000 (04:02 +0000)]
added the simple HOLDCON torture test. This is used to establish
hundreds of idle connections to the server, which can be used to
simulate environments with large numbers of idle connections.
(This used to be commit cfce9458a22e8b6da1a10bb338b287c3eab9a1fc)

17 years agofixed a problem with the smb client code spinning when the connection
Andrew Tridgell [Sat, 21 Feb 2004 04:02:00 +0000 (04:02 +0000)]
fixed a problem with the smb client code spinning when the connection
is lost. We now close the cli_transport when there is a socket io
(This used to be commit 138cb5f2f5f8ce1479ac687d18e6a0e355e55b7f)

17 years agodon't inlcude rpc/rpc.h and rpcsvc/*.h anymore
Stefan Metzmacher [Wed, 18 Feb 2004 15:31:25 +0000 (15:31 +0000)]
don't inlcude rpc/rpc.h and rpcsvc/*.h anymore
and remove NET_GROUP stuff, this needs to be implemented
in a better way if we ever readd this

(This used to be commit da5f22976fb40ec96160439c7a926a15805fc7f0)

17 years agoremove unused NISPLUS/AUTOMOUNT stuff
Stefan Metzmacher [Wed, 18 Feb 2004 13:55:15 +0000 (13:55 +0000)]
remove unused NISPLUS/AUTOMOUNT stuff

(This used to be commit cbfa29549e5b302f947c7f2ca14fbea257e46c33)

17 years agoremove pdb_nisplus, its also removed in samba3, because it was broken
Stefan Metzmacher [Wed, 18 Feb 2004 13:17:03 +0000 (13:17 +0000)]
remove pdb_nisplus, its also removed in samba3, because it was broken

(This used to be commit db0b2222025d0d1955deed7cfcd10b8579e29869)

17 years agomove some cryto stuff to lib/crypto/*
Stefan Metzmacher [Wed, 18 Feb 2004 12:20:17 +0000 (12:20 +0000)]
move some cryto stuff to lib/crypto/*

(This used to be commit afe4dbfea658d3d3de847651ea2b3d5517e81f41)

17 years agomove external configure test programs
Stefan Metzmacher [Fri, 13 Feb 2004 15:20:52 +0000 (15:20 +0000)]
move external configure test programs
from tests/*.c to build/tests/*.c

(This used to be commit dea3a3acbfe2341f9276ceaec2a42f0931e2c336)

17 years agomove all old configure checks to build/m4/rewrite.m4
Stefan Metzmacher [Fri, 13 Feb 2004 15:03:46 +0000 (15:03 +0000)]
move all old configure checks to build/m4/rewrite.m4
we should get rid of this file in the end:-)

the tests should go into subsystems config.m4 files

the goal is to know which tests belong to what code
and remove unused tests to make configure a bit faster

(This used to be commit 3abb0fd19b27261e2b9fa46f287162be8f096913)

17 years agomove the tdb utils to utils/tdb/*
Stefan Metzmacher [Thu, 12 Feb 2004 16:28:12 +0000 (16:28 +0000)]
move the tdb utils to utils/tdb/*

(This used to be commit b49734fe4bb6432b2cf3f23fdead5a4fa9f7de0d)

17 years agomove the tdb lib code to lib/tdb/*
Stefan Metzmacher [Thu, 12 Feb 2004 15:59:16 +0000 (15:59 +0000)]
move the tdb lib code to lib/tdb/*

(This used to be commit 5ebd6fb761370cbe2835a2a2631e24e35bcaffb4)

17 years agomove -lpopt replacement code from source/popt/* to source/lib/popt/*
Stefan Metzmacher [Thu, 12 Feb 2004 14:21:44 +0000 (14:21 +0000)]
move -lpopt replacement code from source/popt/* to source/lib/popt/*

(This used to be commit 9d1018557fdc51cada1ad082d85c0dc48e1b3072)

17 years agomove the -lpopt replacement to a LIBPOPT subsystem
Stefan Metzmacher [Thu, 12 Feb 2004 08:07:46 +0000 (08:07 +0000)]
move the -lpopt replacement to a LIBPOPT subsystem

(This used to be commit 9eb593a7c065326dafbba896ed723d0ea5cb00ed)

17 years agomove more code to the config.m4 scheme
Stefan Metzmacher [Thu, 12 Feb 2004 06:02:32 +0000 (06:02 +0000)]
move more code to the config.m4 scheme
LIBBASIC, LIBSMB are the new global subsystems

(This used to be commit a25c167b3f13031ba992b2d3f74387bdfffbf5b0)

17 years agodo not return a value in a void function
Stefan Metzmacher [Thu, 12 Feb 2004 05:52:53 +0000 (05:52 +0000)]
do not return a value in a void function

(This used to be commit 836612b841ce7f91525c333d81e31dcdb83f533c)

17 years agofixed a void return spotted by metze
Andrew Tridgell [Wed, 11 Feb 2004 13:18:05 +0000 (13:18 +0000)]
fixed a void return spotted by metze
(This used to be commit 3f1b7e51c9f18745b6c06c3934ecc4fdd743e1d0)

17 years agoas I renamed the PDB subsystem to PASSDB, we need to rename
Stefan Metzmacher [Wed, 11 Feb 2004 12:45:47 +0000 (12:45 +0000)]
as I renamed the PDB subsystem to PASSDB, we need to rename
the static init functions of the modules too:-)

(This used to be commit 09839de27c9741051b9ebd751c4adcd1c1481cf8)

17 years agofixed a couple of uninitialised returns spotted by valgrind
Andrew Tridgell [Tue, 10 Feb 2004 20:49:59 +0000 (20:49 +0000)]
fixed a couple of uninitialised returns spotted by valgrind
(This used to be commit ccce61287de07684159e2de990773f4098e07652)

17 years agodon't force debug in the RPC-MGMT test
Andrew Tridgell [Tue, 10 Feb 2004 20:48:22 +0000 (20:48 +0000)]
don't force debug in the RPC-MGMT test
(This used to be commit e0eb4b3cfb75385ff7a012ca0f8fad1278c195d9)

17 years agowe can close the netlogon pipe used to setup the schannel session key
Andrew Tridgell [Tue, 10 Feb 2004 20:47:22 +0000 (20:47 +0000)]
we can close the netlogon pipe used to setup the schannel session key
as soon as we are finished with the netlogon negotiation phase. The
session key remains valid.
(This used to be commit 95a40d4693994edcb2284a2a135d2db426f6addb)

17 years agoConvert libcli routines to return NTSTATUS instead of BOOL. Again, the
Tim Potter [Tue, 10 Feb 2004 11:33:35 +0000 (11:33 +0000)]
Convert libcli routines to return NTSTATUS instead of BOOL.  Again, the
only users are smbclient and smbtorture.
(This used to be commit 54cb508c78e5c1faa3ade46b46b165983c880d10)

17 years agodon't always use the same schannel context number
Andrew Tridgell [Tue, 10 Feb 2004 11:19:58 +0000 (11:19 +0000)]
don't always use the same schannel context number
(This used to be commit 396e0757122614211b535b140d9365ac7b8b880d)

17 years ago- modified the dcerpc client security code to be generic, so ntlmssp
Andrew Tridgell [Tue, 10 Feb 2004 10:22:12 +0000 (10:22 +0000)]
- modified the dcerpc client security code to be generic, so ntlmssp
  and schannel are both instances of possible security modules

- added schannel sign and sign/seal support to the dcerpc client
  code. You select it with binding options of "schannel,sign" or
(This used to be commit 05db0b9d942cad8f1dd574dc35b759e5e79d4195)

17 years agothe subsystem name is 'PASSDB' so name the modules 'passdb_XXX'
Stefan Metzmacher [Mon, 9 Feb 2004 21:57:07 +0000 (21:57 +0000)]
the subsystem name is 'PASSDB' so name the modules 'passdb_XXX'

(This used to be commit 1516f7974984e46a825c66daae6bc73eb6859700)

17 years ago- remove unused 'evel ...' calls, we don't need them inside of
Stefan Metzmacher [Mon, 9 Feb 2004 21:56:03 +0000 (21:56 +0000)]
-   remove unused 'evel ...' calls, we don't need them inside of
    AC_XXX() macros

-   handle --with-shared-modules=process_model --with-static-modules=process_model_single
    right. ( build 'single' static and the rest of the process_model modules shared,
    if they're not declared as NOT.

(This used to be commit a57734877dd58ab3159435a145b307bd546a9e99)

17 years agofix pdb_ldap build if LDAP support was detected
Stefan Metzmacher [Mon, 9 Feb 2004 21:04:42 +0000 (21:04 +0000)]
fix pdb_ldap build if LDAP support was detected

(This used to be commit 3d50b327ce85d8929db7a3135f927f744ce6b111)

17 years agoConvert libcli routines to use cli_tree instead of cli_state. Port
Tim Potter [Sun, 8 Feb 2004 00:51:07 +0000 (00:51 +0000)]
Convert libcli routines to use cli_tree instead of cli_state. Port
smbtorture to use the new interface.

Part 2 will be to eliminate cli_state from smbtorture as this is now
the only place where it is used.
(This used to be commit db1cc96af62ea42837d60592877fc3f93cef143b)

17 years agoadd the TORTURE SUBSYSTEM to the config.m4 scheme
Stefan Metzmacher [Thu, 5 Feb 2004 12:16:29 +0000 (12:16 +0000)]
add the TORTURE SUBSYSTEM to the config.m4 scheme

I'll convert all stuff first to this scheme
and then move to the scheme with two files per subsystems
so we'll later something like config.m4 and

(This used to be commit 39e1a9b0c55138695e9736612b62ddada157d690)

17 years agoremove unused Makefile vars and fix dublication in $(PROTO_OBJ)
Stefan Metzmacher [Thu, 5 Feb 2004 11:37:53 +0000 (11:37 +0000)]
remove unused Makefile vars and fix dublication in $(PROTO_OBJ)

(This used to be commit 2173efba143c633fee599b6e188ed7f66b9bb87f)

17 years agoThis would appear to restore smbtorture to be able to use the syntax
Andrew Bartlett [Tue, 3 Feb 2004 21:53:51 +0000 (21:53 +0000)]
This would appear to restore smbtorture to be able to use the syntax
documented in it's self-help for RPC tests.

Andrew Bartlett
(This used to be commit 49b52cdbfe26dd7afe74aeb4596a4fd34806dabe)

17 years ago- add 'print' to the DCERPC binding strings
Stefan Metzmacher [Tue, 3 Feb 2004 14:56:07 +0000 (14:56 +0000)]
- add 'print' to the DCERPC binding strings


  will now enable the packet debugging

  and the debugging is not bound anymore to the debuglevel >= 2
  in the torture tests

- also the dcesrv_remote module now supports debugging of the packets
  use the 'dcerpc_remote:binding' smb.conf parameter.

(This used to be commit 40abf3c584efed7f977ddd688ea064540e5a5b13)

17 years agoif vfs_cifs want to modify the ntvfs_ops struct, it should
Stefan Metzmacher [Tue, 3 Feb 2004 12:37:54 +0000 (12:37 +0000)]
if vfs_cifs want to modify the ntvfs_ops struct, it should
use a temporary copy of the struct!

(This used to be commit 372522c64f2aea76b3fe136752d4da40e61d2bec)

17 years agomove include/ntvfs.h to ntvfs/ntvfs.h
Stefan Metzmacher [Tue, 3 Feb 2004 11:18:54 +0000 (11:18 +0000)]
move include/ntvfs.h to ntvfs/ntvfs.h

(This used to be commit 041dc8c83df21c4cff9a62b9381ebc68b3876e77)

17 years ago- port AUTH and PASSDB subsystems to new
Stefan Metzmacher [Tue, 3 Feb 2004 11:10:56 +0000 (11:10 +0000)]
- port AUTH and PASSDB subsystems to new
  SMB_SUBSYSTEM() scheme

- some const fixes in ntvfs

(This used to be commit af89a78123068767b1d134969c5651a0fd978b0d)

17 years agomake more function static, they are still available via the function pointers
Stefan Metzmacher [Tue, 3 Feb 2004 11:05:36 +0000 (11:05 +0000)]
make more function static, they are still available via the function pointers

(This used to be commit 4597643e76a34397cd2344a91d7045163ea7a942)

17 years agodo some merging from 3.0
Stefan Metzmacher [Tue, 3 Feb 2004 06:37:28 +0000 (06:37 +0000)]
do some merging from 3.0

(This used to be commit 47a240d7b833542937a1b93829c1cf8baae2ffc5)

17 years ago- move all SMB server stuff to smb_server/*
Stefan Metzmacher [Tue, 3 Feb 2004 05:47:36 +0000 (05:47 +0000)]
- move all SMB server stuff to smb_server/*
  and create the SMB server subsystem

- remove unused XML and MYSQL configure tests

(This used to be commit 956d212c83d8ebd8e31ec109f17dc2105ca72c30)

17 years agoremove some unused stuff
Stefan Metzmacher [Mon, 2 Feb 2004 14:48:40 +0000 (14:48 +0000)]
remove some unused stuff

(This used to be commit d634a78faef8f59266f253bac76585ec79ff1b54)

17 years agoconst fixes
Stefan Metzmacher [Mon, 2 Feb 2004 14:46:25 +0000 (14:46 +0000)]
const fixes

(This used to be commit a2beaa0823f899ae9f49c2e624f5e10263c5c26b)

17 years agoreadd this fix:
Stefan Metzmacher [Mon, 2 Feb 2004 14:13:48 +0000 (14:13 +0000)]
readd this fix:

fix PROTO_OBJS ... fix make proto on some platforms

(This used to be commit 5346756a65af12aed1696318e41ea0deab1c7fda)

17 years ago- we now specify the object files in the subsystems config.m4 file
Stefan Metzmacher [Mon, 2 Feb 2004 13:43:03 +0000 (13:43 +0000)]
- we now specify the object files in the subsystems config.m4 file
  I plan to convert all objectfile group to use SMB_SUBSYSTEM
  later I'll add a SMB_BINARY() and SMB_LIBRARY(), then there will be no more need
  to touch, because all make rules will be autogenerated by configure

- convert the PROCESS_MODEL subsystem to this new scheme
  and move the pthread test to smbd/process_model.m4

- convert the CHARSET subsystem to this new scheme
  and move the iconv test to lib/iconv.m4
(This used to be commit 2e57ee884ebea194ee79ac20e84e385481b56aa2)

17 years agosome DEBUG and comment fixes
Stefan Metzmacher [Mon, 2 Feb 2004 13:28:29 +0000 (13:28 +0000)]
some DEBUG and comment fixes

(This used to be commit 5ac4f878687eb0fa95a2e5830a8372168a27d3b3)

17 years agosome compilers don't like the #warning preprocessing directive
Stefan Metzmacher [Mon, 2 Feb 2004 12:15:25 +0000 (12:15 +0000)]
some compilers don't like the #warning preprocessing directive
so just do a DEBUG(0,("..."));

(This used to be commit c087ff38b0c67a2246214c1303b045e6a7c2aa4a)

17 years agoremove unused files
Stefan Metzmacher [Mon, 2 Feb 2004 07:23:29 +0000 (07:23 +0000)]
remove unused files

we maybe need the util_smbd.c code later but this should not be in the lib/ dir

(This used to be commit 2149d414079cefc956bc9a50e30b7bb423f4aca6)

17 years agoremove unused .cvsignore file
Stefan Metzmacher [Mon, 2 Feb 2004 07:11:30 +0000 (07:11 +0000)]
remove unused .cvsignore file
(This used to be commit 64e064c4971a361a41b80ac47757e8581448f523)

17 years agosome systems doesn't have ./ in PATH
Stefan Metzmacher [Mon, 2 Feb 2004 07:06:28 +0000 (07:06 +0000)]
some systems doesn't have ./ in PATH
so use ./build/pidl/

(This used to be commit 7aab10d507346ac8d748558e5b9dbcfe9a56f601)

17 years agofix PROTO_OBJS ... fix make proto on some platforms
Stefan Metzmacher [Mon, 2 Feb 2004 07:02:15 +0000 (07:02 +0000)]
fix PROTO_OBJS ... fix make proto on some platforms

(This used to be commit ae37d9bb3f570a069d5a0492a1ecac9a4d14a7f5)

17 years cleanups:
Stefan Metzmacher [Sun, 1 Feb 2004 12:16:26 +0000 (12:16 +0000)] cleanups:
lib/util_smbd.c is not used anymore

reorder the SMB_MODULE() parameters the goal is to autogenerate the
make rules for shared modules:

dnl SMB_MODULE(1:name,2:subsystem,3:default_build,

and generate <SUBSYSTEM>_LIBS and MODULE_<name>_LIBS with the SMB_MODULE() macro

(This used to be commit 904ce91ed9e3b26d591278984ae32fa99bac01fd)

17 years agomerge:
Stefan Metzmacher [Sun, 1 Feb 2004 11:26:25 +0000 (11:26 +0000)]
ldap and krb5 configure tests
libads/*.c and libcli/raw/clikrb5.c from 3.0

(This used to be commit 64b5bfcd73d7626d6f687a641b11e64821144df7)

17 years agoremove unused configure checks and options
Stefan Metzmacher [Thu, 29 Jan 2004 16:08:19 +0000 (16:08 +0000)]
remove unused configure checks and options
poll and poll.h

I'm sure we need some of this but e.g. acl, sendfile and quotas belong
only to the posix ntvfs module, so the tests will to into a seperate config.m4
file, when we need them...

(This used to be commit 9bf405dd40c2133700a55fc6e163e975b4e62a66)

17 years agoadd
Stefan Metzmacher [Thu, 29 Jan 2004 09:54:42 +0000 (09:54 +0000)]

this script finds unused lp_*() functions

use it like this:

(This used to be commit 350fbe3440e28bcb26f9a9e8b999b0c4a70de64d)

17 years agoremove a lot of unused smb.conf options
Stefan Metzmacher [Thu, 29 Jan 2004 09:47:39 +0000 (09:47 +0000)]
remove a lot of unused smb.conf options

I think we should remove a view more,
but step by step:-)

(This used to be commit 534ccc5332d16c395847885e3b793d10b67b9855)

17 years agoremove a lot of unused stuff from the header files
Stefan Metzmacher [Wed, 28 Jan 2004 18:54:36 +0000 (18:54 +0000)]
remove a lot of unused stuff from the header files

and exclude some files from

(This used to be commit f77990cf2496f72d02566f09477349436be3dfcd)

17 years ago- cosmetic fix in
Stefan Metzmacher [Wed, 28 Jan 2004 15:47:20 +0000 (15:47 +0000)]
- cosmetic fix in

- fix mem leak in process.c

(This used to be commit d82ada11377e7613fc7c48afa9ef5f8a2e54233c)

17 years ago- remove all STFS related stuff
Stefan Metzmacher [Wed, 28 Jan 2004 15:43:18 +0000 (15:43 +0000)]
- remove all STFS related stuff
  (which were already removed in revision 1.37 and
   readded by mistake in revision 1.39)

- change the SMB_MODULE() macro a bit
  Now we have:

dnl Specify the default build method of this module
dnl SMB_MODULE_DEFAULT(name,default_build)

dnl Mark specified module as shared
dnl SMB_MODULE(name,default_build,static_files,shared_files,subsystem,whatif-static,whatif-shared,whatif-not)

  this let us specify the default build method inside of the included config.m4

(This used to be commit 92a3eb83d4bb07a7f1f87232e26831d05ab42915)

17 years agoremove autogenerated version.h from CVS
Stefan Metzmacher [Wed, 28 Jan 2004 12:49:32 +0000 (12:49 +0000)]
remove autogenerated version.h from CVS

(This used to be commit e7694095d3c3f2e18ec2c05f74541dbb7954d79d)

17 years agomerge the version.h autogeneration stuff from 3.0
Stefan Metzmacher [Wed, 28 Jan 2004 12:47:52 +0000 (12:47 +0000)]
merge the version.h autogeneration stuff from 3.0

(This used to be commit 24dc237e109f6dce69814b22e0fb7878a7f6bfa8)

17 years agoRemove testing utility for removed SAM system
Jelmer Vernooij [Sat, 24 Jan 2004 19:21:08 +0000 (19:21 +0000)]
Remove testing utility for removed SAM system
(This used to be commit dee59bec8413799aa66b37d5baace7dd2e782801)

17 years ago(merge from 3.0)
Andrew Bartlett [Thu, 22 Jan 2004 10:22:03 +0000 (10:22 +0000)]
(merge from 3.0)

Fix for debian Bug#225328 by LaMont Jones <>, where
the failure of our LFS test on ia64 caused the _GNU_SOURCE define not to be
added, causeing strndup() not to be defined...

This was due to strdup() bein implicitly declared, and casting

I'll into when we really should define _GNU_SOURCE shortly, but the
fix is correct anyway.

Andrew Bartlett
(This used to be commit f1cf5b8aa9897b79dfd00b963bc3803b6ff00dcb)

17 years ago- move the vars used by the backtrace stuff into the #ifdef
Stefan Metzmacher [Thu, 22 Jan 2004 02:28:17 +0000 (02:28 +0000)]
- move the vars used by the backtrace stuff into the #ifdef

- handle SIBABRT with a backtrace

(This used to be commit e9f584143d5bbcbbdaaac2c231efd85c7bd5a922)

17 years agofix last commit, which went in by mistake
Stefan Metzmacher [Thu, 22 Jan 2004 02:13:13 +0000 (02:13 +0000)]
fix last commit, which went in by mistake
('cvs ci filename' should be my friend:-)

get rid of some more global unconst vars.
I didn't find a referenz of this vars:
SIG_ATOMIC_T reload_after_sighup = 0;
SIG_ATOMIC_T got_sig_term = 0;

tridge: is it ok to remove them?
it compiles for me

(This used to be commit b34a3104c63b36cec47acdedef36caaf571eb383)

17 years agosorry, the last commit went in by mistake:-(
Stefan Metzmacher [Thu, 22 Jan 2004 02:02:27 +0000 (02:02 +0000)]
sorry, the last commit went in by mistake:-(

- implement the interface_by_name() and interface_by_uuid() hooks
  for the autogenerated dcerpc server boilerplates.

(This used to be commit 0b6a291eb4b353259ad5b72f8731a5504d9dc8c7)

17 years agoinitilize ev->maxfd = EVENT_INVALID_MAXFD; before the while() loop.
Stefan Metzmacher [Thu, 22 Jan 2004 01:56:31 +0000 (01:56 +0000)]
initilize ev->maxfd = EVENT_INVALID_MAXFD; before the while() loop.

(This used to be commit 61ec710518469876ccc48d57b5fee5d6ead3d482)

17 years ago- make the recalculation of ev->maxfd a bit more efficient.
Stefan Metzmacher [Thu, 22 Jan 2004 01:35:51 +0000 (01:35 +0000)]
- make the recalculation of ev->maxfd a bit more efficient.
- fix the case when we have no fd_events left on the event_context
  we now exit after doing the timed events and not block in select()
  waiting for no fd's to become ready...

(This used to be commit 857e76ef6b891c199534db6ce229410340286461)

17 years agomake dcerpc_pipes[] completely const.
Stefan Metzmacher [Thu, 22 Jan 2004 01:29:44 +0000 (01:29 +0000)]
make dcerpc_pipes[] completely const.
so it now apears in the text section of
'size librpc/gen_ndr/tables.o'

(This used to be commit f3b917402aeb9d749abf2df34413e61b71fd5fff)

17 years agoadded a little bit of const magic to get rid of the data in librpc/gen_ndr/*.o
Andrew Tridgell [Thu, 22 Jan 2004 01:12:43 +0000 (01:12 +0000)]
added a little bit of const magic to get rid of the data in librpc/gen_ndr/*.o
(This used to be commit 866ef2edab91996964c8b43dbdd417f5908a00e1)

17 years agolet the event_add_XXX() function return a pointer of the allocated event structure
Stefan Metzmacher [Wed, 21 Jan 2004 23:19:59 +0000 (23:19 +0000)]
let the event_add_XXX() function return a pointer of the allocated event structure
and NULL on allacation error.

(This used to be commit fffc6cfb6b9946155d209dd14faa79c5b9d43d1d)

17 years agocope with a wider range of broken servers in the RAW-QFILEINFO test
Andrew Tridgell [Wed, 21 Jan 2004 03:30:03 +0000 (03:30 +0000)]
cope with a wider range of broken servers in the RAW-QFILEINFO test
(This used to be commit eb6fc29caf5be8446c31668748a5cce387c71627)

17 years agocheck for the correct fault code when the server fails a use of a
Andrew Tridgell [Tue, 20 Jan 2004 06:10:15 +0000 (06:10 +0000)]
check for the correct fault code when the server fails a use of a
incorrect policy handle
(This used to be commit 8cd6e90eb8716ba43f5940245d7be580aab4ba83)