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

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

17 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

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

17 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
(This used to be commit bb1af644a5a7b188290ce36232f255da0e5d66d2)

17 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
(This used to be commit d18a08a870aa9ee12ed2913775b70d1b8a09c84b)

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

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

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

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

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

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

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

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

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

17 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
(This used to be commit c47e88dabfc62db7533d2d39c7f1010b4188d2ea)

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

17 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
(This used to be commit 2d57346c2d07e43c4630a7f7963173d84c5a7c92)

17 years agoadded " --template" to dump a rough template to save typing
Andrew Tridgell [Mon, 15 Dec 2003 10:55:10 +0000 (10:55 +0000)]
added " --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: --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)

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

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

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

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

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

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

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

17 years agodisable pam in samba4 until someone fixes it (hi andrew!)
Andrew Tridgell [Mon, 15 Dec 2003 04:35:56 +0000 (04:35 +0000)]
disable pam in samba4 until someone fixes it (hi andrew!)
(This used to be commit 1012c6e3f763962955a21e4c91285656b4e89ccf)

17 years agodon't try and build the libclient stuff in samba4 yet
Andrew Tridgell [Mon, 15 Dec 2003 04:07:16 +0000 (04:07 +0000)]
don't try and build the libclient stuff in samba4 yet
(This used to be commit 65d2bda9509a9455f70eceac51ecef9b2048773d)

17 years agomore flexible handling of [] in binding strings
Andrew Tridgell [Mon, 15 Dec 2003 03:41:08 +0000 (03:41 +0000)]
more flexible handling of [] in binding strings
(This used to be commit edc67fffeaee5fe4bbbc6fbd76345d0a9d5b2093)

17 years agoadded some ncacn_* binding string examples
Andrew Tridgell [Mon, 15 Dec 2003 03:40:45 +0000 (03:40 +0000)]
added some ncacn_* binding string examples
(This used to be commit 4a6822eb5b9e880b1fb33c020aa88192384a063c)

17 years agoallow the specification of full dcerpc endpoint binding strings on the
Andrew Tridgell [Mon, 15 Dec 2003 03:29:55 +0000 (03:29 +0000)]
allow the specification of full dcerpc endpoint binding strings on the
command line. This allows you to (for example) control signing/sealing
of smbtorture RPC sessions
(This used to be commit a73825eb496d5924012ea926fcbac8c956fe081e)

17 years agoswitch off the default of ntlmssp on rpc on smb as some windows pipes
Andrew Tridgell [Mon, 15 Dec 2003 01:09:45 +0000 (01:09 +0000)]
switch off the default of ntlmssp on rpc on smb as some windows pipes
can't handle it (I'd switched it on while experimenting, and forgot to
switch it off before committing)
(This used to be commit 837d8f73a9601329cec0f885df84648a2a3c196d)

17 years agofixed the handling of zero-length top level arrays in pidl
Andrew Tridgell [Mon, 15 Dec 2003 01:07:08 +0000 (01:07 +0000)]
fixed the handling of zero-length top level arrays in pidl
(This used to be commit fa45529af72090c2604708a651d5e5714a844d72)

17 years agozero length echo is not an error
Andrew Tridgell [Mon, 15 Dec 2003 01:06:01 +0000 (01:06 +0000)]
zero length echo is not an error
(This used to be commit f21d6351d0441e5bc77aca07a2863ef9f999bb92)

17 years agofixed the transfer syntax in the dcerpc bind reply
Andrew Tridgell [Mon, 15 Dec 2003 00:40:57 +0000 (00:40 +0000)]
fixed the transfer syntax in the dcerpc bind reply
(This used to be commit 39a7c660f4b7cafb0414842329669dd4724b07db)

17 years agoadded auto-generation of the server side boilerplate code for each
Andrew Tridgell [Sun, 14 Dec 2003 13:22:12 +0000 (13:22 +0000)]
added auto-generation of the server side boilerplate code for each

The server side code gets generated as librpc/gen_ndr/ndr_NAME_s.c and
gets included in the pipe module
(This used to be commit bd3dcfe5820489a838e19b244266bd9126af5eb4)

