samba.git
20 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

metze
(This used to be commit 956d212c83d8ebd8e31ec109f17dc2105ca72c30)

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

metze
(This used to be commit d634a78faef8f59266f253bac76585ec79ff1b54)

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

metze
(This used to be commit a2beaa0823f899ae9f49c2e624f5e10263c5c26b)

20 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

metze
(This used to be commit 5346756a65af12aed1696318e41ea0deab1c7fda)

20 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 Makefile.in, 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)

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

metze
(This used to be commit 5ac4f878687eb0fa95a2e5830a8372168a27d3b3)

20 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,("..."));

metze
(This used to be commit c087ff38b0c67a2246214c1303b045e6a7c2aa4a)

20 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

metze
(This used to be commit 2149d414079cefc956bc9a50e30b7bb423f4aca6)

20 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)

20 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/pidl.pl

metze
(This used to be commit 7aab10d507346ac8d748558e5b9dbcfe9a56f601)

20 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

metze
(This used to be commit ae37d9bb3f570a069d5a0492a1ecac9a4d14a7f5)

20 years agoMakefile.in cleanups:
Stefan Metzmacher [Sun, 1 Feb 2004 12:16:26 +0000 (12:16 +0000)]
Makefile.in 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,
4:object_files,5:shared_object,6:libs
7:whatif-static,8:whatif-shared,9:whatif-not)

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

metze
(This used to be commit 904ce91ed9e3b26d591278984ae32fa99bac01fd)

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

metze
(This used to be commit 64b5bfcd73d7626d6f687a641b11e64821144df7)

20 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
 --with-acl-support
 --with-sendfile-support
 --with-manpages-langs
 --with-utmp
 --with-quotas
 --with-nisplus-home
 --with-profiling-data
 --with-syslog
 --with-pam_smbpass
 --with-pam
 --with-smbmount
 --with-automount
 --with-dce-dfs
 --with-afs
 --with-smbwrapper
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...

metze
(This used to be commit 9bf405dd40c2133700a55fc6e163e975b4e62a66)

20 years agoadd find_unused_options.sh
Stefan Metzmacher [Thu, 29 Jan 2004 09:54:42 +0000 (09:54 +0000)]
add find_unused_options.sh

this script finds unused lp_*() functions

use it like this:
   user@host:~/samba/source>./script/find_unused_options.sh

metze
(This used to be commit 350fbe3440e28bcb26f9a9e8b999b0c4a70de64d)

20 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:-)

metze
(This used to be commit 534ccc5332d16c395847885e3b793d10b67b9855)

20 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 Makefile.in

metze
(This used to be commit f77990cf2496f72d02566f09477349436be3dfcd)

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

- fix mem leak in process.c

metze
(This used to be commit d82ada11377e7613fc7c48afa9ef5f8a2e54233c)

20 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)
AC_DEFUN(SMB_MODULE_DEFAULT,...

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
  files

metze
(This used to be commit 92a3eb83d4bb07a7f1f87232e26831d05ab42915)

20 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

metze
(This used to be commit e7694095d3c3f2e18ec2c05f74541dbb7954d79d)

20 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

metze
(This used to be commit 24dc237e109f6dce69814b22e0fb7878a7f6bfa8)

20 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)

20 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 <lamont@debian.org>, 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
pointer->int->pointer.

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)

20 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

metze
(This used to be commit e9f584143d5bbcbbdaaac2c231efd85c7bd5a922)

20 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

metze
(This used to be commit b34a3104c63b36cec47acdedef36caaf571eb383)

20 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.

metze
(This used to be commit 0b6a291eb4b353259ad5b72f8731a5504d9dc8c7)

20 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.

metze
(This used to be commit 61ec710518469876ccc48d57b5fee5d6ead3d482)

20 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...

metze
(This used to be commit 857e76ef6b891c199534db6ce229410340286461)

20 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'

metze
(This used to be commit f3b917402aeb9d749abf2df34413e61b71fd5fff)

20 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)

20 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.

metze
(This used to be commit fffc6cfb6b9946155d209dd14faa79c5b9d43d1d)

20 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)

20 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)

