1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

286 Commits

Author SHA1 Message Date
Stefan Metzmacher
dd1e2cd0d7 r703: only use $PERL -W when --enable-debug
metz
(This used to be commit 6289da6783d91637a6be76a4e5444fc22570eca0)
2007-10-10 12:53:44 -05:00
Stefan Metzmacher
4f0356d9e0 r701: change debug messages a bit
metze
(This used to be commit 03babc5af2552e611bb8f659e14549a580922d72)
2007-10-10 12:53:43 -05:00
Stefan Metzmacher
77c30ebe9e r700: fix SMB_LIBRARY() to disable the lib by default
metze
(This used to be commit b6ac3021f275ba6b0ee0035933c290db4e8bda00)
2007-10-10 12:53:43 -05:00
Stefan Metzmacher
90e3150099 r696: fix formating
add pkg-config --libs-only-L to linker flags

metze
(This used to be commit cfefe907cce05512a200bd4a3de0b3829f7b0ddb)
2007-10-10 12:53:43 -05:00
Stefan Metzmacher
722ae56f6a r695: don't add libs andlinkerflags to STATIC_LIBRARY
metze
(This used to be commit 2edc46eabe59d6e430199f68e37fb49875a72d28)
2007-10-10 12:53:43 -05:00
Stefan Metzmacher
bb1bb2dee7 r691: add
--
make binary_smbd
make library_libldb
make module_ntvfs_simple
--
style make rules which depend on make basics, so make idl proto is called by them

metze
(This used to be commit bbec0b6c95d7d01ac36bb0820b2049db57fd2a2c)
2007-10-10 12:53:43 -05:00
Stefan Metzmacher
d5ba19d008 r690: - ignore source/tags
- add support for shared libraries

- enable libldb shared lib when --enable-experimental

metze
(This used to be commit dcef69dc54a2575e7f57d67d1983482b4ff57bdb)
2007-10-10 12:53:42 -05:00
Stefan Metzmacher
3f564db67d r688: add --enable-experimental
use Data::Dumper for config.smb_build.dump
when --enable-debug

metze
(This used to be commit 0fd558de796e5798279e8252a7f0d4efdd3a86e6)
2007-10-10 12:53:42 -05:00
Stefan Metzmacher
2b7de39bd2 r687: add newline at eof
metze
(This used to be commit 38fd7c5e1a8ee5dcc0e5e6af765fb81f6f7c4111)
2007-10-10 12:53:42 -05:00
Jelmer Vernooij
0048335d9e r686: - Add SMB_EXT_LIB_FROM_PKGCONFIG()
- Build gregedit and registry_gconf again if the required libs are found (gconf and gtk)
(This used to be commit a63b704c36f2f5b52e932b6b2c99e7d664c9bdc7)
2007-10-10 12:53:42 -05:00
Jelmer Vernooij
61ff3d4296 r682: Typo fixes
(This used to be commit 767ba7bd52d7fa98524a553d86dca657c5290424)
2007-10-10 12:53:42 -05:00
Stefan Metzmacher
4b08f42c0d r680: fail directly when we notice that perl is not there
(we fail anyway)

metze
(This used to be commit 9f6deb7d795fbddc973e84a45ecb1273aa4f3aea)
2007-10-10 12:53:41 -05:00
Stefan Metzmacher
30d726082e r679: fix make install
metze
(This used to be commit 17bb581ab617c9a1883a3a4028ddac94aa2d5980)
2007-10-10 12:53:41 -05:00
Stefan Metzmacher
fa069fdf4d r678: use ./config.smb_build.pl instead of config.smb_build.pl
metze
(This used to be commit 3de5bf894e71ce9a7a0464f2245a64822a34cc5a)
2007-10-10 12:53:41 -05:00
Stefan Metzmacher
7624b3231d r677: fix: '$' -> '\$'
metze
(This used to be commit 89c3780c15687c16d4607c912f71d1082690af76)
2007-10-10 12:53:41 -05:00
Stefan Metzmacher
25b9531e5f r674: use the same -I flags as before
metze
(This used to be commit e7c9e56a5d889497f63c65582f064e02d4442e36)
2007-10-10 12:53:41 -05:00
Stefan Metzmacher
93263d375b r671: fix make ./include/proto.h
metze
(This used to be commit 9312b9cd611373468d5b89c9480646170a49db5b)
2007-10-10 12:53:41 -05:00
Stefan Metzmacher
4c83bc7499 r670: add make everything
metze
(This used to be commit 3f942ac521ffbb970345519775f20284be393e60)
2007-10-10 12:53:40 -05:00
Stefan Metzmacher
c2236f1a8b r667: remove Data::Dumper dependecy
metze
(This used to be commit eae450f219701e156a5bd0fd7096dd7fe7da6e2b)
2007-10-10 12:53:40 -05:00
Stefan Metzmacher
5ad0ccbd59 r666: readd 'make etags' and 'make ctags'
metze
(This used to be commit fcab9867f90f86c329d82925549c2f9733131ab5)
2007-10-10 12:53:40 -05:00
Stefan Metzmacher
f236700ef6 r665: merge over the new build system from my tmp branch
to the main SAMBA_4_0 tree.