17 years agotypo
Simo Sorce [Sun, 14 Dec 2003 12:27:51 +0000 (12:27 +0000)]
(This used to be commit 2afbd1e0005517d8ceb584ccbf8a85c4527cb866)

17 years agofixed fragmented signed connections to our rpc server over SMB
Andrew Tridgell [Sun, 14 Dec 2003 12:21:21 +0000 (12:21 +0000)]
fixed fragmented signed connections to our rpc server over SMB
(This used to be commit f5df126c254bcb96dfb42096d7247215c7e7a89a)

17 years agoreduce double explanation of FIXED ARRAYS
Simo Sorce [Sun, 14 Dec 2003 12:04:55 +0000 (12:04 +0000)]
reduce double explanation of FIXED ARRAYS
(This used to be commit 6f33109b102d41d98ffd536fe2234fbaae85b02e)

17 years agontlmssp over rpc over tcp now fully works
Andrew Tridgell [Sun, 14 Dec 2003 10:45:50 +0000 (10:45 +0000)]
ntlmssp over rpc over tcp now fully works

I needed to hack the ntlmssp code a little, as the auth code in samba4
is out of date relative to the samba3 auth code. I need to do a merge :)
(This used to be commit 6ee0935afe9444bf9bb24eed4e02e8377dc746b7)

17 years agofix _ptr_ declaration
Andrew Tridgell [Sun, 14 Dec 2003 08:44:38 +0000 (08:44 +0000)]
fix _ptr_ declaration
(This used to be commit 5fed4681edc93405a8b39080adfe72af8beea65d)

17 years agofixed some memory leaks in the rpc server code
Andrew Tridgell [Sun, 14 Dec 2003 03:51:48 +0000 (03:51 +0000)]
fixed some memory leaks in the rpc server code
(This used to be commit 20458556017f426ab57ca9a9d098cacecefbdcff)

17 years agofixed a bug handling multiple PDUs being read from a socket at one
Andrew Tridgell [Sun, 14 Dec 2003 01:09:10 +0000 (01:09 +0000)]
fixed a bug handling multiple PDUs being read from a socket at one
time in the rpc server.

started on the framework for the dcerpc authentication server code
(This used to be commit 74041b6a0a60d792e1b220496d66ec27b9ee6c25)

17 years agoadd the ntlmssp calls back into smbtorture on rpc over tcp. The samba4
Andrew Tridgell [Sat, 13 Dec 2003 23:30:43 +0000 (23:30 +0000)]
add the ntlmssp calls back into smbtorture on rpc over tcp. The samba4
rpc server doesn't do ntlmssp yet, so this breaks the tests, but that
is the next step.
(This used to be commit ebe29305af82553ef0197d1950b57f8ff8efa78b)

17 years agocompleted the linkage between the endpoint mapper and the dcerpc
Andrew Tridgell [Sat, 13 Dec 2003 23:25:15 +0000 (23:25 +0000)]
completed the linkage between the endpoint mapper and the dcerpc
server endpoints. We can now successfully setup listening endpoints on
high ports, then use our endpoint mapper redirect incoming clients to
the right port.

also greatly cleanup the rpc over tcp session handling.
(This used to be commit 593bc29bbe0e46d356d001160e8a3332a88f2fa8)

17 years agomake the IO in the dcerpc over TCP server completely async, handling
Andrew Tridgell [Sat, 13 Dec 2003 11:44:28 +0000 (11:44 +0000)]
make the IO in the dcerpc over TCP server completely async, handling
partial packets on both input and output
(This used to be commit 4f46606af880f6dd86c20b8dc5799102a8e80cc9)

17 years agodcerpc over tcp in the samba4 server now works to some extent. It
Andrew Tridgell [Sat, 13 Dec 2003 10:58:48 +0000 (10:58 +0000)]
dcerpc over tcp in the samba4 server now works to some extent. It
needs quite a bit more work to get it finished. The biggest missing
feature is the lack of NTLMSSP which is needed for basic
authentication over tcp
(This used to be commit 9fb0f0369356909c99389e2cbc525be27c08793c)