20 years agoadded code to the RPC-SPOOLSS test that demonstrates that policy
Andrew Tridgell [Tue, 20 Jan 2004 06:07:09 +0000 (06:07 +0000)]
added code to the RPC-SPOOLSS test that demonstrates that policy
handles are not shared between open dcerpc connections, even when
those connections are on the same SMB socket. I have tested this with
w2k3, w2k and NT4. It seems that policy handles have a strict scope of
the dcerpc connection on which they were opened.

I realise that this goes against existing folk-law in the team, but it
seems that the previous testing (I'm not sure who did this?) was
wrong. Perhaps clients do send us policy handles from other
connections, but if they do then the correct thing to do is to fail
the operation with a dcerpc fault. I suspect that failing it with
exactly the right dcerpc fault code is important.
(This used to be commit 2ed24d29bafd9055d5782acdd595cd0f378a651a)

20 years agodcerpc server output now copes with the client blocking part way
Andrew Tridgell [Tue, 20 Jan 2004 05:54:17 +0000 (05:54 +0000)]
dcerpc server output now copes with the client blocking part way
through a read. This happens to also avoid a memcpy on output for
dcerpc over tcp.
(This used to be commit e7c53ad1856e299d82d84b5837189ae3191c32de)

20 years agoavoid a copy of the data being input to the dcerpc server in the most
Andrew Tridgell [Tue, 20 Jan 2004 04:32:17 +0000 (04:32 +0000)]
avoid a copy of the data being input to the dcerpc server in the most
common case of there being no pending partial data and a full dcerpc
packet being received.

We should use this same model for the smb server. It gives us
efficient memory usage while allowing for completely async socket
operations.
(This used to be commit 9aab321fb6e2f3499efd8ca5bc88ce2cb8e68219)

20 years agoadd make [un]installtorture
Stefan Metzmacher [Mon, 19 Jan 2004 14:57:56 +0000 (14:57 +0000)]
add make [un]installtorture
and let this be called by make [un]install

we can later change this and the make all
to not do the torture stuff, but for know only developers will
use samba4...

metze
(This used to be commit cb5f1e581fcb9eaf36926c3f341b0ab784031282)

20 years agoremove all unused stuff from Makefile.in
Stefan Metzmacher [Mon, 19 Jan 2004 14:22:32 +0000 (14:22 +0000)]
remove all unused stuff from Makefile.in
and some stuff from configure.in and dynconfig.[ch]

make all

makes
bin/gentest   bin/masktest   bin/smbd
bin/locktest  bin/smbclient  bin/smbtorture
bin/ndrdump

now

metze
(This used to be commit e0043693a66a319ab7fef0e4202239c0b5d4bff8)

20 years agoAdd test to set single fields in fields_present with info21.
Simo Sorce [Mon, 19 Jan 2004 08:59:14 +0000 (08:59 +0000)]
Add test to set single fields in fields_present with info21.
(This used to be commit 2372321eedb6d446c1555ed318bd98743cabaaa0)

20 years agomake sure we initialise r.out.handle in openeventlog
Andrew Tridgell [Sat, 17 Jan 2004 00:16:18 +0000 (00:16 +0000)]
make sure we initialise r.out.handle in openeventlog
(This used to be commit 6319166420ba7cd7bb3a69d88510d8e6216c7c89)

20 years ago* fixed a segv when -U is not used in smbtorture.
Andrew Tridgell [Thu, 15 Jan 2004 23:19:07 +0000 (23:19 +0000)]
* fixed a segv when -U is not used in smbtorture.

* fixed the handling of anonymous logins
(This used to be commit 7cbc4ad8710ad33387145bfc9974d0ed4b0fb231)

20 years agoa script which find unused or undefined vars in Makefile or Makefile.in
Stefan Metzmacher [Tue, 13 Jan 2004 22:24:56 +0000 (22:24 +0000)]
a script which find unused or undefined vars in Makefile or Makefile.in

call it like:

script/find_unused_makefilevars.pl Makefile

or

script/find_unused_makefilevars.pl Makefile.in

metze
(This used to be commit ebecb6d05b97dc5bac8d9e48f8fad75dfbb44a74)

20 years agoAdd script for finding unused function checks in configure.in
Jelmer Vernooij [Tue, 13 Jan 2004 22:22:43 +0000 (22:22 +0000)]
Add script for finding unused function checks in configure.in
(This used to be commit 7c6a261871d2b44fe6eccfda7cb4f3c558dbf5e3)

20 years agoFix --with-fhs for swatdir
Jelmer Vernooij [Sun, 11 Jan 2004 13:40:06 +0000 (13:40 +0000)]
Fix --with-fhs for swatdir
(This used to be commit 5c8abbcbe520d8dc5de6df304f5a64048977b340)

20 years agoadded dom_sid_string() function
Andrew Tridgell [Sun, 11 Jan 2004 05:16:07 +0000 (05:16 +0000)]
added dom_sid_string() function
(This used to be commit 399f95536bf64890284a51e4a2bbb7a15c91c3be)

20 years agoUpdate Copyright to 1992-2004
Stefan Metzmacher [Fri, 9 Jan 2004 06:59:48 +0000 (06:59 +0000)]
Update Copyright to 1992-2004

Jerry should I change this in 3_0 and HEAD as well?

metze
(This used to be commit 664f1e30f816ef64f85b5df841592675a6fe06f2)

20 years agofixed the rpc epmapper server. This fixes rpc over tcp.
Andrew Tridgell [Fri, 9 Jan 2004 02:43:23 +0000 (02:43 +0000)]
fixed the rpc epmapper server. This fixes rpc over tcp.
(This used to be commit 6ac547fa5fe4b1926bafc46e500b51486c7d500d)

20 years agoThis patch adds a better dcerpc server infastructure.
Stefan Metzmacher [Thu, 8 Jan 2004 22:55:27 +0000 (22:55 +0000)]
This patch adds a better dcerpc server infastructure.

1.) We now register endpoint servers add startup via register_backend()
    and later use the smb.conf 'dcerpc endpoint servers' parameter to setup the dcesrv_context