NOTE: that it's not completely ready, but it's functional:-)

metze
(This used to be commit c78a2ddb28ec50d6570a83b1f66f18a5c3621731)
2007-10-10 12:53:36 -05:00
Stefan Metzmacher
085df45264 r641: readd 'use dump;'
metze
(This used to be commit 8e2c08f8c7f9481d64b87e7d45e98bc48661efbb)
2007-10-10 12:51:56 -05:00
Stefan Metzmacher
e8d3e37524 r638: remove unused dependency to Data::Dumper and dump
(fix some  build farm hosts)

metze
(This used to be commit 8735a393c19711cc0f0cf392684d523b1abd2878)
2007-10-10 12:51:56 -05:00
Tim Potter
005eb6b502 r617: Sync some minor updates with repository:
- start handing idl string types
  - comments
  - generate field types
  - code to select field types and bases
(This used to be commit 3d4148c07c46d5d99bd91e1985540cc4e59db2bc)
2007-10-10 12:51:52 -05:00
Tim Potter
1f2fa49b20 r604: Better dumping of in,out,ref properties.
(This used to be commit 209f5a25a950e8780e9512b71fbb12b1cdbe1a17)
2007-10-10 12:51:50 -05:00
Tim Potter
0221717a62 r602: Autogenerated packet-dcerpc-samr.c now compiles!
(This used to be commit 0c1069b56e7c80e2b428f6a6b550eacd5ac3d762)
2007-10-10 12:51:50 -05:00
Tim Potter
b91eb9e73a r600: Get rid of trailing whitespace which freaks out emacs' fontification.
(This used to be commit d0383e9a7a0a5bee9a52ddc81d5f89c9f01c269b)
2007-10-10 12:51:49 -05:00
Tim Potter
5c50f79b86 r597: Start generating parser code - only supports uint16, uint32 and policy
handle types.
(This used to be commit 1e02ccd94edc87f4107d21f7f778f1a88c9e197d)
2007-10-10 12:51:49 -05:00
Tim Potter
a10936532e r589: Fix IDL dump module so --dump and --diff options to pidl.pl work
again.  Still a few problems left though.
(This used to be commit e921a5879f8a5a867dce61e684a0010a5dab9472)
2007-10-10 12:51:49 -05:00
Tim Potter
dee25d910e r550: Remove clientfns.pm module - it was a bad idea.
Start to resurrect eparser.pm for auto-generating ethereal dissectors
for rpc.
(This used to be commit 993a18dd35fb0b09c088eb2bb38d3e14ff755130)
2007-10-10 12:51:47 -05:00
Andrew Tridgell
21e6b1531b r464: a big improvement to the API for writing server-side RPC
servers. Previously the server pipe code needed to return the RPC
level status (nearly always "OK") and separately set the function call
return using r->out.result. All the programmers writing servers
(metze, jelmer and me) were often getting this wrong, by doing things
like "return NT_STATUS_NO_MEMORY" which was really quite meaningless
as there is no code like that at the dcerpc level.

I have now modified pidl to generate the necessary boilerplate so that
just returning the status you want from the function will work. So for
a NTSTATUS function you return NT_STATUS_XXX and from a WERROR
function you return WERR_XXX. If you really want to generate a DCERPC
level fault rather than just a return value in your function then you
should use the DCESRV_FAULT() macro which will correctly generate a
fault for you.

As a side effect, this also adds automatic type checking of all of our
server side rpc functions, which was impossible with the old API. When
I changed the API I found and fixed quite a few functions with the
wrong type information, so this is definately useful.

I have also changed the server side template generation to generate a
DCERPC "operation range error" by default when you have not yet filled
in a server side function. This allows us to correctly implement
functions in any order in our rpc pipe servers and give the client the
right information about the fault.
(This used to be commit a4df5c7cf88891a78d82c8d6d7f058d8485e73f0)
2007-10-10 12:51:44 -05:00
Stefan Metzmacher
a37c408fc4 r419: Data::Dumper is not portable
use it only for debugging in a local tree