17 years agorpcdump.exe now works fine against a Samba4 server
Andrew Tridgell [Sat, 13 Dec 2003 04:46:50 +0000 (04:46 +0000)]
rpcdump.exe now works fine against a Samba4 server

for some reason the epm_Lookup replies can't be parsed by ethereal,
although w2k parses then fine as does the Samba4 NDR code.
(This used to be commit 097e7ca99d947932df5674c36e628ca6b8f31d3a)

17 years agoadded the epm_Map() call.
Andrew Tridgell [Sat, 13 Dec 2003 03:23:41 +0000 (03:23 +0000)]
added the epm_Map() call.

the RPC-EPMAPPER torture test now passes
(This used to be commit fbdcf9ef548aefb1233cbb22a60bff3eacba996f)

17 years agoadded a basic dcerpc endpoint mapper to Samba4. Currently only
Andrew Tridgell [Sat, 13 Dec 2003 02:20:40 +0000 (02:20 +0000)]
added a basic dcerpc endpoint mapper to Samba4. Currently only
implements the epm_Lookup() call, I'll add the other important calls
soon. I was rather pleased to find that epm_Lookup() worked first
time, which is particularly surprising given its complexity.

This required quite a bit of new infrastructure:

  * a generic way of handling dcerpc policy handles in the rpc server

  * added type checked varients of talloc. These are much less error
    prone. I'd like to move to using these for nearly all uses of

  * added more dcerpc fault handling code, and translation from
    NTSTATUS to a dcerpc fault code

  * added data_blob_talloc_zero() for allocating an initially zero

  * added a endpoint enumeration hook in the dcerpc endpoint server
(This used to be commit 3f85f9b782dc17417baf1ca557fcae22f5b6a83a)

17 years agoafter chatting with jeremy I decided to use a separate directory for
Andrew Tridgell [Fri, 12 Dec 2003 22:48:57 +0000 (22:48 +0000)]
after chatting with jeremy I decided to use a separate directory for
each rpc endpoint implementation, so we will have rpc_server/samr/
rpc_server/lsa/ etc.

this should encourage each pipe to be written in a more complete
manner, as it gives easy ways to split the pipe into multiple modules.
(This used to be commit 30a996b68222de72dd7959a09ff884f266f2fc9a)

17 years agoSmall cleanup of test code. Rename enum indexes to be the same name
Tim Potter [Fri, 12 Dec 2003 11:49:29 +0000 (11:49 +0000)]
Small cleanup of test code.  Rename enum indexes to be the same name
for EnumKey and EnumValue.
(This used to be commit 817a2fe2e5824e6bb9547697d27c66c0c8356181)

17 years agoGot winreg_EnumValue working - what a mess!
Tim Potter [Fri, 12 Dec 2003 06:29:21 +0000 (06:29 +0000)]
Got winreg_EnumValue working - what a mess!
(This used to be commit cc494086e796c0090a92ac36012727c67e3587d1)

17 years agoAdded routines for arrays of uint16s.
Tim Potter [Fri, 12 Dec 2003 06:26:34 +0000 (06:26 +0000)]
Added routines for arrays of uint16s.
(This used to be commit 370512f6644507ed0457de71ab5a50207e00e750)

17 years agoadded support for sending bind_nak replies in the rpc server
Andrew Tridgell [Fri, 12 Dec 2003 06:12:41 +0000 (06:12 +0000)]
added support for sending bind_nak replies in the rpc server
(This used to be commit 6e7c50bcd9929b6b1400b3155f55e6c9a4a730b3)

17 years agoadded the echo pipe test calls
Andrew Tridgell [Fri, 12 Dec 2003 05:40:26 +0000 (05:40 +0000)]
added the echo pipe test calls
(This used to be commit 8ad47eff4971e86763f9bd8f298e07d3de7e1089)