2.) each endpoint server can register at context creation time as much interfaces as it wants
    (multiple interfaces on one endpoint are supported!)
    (NOTE:  there's a difference between 'endpoint server' and 'endpoint'!
    for details look at rpc_server/dcesrv_server.h)

3.) one endpoint can have a security descriptor registered to it self
    this will be checked in the future when a client wants to connect
    to an smb pipe endpoint.

4.) we now have a 'remote' endpoint server, which works like the ntvfs_cifs module
    it takes this options in the [globals] section:

    dcerpc remote:interfaces = srvsvc, winreg, w32time, epmapper
    dcerpc remote:binding = ...
    dcerpc remote:user = ...
    dcerpc remote:password = ...

5.) we currently have tree endpoint servers: epmapper, rpcecho and remote

    the default for the 'dcerpc endpiont servers = epmapper, rpcecho'

    for testing you can also do
    dcerpc endpoint servers = rpcecho, remote, epmapper
    dcerpc remote:interfaces = srvsvc, samr, netlogon

6,) please notice the the epmapper now only returns NO_ENTRIES
    (but I think we'll find a solution for this too:-)

7.) also there're some other stuff left, but step by step :-)

This patch also includes updates for the
register_subsystem() , ntvfs_init(), and some other funtions
to check for duplicate subsystem registration

metze

(hmmm, my first large commit...I hope it works as supposed :-)
(This used to be commit 917e45dafd5be4c2cd90ff425b8d6f8403122349)

20 years agoremove a useless assignment
Stefan Metzmacher [Thu, 8 Jan 2004 06:48:54 +0000 (06:48 +0000)]
remove a useless assignment

metze
(This used to be commit 189ef6e73d04c3c02309b51a5b73e322abb82cdb)

20 years agoAdd note about new configure structure.
Jelmer Vernooij [Fri, 2 Jan 2004 13:47:13 +0000 (13:47 +0000)]
Add note about new configure structure.
(This used to be commit 43130f370b84828fce3eb5501464eb2c47138acc)

20 years agoAutodetect service_type in cli_tree_full_connection() if the caller
Tim Potter [Fri, 2 Jan 2004 01:04:59 +0000 (01:04 +0000)]
Autodetect service_type in cli_tree_full_connection() if the caller
passes in NULL.
(This used to be commit b63ebaa770940a276ab63583a13d8cc349b6efe6)

20 years agothe endpoint mapper now works in bigendian mode
Andrew Tridgell [Wed, 31 Dec 2003 01:32:33 +0000 (01:32 +0000)]
the endpoint mapper now works in bigendian mode
(This used to be commit 1f89d89954a3501e08efa97d1276ba9bb2d2305f)