metze
(This used to be commit 7c53e05b4874143e8e8cd0034ab5a6a986e7994c)
2007-10-10 12:51:37 -05:00
Andrew Tridgell
0d1c529cdc r363: nicer error handling in pidl
(This used to be commit cafc8a5e763834a26432c467abfe84f140bb7d80)
2007-10-10 12:51:35 -05:00
Tim Potter
3dce6f1e23 r356: Start of auto-generated client functions. Tridge can you take a look
and tell me what you think?  Output does not compile yet.
(This used to be commit 65692c9a9301329ad93628778e3d8f9188a67059)
2007-10-10 12:51:34 -05:00
Stefan Metzmacher
91b30df39b r147: - Remove dublicate ldap tests (richard the current test is in libads/config.m4 :-)
- Move sendfile check to ntvfs/config.m4
- Move comparison_fn_t check to build/m4/rewrite.m4

Please do not new tests to configure.in directly,
please add them to the subsystems config.m4 file where they belong to or
to build/m4/rewrite.m4 if you don't know where to put it for now

Thanks

I know samba4's build system is not completly rewritten.
I have a lot of updatest in my local tree, but it's not complete yet
when it's complete I'll write documentation for it:-)

metze
(This used to be commit 31c23f14d60a4aa41e0500e369f25ed6dc7ddae7)
2007-10-10 12:51:11 -05:00
Stefan Metzmacher
220ea5b6e6 r55: if you try to use a custom bind or unbind hook in
a dcesrv module and also use the autogenerated boilerplate
you can just use:

#define DCESRV_INTERFACE_<UPPERCASE_INTERFACE_NAME>_BIND <interface_name>_bind
#define DCESRV_INTERFACE_<UPPERCASE_INTERFACE_NAME>_UNBIND <interface_name>_unbind

the prototype for the functions are the same as in
struct dcesrv_interface {
...
	/* this function is called when the client binds to this interface  */
	NTSTATUS (*bind)(struct dcesrv_call_state *, const struct dcesrv_interface *);

	/* this function is called when the client disconnects the endpoint */
	void (*unbind)(struct dcesrv_connection *, const struct dcesrv_interface *);
...
};

e.g.

#define DCESRV_INTERFACE_WINREG_BIND winreg_bind
#define DCESRV_INTERFACE_WINREG_UNBIND winreg_unbind

metze
(This used to be commit ae97f5f50b0d00889f29e1903513cee88891545d)
2007-10-10 12:50:40 -05:00
Gerald Carter
381a903d00 r42: importing .cvsignore files
(This used to be commit 11717ae912449bde596ff6cf7d8fddcc86548f15)
2007-10-10 12:50:40 -05:00
Stefan Metzmacher
42887e406a - creat the LIBCMDLINE subsystem
including readline and popt

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

metze
(This used to be commit bfd7fd21c8e38c0065fc41dde10e863a169878c2)
2004-02-22 13:09:51 +00:00
Stefan Metzmacher
64cdbddbc1 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

metze
(This used to be commit da5f22976fb40ec96160439c7a926a15805fc7f0)
2004-02-18 15:31:25 +00:00
Stefan Metzmacher
932026724f remove unused NISPLUS/AUTOMOUNT stuff
metze
(This used to be commit cbfa29549e5b302f947c7f2ca14fbea257e46c33)
2004-02-18 13:55:15 +00:00
Stefan Metzmacher
7653fc6835 move external configure test programs
from tests/*.c to build/tests/*.c

metze
(This used to be commit dea3a3acbfe2341f9276ceaec2a42f0931e2c336)
2004-02-13 15:20:52 +00:00
Stefan Metzmacher
f08565bd3a 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

metze
(This used to be commit 3abb0fd19b27261e2b9fa46f287162be8f096913)
2004-02-13 15:03:46 +00:00
Stefan Metzmacher
894e02f80c some DEBUG and comment fixes
metze
(This used to be commit 5ac4f878687eb0fa95a2e5830a8372168a27d3b3)
2004-02-02 13:28:29 +00:00
Stefan Metzmacher
b1d8f234bf 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)
2004-01-22 02:02:27 +00:00
Stefan Metzmacher
55dfa23e41 initilize ev->maxfd = EVENT_INVALID_MAXFD; before the while() loop.
metze
(This used to be commit 61ec710518469876ccc48d57b5fee5d6ead3d482)
2004-01-22 01:56:31 +00:00
Stefan Metzmacher
0831b8b9f5 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)
2004-01-22 01:29:44 +00:00
Andrew Tridgell
fb15b95bc5 added a little bit of const magic to get rid of the data in librpc/gen_ndr/*.o
(This used to be commit 866ef2edab91996964c8b43dbdd417f5908a00e1)
2004-01-22 01:12:43 +00:00
Stefan Metzmacher
7e6cf43756 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)
2004-01-08 22:55:27 +00:00
Andrew Tridgell
f46072d223 added code to the IDL validator to check for common errors with
pointers are arrays
(This used to be commit e67cbfff6c1041671711e4f73894e6e13151d57e)
2003-12-19 00:40:40 +00:00
Andrew Tridgell
24c22aef90 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)
2003-12-16 09:02:58 +00:00