17 years agowe now support pdu fragmentation on both input and output in the rpc
Andrew Tridgell [Fri, 12 Dec 2003 05:30:00 +0000 (05:30 +0000)]
we now support pdu fragmentation on both input and output in the rpc
server code
(This used to be commit 4dac9517188f2dba06df481071063543ede89495)

17 years agoadded handling of fragmented requests in the rpc server
Andrew Tridgell [Fri, 12 Dec 2003 05:01:41 +0000 (05:01 +0000)]
added handling of fragmented requests in the rpc server

now we just need to handle fragmented replies ....
(This used to be commit 14005c95d7c6c68f7da0f1ad7b7d7952a04a125b)

17 years agohandle the auto-allocation of [ref] output arrays in pidl. This
Andrew Tridgell [Fri, 12 Dec 2003 04:18:21 +0000 (04:18 +0000)]
handle the auto-allocation of [ref] output arrays in pidl. This
can simplify rpc servers a lot.
(This used to be commit 28fa62d63d020052a0d2f467f3f9cc6344aaf0ce)

17 years ago * the RPC-ECHO pipe now works in smbd, as long as the data sizes
Andrew Tridgell [Fri, 12 Dec 2003 03:59:09 +0000 (03:59 +0000)]
 * the RPC-ECHO pipe now works in smbd, as long as the data sizes
   don't cause fragmented pdus (I'll add fragments shortly)

 * change data_blob_talloc() to not zero memory when the 2nd argument
   is NULL. The zeroing just masks bugs, and can't even allow a DOS

 * modified pidl to ensure that [ref] arguments to the out side of
   functions are allocated when parsing the in side. This allows rpc
   backends to assume that [ref] variables are all setup. Doesn't work
   correctly for [ref] arrays yet

 * changed DLIST_ADD_END() to take the type instead of a tmp
   variable. This means you don't need to declare a silly tmp variable in
   the caller
(This used to be commit 46e0a358198eeb9af1907ee2a29025d3ab23b6d1)

17 years agothe next step in the dcerpc server code. Added the link between the
Andrew Tridgell [Thu, 11 Dec 2003 09:07:45 +0000 (09:07 +0000)]
the next step in the dcerpc server code. Added the link between the
IPC IO routines and the dcerpc endpoint servers.
(This used to be commit 4929c53bc8dddda8a763fdfbcf81a79776d01113)

17 years agomore portable array of endpoints code from pidl
Andrew Tridgell [Wed, 10 Dec 2003 23:49:55 +0000 (23:49 +0000)]
more portable array of endpoints code from pidl
(This used to be commit c598590a117d4281c530cded4bf9dae16ac1ee76)

17 years agothe rest of the initial rpc server side infrastructure
Andrew Tridgell [Wed, 10 Dec 2003 22:24:33 +0000 (22:24 +0000)]
the rest of the initial rpc server side infrastructure
(This used to be commit 5fb01b0ec0321724c25669151ea7c20e6ec182d0)

17 years agoinitial rpc server side infrastructure
Andrew Tridgell [Wed, 10 Dec 2003 22:21:04 +0000 (22:21 +0000)]
initial rpc server side infrastructure
(This used to be commit 3706af7a6cb2090e0baeff5ee54bf49ebda2cce1)

17 years ago * removed some unused code
Andrew Tridgell [Wed, 10 Dec 2003 03:02:12 +0000 (03:02 +0000)]
 * removed some unused code

 * updated tdb to latest version from Samba3

 * removed some extraneous ';' in tdbutil.c (Thanks to Erlend Aasland
   for pointing this out)
(This used to be commit f3eaf270e57d8d2e2157a6a36e260860c7f71c19)

17 years agoremove the tdbsam code for now. I have other plans for SAM backends :)
Andrew Tridgell [Mon, 8 Dec 2003 08:21:04 +0000 (08:21 +0000)]
remove the tdbsam code for now. I have other plans for SAM backends :)
(This used to be commit bbd35e7c31310f012bf328329ad11d4ed62903bc)