20 years ago"subsystems" should be static
Andrew Tridgell [Tue, 30 Dec 2003 22:55:12 +0000 (22:55 +0000)]
"subsystems" should be static
(This used to be commit 64cf9b3fd3ad971973f6f1d73b924af225252837)

20 years agoremove some unused files
Andrew Tridgell [Mon, 22 Dec 2003 02:52:33 +0000 (02:52 +0000)]
remove some unused files
(This used to be commit a6f43de7f832fd1a9da8ccaadd293a4aa4647e6c)

20 years agominor updates to make the srvsvc test compile
Andrew Tridgell [Sun, 21 Dec 2003 07:57:49 +0000 (07:57 +0000)]
minor updates to make the srvsvc test compile
(This used to be commit 564e505e925d67be00ca2cbe21b2b9b33a1ac0c7)

20 years agowkssvc test updates from metze
Andrew Tridgell [Sun, 21 Dec 2003 07:53:57 +0000 (07:53 +0000)]
wkssvc test updates from metze
(This used to be commit 9d3e06f0e312c5585701aa385132f23dfb2917eb)

20 years agolatest srvsvc and wkssvc IDL from metze
Andrew Tridgell [Sat, 20 Dec 2003 21:50:51 +0000 (21:50 +0000)]
latest srvsvc and wkssvc IDL from metze
(This used to be commit 59557a557df6e61af4f01534489691416398fb26)

20 years agotim, I'm guessing you really didn't want to add this :)
Andrew Tridgell [Sat, 20 Dec 2003 21:09:04 +0000 (21:09 +0000)]
tim, I'm guessing you really didn't want to add this :)
(This used to be commit a65edfbcd7aa495e91073a076ea131a64e6ed5aa)

20 years agoRemove Makefile targets for old python extensions.
Tim Potter [Sat, 20 Dec 2003 09:23:48 +0000 (09:23 +0000)]
Remove Makefile targets for old python extensions.
(This used to be commit 9355538a9249012d1685967a87e5a6cb795e5c2c)

20 years agoaddition of samr_SetSecurity() from kai
Andrew Tridgell [Fri, 19 Dec 2003 23:44:26 +0000 (23:44 +0000)]
addition of samr_SetSecurity() from kai

we needed to adjust the alignment of [relative] buffers for this to
work. I wonder if they are always 4 byte aligned?
(This used to be commit 9cd0a0b8b976e62c6da71b7e55cba5b38483620d)

20 years agofixed removal of moe than one ncacn_* option from option list
Andrew Tridgell [Fri, 19 Dec 2003 04:26:26 +0000 (04:26 +0000)]
fixed removal of moe than one ncacn_* option from option list
(This used to be commit 09a9b25c8d916c0467a124d959d5cd911b782dfa)

20 years agofixed the AddAliasMem test code
Andrew Tridgell [Fri, 19 Dec 2003 04:13:39 +0000 (04:13 +0000)]
fixed the AddAliasMem test code
(This used to be commit abe7ffcece5fcb75b0cf5633dd5871fa3e3c1723)

20 years agoadded a bunch of alias functions in samr.idl based on work by Kai.
Andrew Tridgell [Fri, 19 Dec 2003 03:59:27 +0000 (03:59 +0000)]
added a bunch of alias functions in samr.idl based on work by Kai.
(This used to be commit f740b02ac36780740700909da2bcdf672cb146cb)

20 years agoadded code to the IDL validator to check for common errors with
Andrew Tridgell [Fri, 19 Dec 2003 00:40:40 +0000 (00:40 +0000)]
added code to the IDL validator to check for common errors with
pointers are arrays
(This used to be commit e67cbfff6c1041671711e4f73894e6e13151d57e)

20 years agofixed a segv in RPC-* when debug level > 2
Andrew Tridgell [Wed, 17 Dec 2003 21:37:34 +0000 (21:37 +0000)]
fixed a segv in RPC-* when debug level > 2
thanks to Kai for spotting this!
(This used to be commit 0fc42c33d3b0930fdf1dc71a407f4fcaac69d82d)

20 years agoFix typo.
Tim Potter [Wed, 17 Dec 2003 03:38:06 +0000 (03:38 +0000)]
Fix typo.
(This used to be commit 3f1b781c5659361d7e9cc3ab2072e1462d40df55)

20 years agofixed a bug in the acct_flags checking on CreateUser2 in the RPC-SAMR test
Andrew Tridgell [Wed, 17 Dec 2003 02:35:04 +0000 (02:35 +0000)]
fixed a bug in the acct_flags checking on CreateUser2 in the RPC-SAMR test
(This used to be commit 2c9a999c5421a07ae3059595f70d5533f2040a03)

20 years agoDelete old python bindings.
Tim Potter [Wed, 17 Dec 2003 02:18:36 +0000 (02:18 +0000)]
Delete old python bindings.
(This used to be commit d7b680899fedb0b6f8169845791d7284e8d203ba)

20 years agoadded a smb.conf flag "rpc big endian" that tells our rpc server to
Andrew Tridgell [Wed, 17 Dec 2003 02:06:44 +0000 (02:06 +0000)]
added a smb.conf flag "rpc big endian" that tells our rpc server to
send packets in bigendian format.
(This used to be commit 44df662960e662a55a9f27627f838771503a7a59)

20 years agoremoved some unused functions
Andrew Tridgell [Tue, 16 Dec 2003 12:59:20 +0000 (12:59 +0000)]
removed some unused functions
(This used to be commit 09d17d705a6e378a7c1a40b29d2e091200b6d757)

20 years agofixed formatting of uuids in debug output
Andrew Tridgell [Tue, 16 Dec 2003 12:11:00 +0000 (12:11 +0000)]
fixed formatting of uuids in debug output
(This used to be commit 7895796ef8a0dfe5de1404e630b2489fdec39a56)

20 years agoadded a define for the DCERPC little-endian data representation flag
Andrew Tridgell [Tue, 16 Dec 2003 11:24:28 +0000 (11:24 +0000)]
added a define for the DCERPC little-endian data representation flag
(This used to be commit 691f9c1c4448fb54846fcfffeca43601bcd44138)

20 years agofixed the RPC-MGMT and RPC-SCANNER tests to work with the new
Andrew Tridgell [Tue, 16 Dec 2003 10:57:17 +0000 (10:57 +0000)]
fixed the RPC-MGMT and RPC-SCANNER tests to work with the new
dcerpc_binding_string code
(This used to be commit 1fa68c18facfb6c96d5a274cfd9560cb4b2956f6)

20 years agono longer require the pipe name or tcp port number to be the first
Andrew Tridgell [Tue, 16 Dec 2003 10:15:21 +0000 (10:15 +0000)]
no longer require the pipe name or tcp port number to be the first
option in the ncacn_* syntax
(This used to be commit 74f36d32bb14e94a80e1963cbc95f8fba3f23335)

20 years agouse bigendian mode to fix the idl for samr_LogonHours
Andrew Tridgell [Tue, 16 Dec 2003 10:09:02 +0000 (10:09 +0000)]
use bigendian mode to fix the idl for samr_LogonHours
(This used to be commit 1056618b6a70b32fc17a8290f3efa3334fa1b049)

20 years agomuch better docs on the smbtorture ncacn syntax, including how to
Andrew Tridgell [Tue, 16 Dec 2003 09:55:09 +0000 (09:55 +0000)]
much better docs on the smbtorture ncacn syntax, including how to
choose bigendian smbtorture on the command line
(This used to be commit 31d8e0a7cf9ab6e0cd23056333672de94d6a95b0)

20 years agoit turns out that a wire policy handle isn't a blob either, its a
Andrew Tridgell [Tue, 16 Dec 2003 09:50:49 +0000 (09:50 +0000)]
it turns out that a wire policy handle isn't a blob either, its a
uint32 followed by a GUID. I needed to fix this to support running in
mixed-mode rpc (where smbtorture is bigendian and w2k3 is
little-endian). Otherwise when you send back a policy handle the
server doesn't recognise it.
(This used to be commit 9b1c76a8e9e953e051072441f8938ee17a674d35)