17 years agosome systems don't have "which" and some systems don't have the "-nt"
Andrew Tridgell [Mon, 8 Dec 2003 07:37:38 +0000 (07:37 +0000)]
some systems don't have "which" and some systems don't have the "-nt"
flag to test. It's amazing that systems like that are ever sold.
(This used to be commit fe91635da87104544946983c7c63d5c584db614a)

17 years agofixed shell scripting error
Andrew Tridgell [Mon, 8 Dec 2003 04:05:57 +0000 (04:05 +0000)]
fixed shell scripting error
(This used to be commit b18dce549dd390681e70bc0e290d7ec4e44791c3)

17 years agocope with yapp not being installed
Andrew Tridgell [Mon, 8 Dec 2003 03:57:03 +0000 (03:57 +0000)]
cope with yapp not being installed
(This used to be commit e41d95acc016087d77712d214a52813c00923d4d)

17 years ago"make proto" now depends on "make idl_test"
Andrew Tridgell [Mon, 8 Dec 2003 03:54:30 +0000 (03:54 +0000)]
"make proto" now depends on "make idl_test"

this should give the build farm a fighting chance
(This used to be commit 9246b4a331d7399e201bdf81e73ab7072ea862e7)

17 years agocommit now, as many build farm machines don't have 'yapp'
Andrew Tridgell [Mon, 8 Dec 2003 02:55:28 +0000 (02:55 +0000)]
commit now, as many build farm machines don't have 'yapp'
(This used to be commit 2b1300386dc8a3e3e802c8b1dafdbea286cfbb46)

17 years ago * reduced the number of grammer conflicts a lot using (arbitrary)
Andrew Tridgell [Mon, 8 Dec 2003 02:24:40 +0000 (02:24 +0000)]
 * reduced the number of grammer conflicts a lot using (arbitrary)
   precedence rules

 * build a standalone parser. When we come to distributing Samba4 we
   can just include and other developers won't need Parse::Yapp

 * avoid the recursive make in most cases in
(This used to be commit be2c2be459d1bed41c113590e70711cb89ad12b9)

17 years agodon't save the intermediate form to disk unless we need to
Andrew Tridgell [Sun, 7 Dec 2003 23:47:35 +0000 (23:47 +0000)]
don't save the intermediate form to disk unless we need to
(This used to be commit 4e1a5a21a4c8da0d2a23d5ba02168eac1987c260)

17 years agoa bit more speed and better line matching in errors
Andrew Tridgell [Sun, 7 Dec 2003 13:51:23 +0000 (13:51 +0000)]
a bit more speed and better line matching in errors
(This used to be commit 788f6c44dbae48e13c9eeaca3bfa3ac7efbbd4e2)

17 years agomake pidl a little less verbose
Andrew Tridgell [Sun, 7 Dec 2003 13:39:45 +0000 (13:39 +0000)]
make pidl a little less verbose
(This used to be commit 76f48affe5d1e8fd96d5dc9af2ec1059f3dd741c)

17 years agore-wrote pidl to use Parse::Yapp instead of Parse::RecDescent, This
Andrew Tridgell [Sun, 7 Dec 2003 13:38:07 +0000 (13:38 +0000)]
re-wrote pidl to use Parse::Yapp instead of Parse::RecDescent, This
makes pidl about 3x faster, and also gives us much better error
reporting and a more standard grammer definition that will be much
easier to code in lex/yacc if we want to do so at a later
date. (Parse::Yapp uses essentially the same grammer file as lex/yacc)

It also means we no longer need Parse::RecDescent, which should make
pidl much more portable.
(This used to be commit 4bbaffeb44dca99ad8c0245beb1fddbe01557215)

17 years agoremoved an unused file
Andrew Tridgell [Thu, 4 Dec 2003 11:02:22 +0000 (11:02 +0000)]
removed an unused file
(This used to be commit 77c622c3acf8bc950afe23e30770a658d018406c)

17 years agomerged more updates from Jim Myers
Andrew Tridgell [Thu, 4 Dec 2003 11:01:58 +0000 (11:01 +0000)]
merged more updates from Jim Myers
(This used to be commit 03bf30659640d684073f92d64da6e911edb65a73)