20 years agoadded support for big-endian ucs2 strings (as used by big-endian
Andrew Tridgell [Tue, 16 Dec 2003 09:20:34 +0000 (09:20 +0000)]
added support for big-endian ucs2 strings (as used by big-endian
msrpc).

this was easier than I expected!
(This used to be commit a0a51af6b746b1f82faaa49d33c17fea9d708fb0)

20 years agoa fairly large commit!
Andrew Tridgell [Tue, 16 Dec 2003 09:02:58 +0000 (09:02 +0000)]
a fairly large commit!

This adds support for bigendian rpc in the client. I have installed
SUN pcnetlink locally and am using it to test the samba4 rpc
code. This allows us to easily find places where we have stuffed up
the types (such as 2 uint16 versus a uint32), as testing both
big-endian and little-endian easily shows which is correct. I have now
used this to fix several bugs like that in the samba4 IDL.

In order to make this work I also had to redefine a GUID as a true
structure, not a blob. From the pcnetlink wire it is clear that it is
indeed defined as a structure (the byte order changes). This required
changing lots of Samba code to use a GUID as a structure.

I also had to fix the if_version code in dcerpc syntax IDs, as it
turns out they are a single uint32 not two uint16s.

The big-endian support is a bit ugly at the moment, and breaks the
layering in some places. More work is needed, especially on the server
side.
(This used to be commit bb1af644a5a7b188290ce36232f255da0e5d66d2)

20 years agothe out substructure is not empty if there is a return from the
Andrew Tridgell [Tue, 16 Dec 2003 04:15:51 +0000 (04:15 +0000)]
the out substructure is not empty if there is a return from the
function
(This used to be commit d18a08a870aa9ee12ed2913775b70d1b8a09c84b)

20 years agoenable rep_inet_ntoa() for non-pthread builds
Andrew Tridgell [Tue, 16 Dec 2003 04:10:47 +0000 (04:10 +0000)]
enable rep_inet_ntoa() for non-pthread builds
(This used to be commit f50d4b602af73045e5b15d62fd24224eba849fd1)

20 years agomore mutex portability.
Andrew Tridgell [Tue, 16 Dec 2003 03:45:04 +0000 (03:45 +0000)]
more mutex portability.
(This used to be commit 42dd8d888a1d4c09aebb199e8636f49df6d2e36a)

20 years agosome compilers can't handle structures with no elements. Generate
Andrew Tridgell [Tue, 16 Dec 2003 03:44:32 +0000 (03:44 +0000)]
some compilers can't handle structures with no elements. Generate
dummy elements if need be.
(This used to be commit b6fdc984023a76a6c77d03cb3ec12c6c18d215a6)

20 years agomore portability fixes. We now almost compile on solaris
Andrew Tridgell [Tue, 16 Dec 2003 03:34:23 +0000 (03:34 +0000)]
more portability fixes. We now almost compile on solaris
(This used to be commit f4abd20b8437703211676fb12ea23af8f0e4642a)

20 years agouse smb_rwlock_t instead of rwlock_t to avoid conflicts with system
Andrew Tridgell [Tue, 16 Dec 2003 03:27:36 +0000 (03:27 +0000)]
use smb_rwlock_t instead of rwlock_t to avoid conflicts with system
types on some platforms (eg. solaris)
(This used to be commit ac8a23af8c67d2e39bb6cfd409c50f1f429cf271)

20 years agodon't rely on the ability of perl 5.6.x to remove elements from arrays
Andrew Tridgell [Tue, 16 Dec 2003 03:21:34 +0000 (03:21 +0000)]
don't rely on the ability of perl 5.6.x to remove elements from arrays
using delete(). This makes pidl portable back to perl 5.0.
(This used to be commit 9175293535246f55f50f52501ec451c951a94eb1)

20 years agomake sure we have a value for DEFAULT_PRINTING on all platforms
Andrew Tridgell [Tue, 16 Dec 2003 02:59:30 +0000 (02:59 +0000)]
make sure we have a value for DEFAULT_PRINTING on all platforms
(This used to be commit d0bef33ffa21ce5caaf8e052cbbd2bb32db40b0c)

20 years agoremove a redundent second check for PAM
Andrew Tridgell [Tue, 16 Dec 2003 01:10:03 +0000 (01:10 +0000)]
remove a redundent second check for PAM
(This used to be commit dbc6f31df884268ba649c9d73c6e27eaa79d4cc4)

20 years agocope with different cpp formatting on some systems, and make sure we
Andrew Tridgell [Tue, 16 Dec 2003 00:38:33 +0000 (00:38 +0000)]
cope with different cpp formatting on some systems, and make sure we
don't loop forever if we get a cpp format line we don't understand
(This used to be commit 003c6c493b1babadb1f7c4eb54babed394bd42a9)

20 years agouse the @CPP@ value from configure if possible when determining cpp in
Andrew Tridgell [Mon, 15 Dec 2003 22:06:18 +0000 (22:06 +0000)]
use the @CPP@ value from configure if possible when determining cpp in
pidl
(This used to be commit c47e88dabfc62db7533d2d39c7f1010b4188d2ea)

20 years agolets see if "cc -E" keeps more of the build farm happy then "cpp"
Andrew Tridgell [Mon, 15 Dec 2003 21:55:42 +0000 (21:55 +0000)]
lets see if "cc -E" keeps more of the build farm happy then "cpp"

We'll probably need a configure entry for this
(This used to be commit 66e648f20ffd34e2cff1b94003db9974d2bac318)

20 years agolots of shells don't have the -nt test, so use hackish find command
Andrew Tridgell [Mon, 15 Dec 2003 12:13:34 +0000 (12:13 +0000)]
lots of shells don't have the -nt test, so use hackish find command
instead
(This used to be commit 2d57346c2d07e43c4630a7f7963173d84c5a7c92)

20 years agoadded "pidl.pl --template" to dump a rough template to save typing
Andrew Tridgell [Mon, 15 Dec 2003 10:55:10 +0000 (10:55 +0000)]
added "pidl.pl --template" to dump a rough template to save typing
when starting a pipe. Thanks to metze for a script that gave the idea.

do something like this to use it:

  pidl.pl --parse --template librpc/idl/XXX.idl > rpc_server/XXX/rpc_XXX.c

then fill in the functions in rpc_XXX.c
(This used to be commit 68e71d7497ddc7b8239fc4bd7cb3e780a1f53a39)

20 years agofixed srvsvc DiskEnum call
Andrew Tridgell [Mon, 15 Dec 2003 10:21:09 +0000 (10:21 +0000)]
fixed srvsvc DiskEnum call
strangely, the output doesn't seem to contain an info level. Some
programmer stuffed up the IDL :)
(This used to be commit a39ee5d00341e1dbde0b38474ba4d5e980e74538)