17 years ago* added a debug thread id hook from jim myers
Andrew Tridgell [Thu, 4 Dec 2003 09:52:14 +0000 (09:52 +0000)]
* added a debug thread id hook from jim myers

* change to select() from sys_select() in events.c, as sys_select() is
  not thread safe. We need a new unified signal handling scheme for
  Samba4, but for now just use select()
(This used to be commit 126fcd4a76ac029ee4f662ed41b84c791406c324)

17 years ago* patch based on work by Jim Myers to unify the ioctl handling to be
Andrew Tridgell [Thu, 4 Dec 2003 02:03:06 +0000 (02:03 +0000)]
* patch based on work by Jim Myers to unify the ioctl handling to be
  more like the other major SMB functions

* added SMBntrename code
(This used to be commit f2d3dc9893fa0e089c407fa16ce9ff13587e70cd)

17 years agodon't use c++ comments
Andrew Tridgell [Thu, 4 Dec 2003 01:59:24 +0000 (01:59 +0000)]
don't use c++ comments
(This used to be commit 3d48fa8f37a510959c8958b5c025c7f19f632c54)

17 years agowe can't have two functions with the same name
Andrew Tridgell [Thu, 4 Dec 2003 01:19:03 +0000 (01:19 +0000)]
we can't have two functions with the same name
(This used to be commit 5f1cdc4839a1ba0b18bcd4525847f9c284d181ca)

17 years agodon't use c++ style comments
Andrew Tridgell [Thu, 4 Dec 2003 01:18:34 +0000 (01:18 +0000)]
don't use c++ style comments
(This used to be commit b11a19cc767e20189710d7d9428168ed74c59d1c)

17 years agosome OSes already have a uint_t
Andrew Tridgell [Thu, 4 Dec 2003 01:17:59 +0000 (01:17 +0000)]
some OSes already have a uint_t
(This used to be commit d7b6aa1e2ec1dc475e1bd5dce1c537720bc65eac)

17 years agomy debian unstable box uses "autoconf2.50" - i wish there were a
Andrew Tridgell [Thu, 4 Dec 2003 01:17:00 +0000 (01:17 +0000)]
my debian unstable box uses "autoconf2.50" - i wish there were a
better way than this!
(This used to be commit ad52fd9baf2180a89634eaaa5af22e9bed1de0a7)

17 years agoUpdated some of the function names in the IDL.
Tim Potter [Wed, 3 Dec 2003 11:31:29 +0000 (11:31 +0000)]
Updated some of the function names in the IDL.
(This used to be commit 718ee8bccc2357ffa7ea7cdec1bda6103e0fa24f)

17 years agoMy first stab at Samba4 IDL!
Andrew Bartlett [Wed, 3 Dec 2003 03:10:10 +0000 (03:10 +0000)]
My first stab at Samba4 IDL!

This patch adds the samr_CreateUser2 function, which is create_user
in Samba 3.0.

This also adds a torture suite that checks for various valid and invalid
account flags, and that they are persistant.

Also, a patch by Anthony Liguori to fix the build

Andrew Bartlett
(This used to be commit 53e657b74572ab329d4598a85e6989547c324209)

17 years agoadded netr_LogonControl2Ex()
Andrew Tridgell [Tue, 2 Dec 2003 12:16:08 +0000 (12:16 +0000)]
added netr_LogonControl2Ex()

I also added IDL for netr_DatabaseRedo() but I don't yet know how it

thats the last of the netlogon IDL !
(This used to be commit 387d8f25ff4858943d1389974127d03a58bf4c8f)

17 years agoadded netr_DatabaseSync2()
Andrew Tridgell [Tue, 2 Dec 2003 12:01:10 +0000 (12:01 +0000)]
added netr_DatabaseSync2()
(This used to be commit 0f6af0c4bde0eb3758192b74dab797b558c944a1)

17 years agoadded netr_LogonControl2() and netr_ServerAuthenticate2()
Andrew Tridgell [Tue, 2 Dec 2003 11:43:09 +0000 (11:43 +0000)]
added netr_LogonControl2() and netr_ServerAuthenticate2()
(This used to be commit cc4123db4baec6a217500dc55113f89e1ea8ef61)