20 years agopatch from metze with updates to srvsvc and changes to pidl to allow
Andrew Tridgell [Mon, 15 Dec 2003 09:18:53 +0000 (09:18 +0000)]
patch from metze with updates to srvsvc and changes to pidl to allow
for the server rpc boilerplate to correctly generate for multiple
interfaces on an endpoint
(This used to be commit 56143689ecf623e8a6ef5c453e6ad1ca9404411c)

20 years agomake sure we allow clients to negotiate ntlmssp seal if they want it
Andrew Tridgell [Mon, 15 Dec 2003 08:59:25 +0000 (08:59 +0000)]
make sure we allow clients to negotiate ntlmssp seal if they want it
(This used to be commit a1275c1e89462f0a3cce73066777055c3c970b76)

20 years agomake pidl no longer dependent on Data::Dumper, which isn't installed
Andrew Tridgell [Mon, 15 Dec 2003 08:58:00 +0000 (08:58 +0000)]
make pidl no longer dependent on Data::Dumper, which isn't installed
on some systems
(This used to be commit a4aa9168c0f80cf6e758c380d41335db50d06869)

20 years agofixed a typo in the m4 file
Andrew Tridgell [Mon, 15 Dec 2003 08:37:42 +0000 (08:37 +0000)]
fixed a typo in the m4 file
(This used to be commit e472053bcc4761411fc03920672c1739af3bfb68)

20 years ago"make idl" is now incremental and "make idl_full" is a full idl build
Andrew Tridgell [Mon, 15 Dec 2003 05:41:05 +0000 (05:41 +0000)]
"make idl" is now incremental and "make idl_full" is a full idl build
(This used to be commit 113e772e3750ca1e661157394ccff1b59da76ceb)

20 years agoa script fix for the build farm
Andrew Tridgell [Mon, 15 Dec 2003 05:37:15 +0000 (05:37 +0000)]
a script fix for the build farm
(This used to be commit 5f6b0baa300d088a6d7fb91fcbceff594292eaa0)