17 years agoInitial step at cleaning and splitting up
Jelmer Vernooij [Tue, 2 Dec 2003 11:10:56 +0000 (11:10 +0000)]
Initial step at cleaning and splitting up
(This used to be commit 369a9c1ac1ff94a1d3f51eac20a39577f9cf2155)

17 years agoadded netr_LogonControl() and netr_GetAnyDCName()
Andrew Tridgell [Tue, 2 Dec 2003 10:34:06 +0000 (10:34 +0000)]
added netr_LogonControl() and netr_GetAnyDCName()
(This used to be commit 17b2be4e859bd7f625214d7e7de9758b5ab5fb90)

17 years agoAdd script useful for finding checks for headers that are never used
Jelmer Vernooij [Tue, 2 Dec 2003 10:13:18 +0000 (10:13 +0000)]
Add script useful for finding checks for headers that are never used
(This used to be commit 0e5fdbc01bba7f1b000587d01a128c3bdbbbe03c)

17 years agoadded netr_GetDcName() - quite a useful call
Andrew Tridgell [Tue, 2 Dec 2003 10:08:26 +0000 (10:08 +0000)]
added netr_GetDcName() - quite a useful call
(This used to be commit 63f46b223e16a3495b4a4a48c6489f1f0d7d84c4)

17 years agoadded netr_AccountSync(), another NT_STATUS_NOT_IMPLEMENTED call
Andrew Tridgell [Tue, 2 Dec 2003 10:04:10 +0000 (10:04 +0000)]
added netr_AccountSync(), another NT_STATUS_NOT_IMPLEMENTED call
according to w2k3
(This used to be commit b2ca00ebc57774000af2de6132c29db4c6daae28)

17 years agoadded netr_AccountDeltas(), which w2k3 gives
Andrew Tridgell [Tue, 2 Dec 2003 09:52:15 +0000 (09:52 +0000)]
added netr_AccountDeltas(), which w2k3 gives
(This used to be commit aaf776a1c134d7b6112932f880e09ba497e8ebcf)

17 years agomake sure we can expand the critical versions structure without
Andrew Tridgell [Tue, 2 Dec 2003 09:16:53 +0000 (09:16 +0000)]
make sure we can expand the critical versions structure without
causing crashes in old modules. Thanks to metze for pointing this out!
(This used to be commit 2ee5540629e7922cd76d87ed53b70bf37b83e100)

17 years agonetr_DatabaseDeltas() now works. We ask for the deltas associated with
Andrew Tridgell [Tue, 2 Dec 2003 08:04:37 +0000 (08:04 +0000)]
netr_DatabaseDeltas() now works. We ask for the deltas associated with
the last two sequence numbers on each database.
(This used to be commit f9377c860315a8a4f380d70ff97309d3ffdb5c26)

17 years agoHide gcc error message if using a compiler that can't precompile headers.
Tim Potter [Tue, 2 Dec 2003 05:38:27 +0000 (05:38 +0000)]
Hide gcc error message if using a compiler that can't precompile headers.
(This used to be commit 13d073d805b3a5b9f6fbfff5dccf0bf37124d4c3)

17 years ago * made some field names more consistent, and worked out that
Andrew Tridgell [Tue, 2 Dec 2003 05:37:49 +0000 (05:37 +0000)]
  * made some field names more consistent, and worked out that
    unknown1 is profile_path

If we are going to use automatic backend database generation then we
are going to have to move to really consistent field names in all our
IDL. Thats the only way we are going to be able to automate it a
lot. That will take a couple of days to do when we get to it.
(This used to be commit 1732aae562927afc1ef4f30ef7787cf2d43063e2)

17 years agodon't pollute the structure name space so much
Andrew Tridgell [Tue, 2 Dec 2003 05:17:02 +0000 (05:17 +0000)]
don't pollute the structure name space so much
(This used to be commit 107307b4c69000d2025f4463c72ee38172c48ec5)