15 years agor5475: Move some existing and new type information functions to
Jelmer Vernooij [Sun, 20 Feb 2005 20:35:07 +0000 (20:35 +0000)]
r5475: Move some existing and new type information functions to
(This used to be commit 280df525380d06d67ce33938c4760807d5466966)

15 years agor5474: Remove random notes put in code.
Rafal Szczesniak [Sun, 20 Feb 2005 19:13:19 +0000 (19:13 +0000)]
r5474: Remove random notes put in code.

(This used to be commit bfb4dfaa8c039378b4c29f130cbcdc89eac951b9)

15 years agor5472: First approach to composite rpc call fetchin user info.
Rafal Szczesniak [Sun, 20 Feb 2005 18:20:51 +0000 (18:20 +0000)]
r5472: First approach to composite rpc call fetchin user info.
It does only compile. Completely untested yet, so almost certainly
broken, but I don't want it to lay on my laptop only.

(This used to be commit dcab843da35f5dd2ffc694922ee762b3c36dbd35)

15 years agor5466: Put the type information list in a seperate module
Jelmer Vernooij [Sun, 20 Feb 2005 12:17:33 +0000 (12:17 +0000)]
r5466: Put the type information list in a seperate module
(require for some of the COM stuff)
(This used to be commit fbce7464b2a61a46f5135ba2a341bea4e53f28e7)

15 years agor5465: Add support to multiple levels of pointers in pidl.
Jelmer Vernooij [Sun, 20 Feb 2005 02:57:38 +0000 (02:57 +0000)]
r5465: Add support to multiple levels of pointers in pidl.
Also add a new function to echo.idl that tests this behaviour.
(This used to be commit e5eb5e847e75f2b7b041a66f84d9b919ddf27739)

15 years agor5464: Simplify print function generator code.
Jelmer Vernooij [Sun, 20 Feb 2005 02:20:45 +0000 (02:20 +0000)]
r5464: Simplify print function generator code.
(This used to be commit 6d1ad1ce7a327d016636d8b374bfbe9ec2052d1c)

15 years agor5463: Make need_wire_pointer() return the number of required
Jelmer Vernooij [Sat, 19 Feb 2005 23:46:52 +0000 (23:46 +0000)]
r5463: Make need_wire_pointer() return the number of required
pointers rather then a bool.
(This used to be commit d40a49c8a7ea85335383144b18b1ecfddc0c4ae0)

15 years agor5454: moved the WINS server code into its own directory
Andrew Tridgell [Fri, 18 Feb 2005 23:53:52 +0000 (23:53 +0000)]
r5454: moved the WINS server code into its own directory
(This used to be commit 0bb997127fe6c49361d9f1eaeda5d9321601a52a)

15 years agor5453: Treat "embedded" arrays (surrounding structures) somewhat
Jelmer Vernooij [Fri, 18 Feb 2005 23:43:40 +0000 (23:43 +0000)]
r5453: Treat "embedded" arrays (surrounding structures) somewhat
more generically. The default functions for remembering array sizes
are now used rather then a special local variable.
(This used to be commit 5f7882341fa435a495fa7181537b5599e2fc7a0d)

15 years agor5452: Add implementation + torture test for echo_Surrounding
Jelmer Vernooij [Fri, 18 Feb 2005 23:30:26 +0000 (23:30 +0000)]
r5452: Add implementation + torture test for echo_Surrounding
(This used to be commit 1b71000cc15a06bd4868fbf4ce5415f5866d29a5)

15 years agor5451: - added separate wrepl_associate(), wrepl_pull_table() and wrepl_pull_names...
Andrew Tridgell [Fri, 18 Feb 2005 23:13:51 +0000 (23:13 +0000)]
r5451: - added separate wrepl_associate(), wrepl_pull_table() and wrepl_pull_names() functions, with reasonable
  parameters, so callers don't need to deal directly with wins replication packet structures

- converted the NBT-WINSREPLICATION torture test to use the new APIs
(This used to be commit cec1672662b7e5b1bdf843e9dee317aa4b03f719)

15 years agor5450: Add test function for "embedded" conformant arrays
Jelmer Vernooij [Fri, 18 Feb 2005 23:06:13 +0000 (23:06 +0000)]
r5450: Add test function for "embedded" conformant arrays
(This used to be commit 900477226ddd0644626827d66cd45624f02b636b)

15 years agor5449: More array handling cleanups. This should make the code more
Jelmer Vernooij [Fri, 18 Feb 2005 21:49:11 +0000 (21:49 +0000)]
r5449: More array handling cleanups. This should make the code more
readable. (Output C and header files have not changed, just internal pidl
(This used to be commit b86b299197f2c3b314d0fc33c0139bd19ef637f2)

15 years agor5448: another portability fix for solaris
Andrew Tridgell [Fri, 18 Feb 2005 21:10:31 +0000 (21:10 +0000)]
r5448: another portability fix for solaris
(This used to be commit 1909a0695295e984b948b7410addac0022904ab8)

15 years agor5447: Add some utility functions for arrays and use them.
Jelmer Vernooij [Fri, 18 Feb 2005 20:02:32 +0000 (20:02 +0000)]
r5447: Add some utility functions for arrays and use them.
(This used to be commit a251712670e1daac949221407ae979b363dbc105)

15 years agor5446: fix pulling of arrays in EnumXXX functions
Stefan Metzmacher [Fri, 18 Feb 2005 17:24:21 +0000 (17:24 +0000)]
r5446: fix pulling of arrays in EnumXXX functions

(This used to be commit 0aea8522d7ddaf1ce4cc708c13888e44d14cda32)

15 years agor5445: move FormInfo1 struct to the place where it's used
Stefan Metzmacher [Fri, 18 Feb 2005 17:23:24 +0000 (17:23 +0000)]
r5445: move FormInfo1 struct to the place where it's used

(This used to be commit 748c456641bfc6717a0aaa9d1da903b041c7de5a)

15 years agor5443: Fix HeaderProperties(). Not re-enabling yet because I don't know why it
Jelmer Vernooij [Fri, 18 Feb 2005 12:04:51 +0000 (12:04 +0000)]
r5443: Fix HeaderProperties(). Not re-enabling yet because I don't know why it
was disabled in the first place.
(This used to be commit e52256aec27e2aba8893cd2e570874482696b230)

15 years agor5442: Use argument list generator functions from NdrParser in NdrHeader
Jelmer Vernooij [Fri, 18 Feb 2005 11:45:26 +0000 (11:45 +0000)]
r5442: Use argument list generator functions from NdrParser in NdrHeader
(This used to be commit e912f36dc827d7ad38994b93967fe48aade27b2b)

15 years agor5441: Put push, pull and print arguments in hash as well
Jelmer Vernooij [Fri, 18 Feb 2005 11:39:52 +0000 (11:39 +0000)]
r5441: Put push, pull and print arguments in hash as well
(This used to be commit a5bf662b52e270d45bba2605f844625cc30c7f89)

15 years agor5440: Some more generalizations
Jelmer Vernooij [Fri, 18 Feb 2005 11:11:21 +0000 (11:11 +0000)]
r5440: Some more generalizations
(This used to be commit cf1208471247e2d734f90008d29827541f177952)

15 years agor5439: (hopefully) fix build on older perls. Thanks to tridge for pointing this out.
Jelmer Vernooij [Fri, 18 Feb 2005 01:29:18 +0000 (01:29 +0000)]
r5439: (hopefully) fix build on older perls. Thanks to tridge for pointing this out.
(This used to be commit 0a78a1f90887afc695204f67af38138271aab2b8)

15 years agor5438: Keep new CFLAGS if the compiler accepted them.
Jelmer Vernooij [Thu, 17 Feb 2005 23:39:56 +0000 (23:39 +0000)]
r5438: Keep new CFLAGS if the compiler accepted them.
(This used to be commit d0a6b973307ba3b740f18214f14682495a607c63)

15 years agor5437: Allow Samba4 to be compiled by tcc ( It still crashes when...
Jelmer Vernooij [Thu, 17 Feb 2005 23:11:26 +0000 (23:11 +0000)]
r5437: Allow Samba4 to be compiled by tcc ( It still crashes when linking though.
(This used to be commit 2e1e8db6dc877eb32b51cfc3d9c8f463d14530ec)

15 years agor5427: NTSTATUS is treated by pidl as a 'real' scalar now.
Jelmer Vernooij [Thu, 17 Feb 2005 11:42:38 +0000 (11:42 +0000)]
r5427: NTSTATUS is treated by pidl as a 'real' scalar now.
(This used to be commit fa97059d000859b3d0192ed4a0135770888aba6f)

15 years agor5426: Warn about embedded ref pointers.
Jelmer Vernooij [Thu, 17 Feb 2005 11:20:28 +0000 (11:20 +0000)]
r5426: Warn about embedded ref pointers.
(This used to be commit 40547ed33fea57ee8f68a8f864f8f10c9a6d24dc)

15 years agor5425: Convert function tables to new structure (with description)
Rafal Szczesniak [Wed, 16 Feb 2005 21:54:01 +0000 (21:54 +0000)]
r5425: Convert function tables to new structure (with description)
and remove unnecessary help functions as help is generated
automatically. Usage functions with precise information about
usage of each leaf node remain.

(This used to be commit eb66180d14a14cafbfc0df2b39eeaf4ad7bb43a9)

15 years agor5424: Automatically generate basic help display on basis of name
Rafal Szczesniak [Wed, 16 Feb 2005 21:51:37 +0000 (21:51 +0000)]
r5424: Automatically generate basic help display on basis of name
and description from function table.

(This used to be commit 24f7a3860e82bf632ebd6b3416e5e874e832be5f)

15 years agor5423: Change function table structure to allow short description
Rafal Szczesniak [Wed, 16 Feb 2005 21:50:38 +0000 (21:50 +0000)]
r5423: Change function table structure to allow short description
of command groups. Also give up help function pointer in the
structure since it's needed only in leaf nodes of command tree,
and leaf nodes decide about help on their own. Usage function
is still available on all levels.

(This used to be commit 48568959a86ee60c188b84078eb3872b8e185b6c)

15 years agor5422: Fix ethereal parser generator.
Jelmer Vernooij [Wed, 16 Feb 2005 21:40:55 +0000 (21:40 +0000)]
r5422: Fix ethereal parser generator.
(This used to be commit f5224d40c01b495f2607199f0d85a8c9afb056b0)

15 years agor5418: - added version numbers to WINS database records in preparation for adding...
Andrew Tridgell [Wed, 16 Feb 2005 15:19:49 +0000 (15:19 +0000)]
r5418: - added version numbers to WINS database records in preparation for adding server side
  replication support

- on a WACK registration success, check that the database record
  hasn't changed during the WACK processing. If it has, then fail
  the registration
(This used to be commit 2acd79b95931b57efae9f7c239bc08dc143f5225)

15 years agor5417: Add wrapper function for typedefs hash rather then using the "our" keyword,
Jelmer Vernooij [Wed, 16 Feb 2005 11:09:10 +0000 (11:09 +0000)]
r5417: Add wrapper function for typedefs hash rather then using the "our" keyword,
move pointer parsing to seperate function.
(This used to be commit ea872b9a2b9a51ba9f6c2842303d067e9e85d11a)

15 years agor5416: nicer output when trying to replicate with a server that hasn't been setup as
Andrew Tridgell [Wed, 16 Feb 2005 10:10:47 +0000 (10:10 +0000)]
r5416: nicer output when trying to replicate with a server that hasn't been setup as
a partner
(This used to be commit b94301b357801767e65e19be5d9464c58ecf621e)

15 years agor5415: added a NBT-WINSREPLICATION torture test. It asks the server for the
Andrew Tridgell [Wed, 16 Feb 2005 10:04:52 +0000 (10:04 +0000)]
r5415: added a NBT-WINSREPLICATION torture test. It asks the server for the
list of partners, and for each partner dumps the complete list of
(This used to be commit dacf5f166a0d5a7bc1d96e730748811c9f47bba6)

15 years agor5414: - added libcli/wins/, a basic client library for WINS replication
Andrew Tridgell [Wed, 16 Feb 2005 10:03:18 +0000 (10:03 +0000)]
r5414: - added libcli/wins/, a basic client library for WINS replication

- added a new IDL type "udlongr", which is like udlong, but with the
  two uint32 halves reversed

- modified the winsrepl.idl to cope with a wider range of packets
(This used to be commit bc8d60c918f2e268d591aac464fc6a78c38a4cf9)

15 years agor5413: enable standard samba command line options in ndrdump (so -d works)
Andrew Tridgell [Wed, 16 Feb 2005 06:55:24 +0000 (06:55 +0000)]
r5413: enable standard samba command line options in ndrdump (so -d works)
(This used to be commit 6f9eb74ef8536004d08ffd01ad41622b83526af6)

15 years agor5412: don't force initial debug level up in ndrdump
Andrew Tridgell [Wed, 16 Feb 2005 03:21:34 +0000 (03:21 +0000)]
r5412: don't force initial debug level up in ndrdump
(This used to be commit 9536936992795629d19d4004fcad78cec3a3caff)

15 years agor5411: make network interface selection a bit saner
Andrew Tridgell [Wed, 16 Feb 2005 01:48:11 +0000 (01:48 +0000)]
r5411: make network interface selection a bit saner

- if we have no configured network interfaces, then don't start nbtd (when I add dynamic
  interface loading this will change to a delay until a network interface comes up)

- choose the best interface by netmask for torture tests that need a
  specific IP (such as the WINS test). Added iface_best_ip() for that.

- if specific interfaces are chosen in smb.conf, then keep that ordering, and
  default to the first one listed
(This used to be commit 4d08c114079ef6d1d10a96195046fe43631aefa2)

15 years agor5410: Automatically determine indenting for the ndr parsers
Jelmer Vernooij [Tue, 15 Feb 2005 12:53:58 +0000 (12:53 +0000)]
r5410: Automatically determine indenting for the ndr parsers
(just like already did).
(This used to be commit 90b262398b471acf560a8d05765cab1f25e24b5a)

15 years agor5409: - add a gtk events plugin
Stefan Metzmacher [Tue, 15 Feb 2005 11:57:43 +0000 (11:57 +0000)]
r5409: - add a gtk events plugin
- this is used in our gtk apps
- make the main() functions of the gtk apps look
  more simular (we need to get rid of the globals
  in gregedit!)

(This used to be commit 1051f9b32f4a5c69a1a6928e6849c8ada047032e)

15 years agor5408: - added testing for the behaviour of the special 0x1c name
Andrew Tridgell [Tue, 15 Feb 2005 11:14:04 +0000 (11:14 +0000)]
r5408: - added testing for the behaviour of the special 0x1c name

- added WINS server support for the 0x1c name
(This used to be commit 1558a545285ae0432c70e0a3e2b132a5132e7b3b)

15 years agor5407: - this patch makes samba's event loop code more generic and makes
Stefan Metzmacher [Tue, 15 Feb 2005 10:36:59 +0000 (10:36 +0000)]
r5407: - this patch makes samba's event loop code more generic and makes
  using other implementations possible. This will be mostly usefull
  for client apps which have there own event loop and want to
  use our client libs

- add a example plugin for liboop (see
  NOTE: this just compiles and is completly untested
        and is commited only as example

(This used to be commit b3d0a410efe856e3bcf127f00c31905f5a23cc04)

15 years agor5406: fixed dependencies for the WREPL subsystem
Andrew Tridgell [Tue, 15 Feb 2005 06:46:31 +0000 (06:46 +0000)]
r5406: fixed dependencies for the WREPL subsystem
(This used to be commit 00b0ec8a599c9467ba52aebf978dc33648d33136)

15 years agor5405: try to use NBT name pointers when a netbios name is repeated in a NBT
Andrew Tridgell [Tue, 15 Feb 2005 05:39:12 +0000 (05:39 +0000)]
r5405: try to use NBT name pointers when a netbios name is repeated in a NBT
packet. This allows much longer names to fit within the limits of NBT
name packets (rfc1002.txt also says this should be done, although
Samba3 never generates them).

The main reason for doing this is it means that our NBT name pointer
decoding code is tested with the smbtorture tests
(This used to be commit 6e2feef125daceb143c44c0c4ab73b010b311792)

15 years agor5404: allow spaces in the string representation of nbt names
Andrew Tridgell [Tue, 15 Feb 2005 05:14:09 +0000 (05:14 +0000)]
r5404: allow spaces in the string representation of nbt names
(This used to be commit dd3d4ded21e50130243de3b35927368875620d47)

15 years agor5403: a simple WINS benchmarking program
Andrew Tridgell [Tue, 15 Feb 2005 04:55:56 +0000 (04:55 +0000)]
r5403: a simple WINS benchmarking program
(This used to be commit d0f8b5bc6d64688cf9ad19d203d173ad2735f001)

15 years agor5402: a initial attempt at a IDL definition of the WINS replication protocol
Andrew Tridgell [Tue, 15 Feb 2005 02:27:45 +0000 (02:27 +0000)]
r5402: a initial attempt at a IDL definition of the WINS replication protocol
on tcp port 42. This is enough to reasonably decode (with ndrdump) all
the packets I have seen on the wire. It will need some fine tuning
once I understand the protocol a bit more.
(This used to be commit 3f90bc132139815c23c7322d3d47268d92ba00ac)

15 years agor5401: using talloc_array() is neater here
Andrew Tridgell [Tue, 15 Feb 2005 02:24:57 +0000 (02:24 +0000)]
r5401: using talloc_array() is neater here
(This used to be commit b35ee83536e01c000aace2f4764f6727efd63170)

15 years agor5400: Slightly better handling of help messages in net tool.
Rafal Szczesniak [Tue, 15 Feb 2005 01:11:20 +0000 (01:11 +0000)]
r5400: Slightly better handling of help messages in net tool.

(This used to be commit 5cebb4feedf7d6542c497fe55763d66f51b1c989)

15 years agor5398: fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this)
Andrew Tridgell [Mon, 14 Feb 2005 23:36:42 +0000 (23:36 +0000)]
r5398: fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this)
(This used to be commit 76c49851b921c137c59c45084c5dab95f1c16f58)

15 years agor5397: added testing and server support for the special handling required for the...
Andrew Tridgell [Mon, 14 Feb 2005 12:46:03 +0000 (12:46 +0000)]
r5397: added testing and server support for the special handling required for the 0x1d local master browser name
(This used to be commit 2650b43ca903fb478d2943fa9bbdba8b2bf74966)

15 years agor5396: fixed parsing of NBT type 0xc0 compressed name pointers
Andrew Tridgell [Mon, 14 Feb 2005 11:31:48 +0000 (11:31 +0000)]
r5396: fixed parsing of NBT type 0xc0 compressed name pointers
(This used to be commit 666cc65d10012fa2a413dfa619fbc4599f752728)

15 years agor5395: fixed some loadparm memory leaks
Andrew Tridgell [Mon, 14 Feb 2005 10:08:10 +0000 (10:08 +0000)]
r5395: fixed some loadparm memory leaks
(This used to be commit b75f8fe1844c539d8a4e369225bcbe0e6f81e9de)

15 years agor5394: as the timing should be fixed in the server now, don't accept to early replies
Stefan Metzmacher [Mon, 14 Feb 2005 09:44:58 +0000 (09:44 +0000)]
r5394: as the timing should be fixed in the server now, don't accept to early replies
anymore, also print out usecs in the debug messages

(This used to be commit 9a657f358e7aa3f96c414de033808de82fdb831a)

15 years agor5393: trigger timed events not to early, better do it a bit to late
Stefan Metzmacher [Mon, 14 Feb 2005 09:43:36 +0000 (09:43 +0000)]
r5393: trigger timed events not to early, better do it a bit to late

(This used to be commit 67bf637e9a44202061fd71c92142f835ba76da89)

15 years agor5392: added "secure" WINS server processing. Send a WACK on name
Andrew Tridgell [Mon, 14 Feb 2005 09:15:24 +0000 (09:15 +0000)]
r5392: added "secure" WINS server processing. Send a WACK on name
registrations from anyone who isn't a current owner, then query the
owner addresses to see if they still want it.
(This used to be commit 8dc2a028d3ca0115d3173df435d926d7b6a4d5d5)

15 years agor5391: cope with w2k3 getting the timeout wrong in wack replies
Andrew Tridgell [Mon, 14 Feb 2005 06:05:35 +0000 (06:05 +0000)]
r5391: cope with w2k3 getting the timeout wrong in wack replies
(This used to be commit 75766603e325d515a718b1d1ab0f08160ea1f790)

15 years agor5390: use __location__ to make tracking down errors in RPC-SAMSYNC easier
Andrew Tridgell [Mon, 14 Feb 2005 05:11:23 +0000 (05:11 +0000)]
r5390: use __location__ to make tracking down errors in RPC-SAMSYNC easier
(This used to be commit 40a8340f1b0fdb3b86f6330be4e1cec3959e89ee)

15 years agor5389: initialise the WINS ttl max/min values to something sensible
Andrew Tridgell [Mon, 14 Feb 2005 05:10:33 +0000 (05:10 +0000)]
r5389: initialise the WINS ttl max/min values to something sensible
(This used to be commit ee61fab163ed7faccef908d7458a2038fdad0887)

15 years agor5388: uppercase the server name on ncacn_ip_tcp
Andrew Tridgell [Mon, 14 Feb 2005 05:09:53 +0000 (05:09 +0000)]
r5388: uppercase the server name on ncacn_ip_tcp
(This used to be commit c47eb38593f63ffe68f6bd51b101ea989eb8ee8e)

15 years agor5387: - added automatic WINS server record expiry
Andrew Tridgell [Mon, 14 Feb 2005 05:00:22 +0000 (05:00 +0000)]
r5387: - added automatic WINS server record expiry

- added support for group names in registration and query
(This used to be commit 3690a65bef2b2791203c49d68c8268ff03434622)

15 years agor5386: added testing of registration of group names
Andrew Tridgell [Mon, 14 Feb 2005 03:39:25 +0000 (03:39 +0000)]
r5386: added testing of registration of group names
(This used to be commit 8afe4bd59916f9cc6b8eacd4668f93eb3b736839)

15 years agor5384: for RPC-NETLOGON to pass we need to set the realm as well as the domain to...
Andrew Tridgell [Mon, 14 Feb 2005 01:58:41 +0000 (01:58 +0000)]
r5384: for RPC-NETLOGON to pass we need to set the realm as well as the domain to the target

A better fix would be to have a dcerpc_server_realm() helper
function. Andrew, maybe you could see how to extract that out of
gensec? Calling lp_realm() in our torture tests is the wrong approach
I think.
(This used to be commit 2b62840920b21fd9584bc5b3bda050c9a23d61a9)

15 years agor5382: another place where we need to uppercase the called name for port 139 connects
Andrew Tridgell [Mon, 14 Feb 2005 01:02:47 +0000 (01:02 +0000)]
r5382: another place where we need to uppercase the called name for port 139 connects
(This used to be commit b13cea5b2b55ce3d4109666cf51af6ffd879d15d)

15 years agor5381: Added net_user.c with net tool interface for managing user accounts.
Rafal Szczesniak [Mon, 14 Feb 2005 00:59:52 +0000 (00:59 +0000)]
r5381: Added net_user.c with net tool interface for managing user accounts.

(This used to be commit 3005f0408c647fcab65c11de9bf680f7f5831492)

15 years agor5380: Removed extra newline.
Rafal Szczesniak [Mon, 14 Feb 2005 00:58:30 +0000 (00:58 +0000)]
r5380: Removed extra newline.

(This used to be commit d8fa9baf24852d87fcffee8bf353604b4507683d)

15 years agor5378: Put ndr size generators and alignment calc functions in hash as well.
Jelmer Vernooij [Sun, 13 Feb 2005 16:08:51 +0000 (16:08 +0000)]
r5378: Put ndr size generators and alignment calc functions in hash as well.
(This used to be commit e8c1a30f2373bdccb26659867b4f025d28de4724)

15 years agor5377: Put push/pull/print functions for the various types in a hash.
Jelmer Vernooij [Sun, 13 Feb 2005 13:55:22 +0000 (13:55 +0000)]
r5377: Put push/pull/print functions for the various types in a hash.
(This used to be commit afadd172981c8753b7e974154a843c36ef73df3a)

15 years agor5376: ORPC is NDR specific, so move it to
Jelmer Vernooij [Sun, 13 Feb 2005 12:38:56 +0000 (12:38 +0000)]
r5376: ORPC is NDR specific, so move it to
Get rid of register_enum/register_bitmap, etc. (use list of
types in instead)
(This used to be commit efc2e41b8df3a0171cca57291929fb63760c1662)

15 years agor5375: use a real DN in the WINS database. We now pass the NBT-WINS test.
Andrew Tridgell [Sun, 13 Feb 2005 12:34:54 +0000 (12:34 +0000)]
r5375: use a real DN in the WINS database. We now pass the NBT-WINS test.
(This used to be commit 807a3a1f80b1c065ee799531cdf947b31d1a109f)

15 years agor5374: - changed the dn key code in the ldb tdb backend to correctly honor
Andrew Tridgell [Sun, 13 Feb 2005 12:27:57 +0000 (12:27 +0000)]
r5374: - changed the dn key code in the ldb tdb backend to correctly honor
  the case sensitive/insensitive flags on sections of a dn. So if a dn
  is made up of 4 attributes, and 2 of those are case insensitive and 2
  are case sensitive, then all the attribute names are uppercases, but
  only the values of the case insensitive attributes are uppercased when
  forming the tdb key.

- added code to canonicalise the dn, removing leading and trailing
  spaces from attribute names and values

- when the @ATTRIBUTES record changes, fix the dn keys of any records that should now have new
  dn keys due to changes in the case sensitivity of the record

I really did this to allow me to make the WINS database properly case
insensitive, but it is also the correct general fix for ldb, as it
matches the LDAP specification (and w2k LDAP server behaviour)
(This used to be commit 0f034dc5636d182a1d9207ad662b3fc8df7ca3e4)

15 years agor5373: prepare infrastructure for maing different events
Stefan Metzmacher [Sun, 13 Feb 2005 11:32:11 +0000 (11:32 +0000)]
r5373: prepare infrastructure for maing different events
implementations possible

(This used to be commit dd77ec754b811feb147458d76fa16833767dccea)

15 years agor5372: fixed the build
Andrew Tridgell [Sun, 13 Feb 2005 09:33:31 +0000 (09:33 +0000)]
r5372: fixed the build
(This used to be commit 2899d289455d373409c2aadc3dbefd96ea1c91b8)

15 years agor5371: on port 139 the called name needs to be in uppercase
Andrew Tridgell [Sun, 13 Feb 2005 09:10:33 +0000 (09:10 +0000)]
r5371: on port 139 the called name needs to be in uppercase
(This used to be commit c5aef260c4581bfc0d32ec09fac3414156c40230)

15 years agor5370: epoll gives more precise event bits like EPOLLHUP instead of just EPOLLIN...
Andrew Tridgell [Sun, 13 Feb 2005 08:52:12 +0000 (08:52 +0000)]
r5370: epoll gives more precise event bits like EPOLLHUP instead of just EPOLLIN. We need to map
these to "read" events for the events code to work on errors like connection refused
(thanks to vl for noticing this bug)
(This used to be commit 7c379590b4ca808eddef5c3ac15db25cefc5215b)

15 years agor5369: Rename torture modules so they don't conflict with files in scripting/swig.
Tim Potter [Sun, 13 Feb 2005 00:59:26 +0000 (00:59 +0000)]
r5369: Rename torture modules so they don't conflict with files in scripting/swig.

Start porting samr torture test to new API.
(This used to be commit 14593939830e130ae306b82a6c063ec9d7f36b93)

15 years agor5368: Fix ups for domain_name field name change.
Tim Potter [Sun, 13 Feb 2005 00:58:28 +0000 (00:58 +0000)]
r5368: Fix ups for domain_name field name change.

Implement GetDomPwInfo(), CreateUser2(), RemoveMemberFromForeignDomain(),
(This used to be commit f9ba35ff839fb612f53d8c2e6c5a64aaddc3d6a1)

15 years agor5367: Minor typo fixes.
Rafal Szczesniak [Sun, 13 Feb 2005 00:52:45 +0000 (00:52 +0000)]
r5367: Minor typo fixes.

(This used to be commit 64263be5346dc19af49ec929bc4caf31f93b16c6)

15 years agor5366: added initial code for adding user accounts to libnet makefile.
Rafal Szczesniak [Sun, 13 Feb 2005 00:50:38 +0000 (00:50 +0000)]
r5366: added initial code for adding user accounts to libnet makefile.
It doesn't do anything useful yet, but at least doesn't break
the build.

(This used to be commit b9dbf17366f543194f420e7e3c56c8086fb7bf1d)

15 years agor5365: Initial code for adding user accounts via libnet call.
Rafal Szczesniak [Sun, 13 Feb 2005 00:48:21 +0000 (00:48 +0000)]
r5365: Initial code for adding user accounts via libnet call.

(This used to be commit c5fdc38b176acc70bfc163fbf1e6cf4ef67197f5)

15 years agor5364: Rename string fields called 'domain' and 'name' to be 'domain_name'.
Tim Potter [Sun, 13 Feb 2005 00:26:43 +0000 (00:26 +0000)]
r5364: Rename string fields called 'domain' and 'name' to be 'domain_name'.
(This used to be commit 6749b9404d4e9876ecd964e038c608f05d2c0b69)

15 years agor5363: - ndr_%_ptr -> ndr_%_unique_ptr
Jelmer Vernooij [Sun, 13 Feb 2005 00:07:17 +0000 (00:07 +0000)]
r5363: - ndr_%_ptr -> ndr_%_unique_ptr
- ndr_%_relative% -> ndr_%_relative_ptr%
- Change pointer_default() default to "unique"
  (DCE uses "ptr" as default, MIDL doesn't follow the standard and uses "unique")
(This used to be commit 53b4ecbcc7a8da67cde1377de6f24a3de6d229e3)

15 years agor5362: Add pointer_default() support to pidl. pointer_default()
Jelmer Vernooij [Sat, 12 Feb 2005 23:03:26 +0000 (23:03 +0000)]
r5362: Add pointer_default() support to pidl. pointer_default()
is assumed to be "ptr" if not specified (just like midl).

The validator will warn when "ptr" is used at the moment, because
pidl only supports unique, ref and relative at the moment.
(This used to be commit 31bed62a9a6f7830f523d509b67970648d40aaef)

15 years agor5361: Rename some functions, add tests to validator.
Jelmer Vernooij [Sat, 12 Feb 2005 21:43:08 +0000 (21:43 +0000)]
r5361: Rename some functions, add tests to validator.
(This used to be commit c9d7b88756039a3eb3024c886851e489c46ef67f)

15 years agor5360: Remove a couple of unused functions.
Jelmer Vernooij [Sat, 12 Feb 2005 19:28:23 +0000 (19:28 +0000)]
r5360: Remove a couple of unused functions.
(This used to be commit d8a0a6972156c3211001b7f98e990c167be2468c)

15 years agor5358: - added initial WINS server code. It passes most of the NBT-WINS test, but...
Andrew Tridgell [Sat, 12 Feb 2005 11:33:42 +0000 (11:33 +0000)]
r5358: - added initial WINS server code. It passes most of the NBT-WINS test, but doesn't yet
  do secure server WACK responses

- added a ldap_string_to_time() function, for converting a LDAP
  formatted time to a time_t
(This used to be commit 9aa3313b3f93e47e3f93028e072f6a23b3c22385)

15 years agor5357: added ldb_msg_add_fmt(), for creating formatted ldb record values
Andrew Tridgell [Sat, 12 Feb 2005 11:30:33 +0000 (11:30 +0000)]
r5357: added ldb_msg_add_fmt(), for creating formatted ldb record values
(This used to be commit 18fb48204f4c0e22ea7e61575b3f174f30ff035c)

15 years agor5356: fixed the hex coding for nbt names
Andrew Tridgell [Sat, 12 Feb 2005 03:10:50 +0000 (03:10 +0000)]
r5356: fixed the hex coding for nbt names
(This used to be commit e467715c63624e165b79b37bd21b381d7a99d0fe)

15 years agor5353: Throw a NTSTATUS exception if a NT error code is returned.
Tim Potter [Sat, 12 Feb 2005 01:05:16 +0000 (01:05 +0000)]
r5353: Throw a NTSTATUS exception if a NT error code is returned.
(This used to be commit 4a9677833167b3b26117ab1b4e7c682d9524a206)

15 years agor5352: added a function nbt_name_string() that formats a nbt_name structure
Andrew Tridgell [Sat, 12 Feb 2005 01:00:15 +0000 (01:00 +0000)]
r5352: added a function nbt_name_string() that formats a nbt_name structure
as a human readable string. The format is designed to be able to be
used as the DN for the WINS database as well, while coping with
arbitrary bytes in the name (except nul bytes)
(This used to be commit aac3090e3504ba07124a9d480322a98efb97175e)

15 years agor5351: Add wrapper for nt_errstr and array functions for samr_ConnectInfo.
Tim Potter [Sat, 12 Feb 2005 00:54:11 +0000 (00:54 +0000)]
r5351: Add wrapper for nt_errstr and array functions for samr_ConnectInfo.
(This used to be commit be37749ac7d128fcabf82bad104d87098e2d9f55)

15 years agor5350: Implement an input typemap for NTSTATUS.
Tim Potter [Sat, 12 Feb 2005 00:53:32 +0000 (00:53 +0000)]
r5350: Implement an input typemap for NTSTATUS.
(This used to be commit 076ec6008e4dbd130044893f34c3fd7212bf667d)

15 years agor5348: Implement the remaining samr connect functions and fix up setsecurity.
Tim Potter [Sat, 12 Feb 2005 00:40:00 +0000 (00:40 +0000)]
r5348: Implement the remaining samr connect functions and fix up setsecurity.
(This used to be commit 4b2c3c7ac56e1e428dec6205e4e69268be84cac6)

15 years agor5347: fixed the NBT-REGISTER test now that the nbt layer is case sensitive
Andrew Tridgell [Fri, 11 Feb 2005 23:55:15 +0000 (23:55 +0000)]
r5347: fixed the NBT-REGISTER test now that the nbt layer is case sensitive
(This used to be commit ae514f076298caeb8a84d47939c4e51f9ab5b6ce)

15 years agor5346: - a bit more preparation for the WINS server going in
Andrew Tridgell [Fri, 11 Feb 2005 23:54:37 +0000 (23:54 +0000)]
r5346: - a bit more preparation for the WINS server going in

- more NBT packet asserts, to ensure that incoming requests have all
  the elements we depend on

- open the WINS database at startup if we are configured as a WINS server

- split out the nbtd server reply packet generation code so it can be
  shared by the WINS server

- re-did the logic of what is answered by the WINS server and what by
  the B node server. It now always tries to answer by the B node, and
  only "recurses" to the WINS server for names that are not found.
(This used to be commit 5613e6b8ad9b32639caf5055f793dbc4d0a2fc19)

15 years agor5345: Some more minor code readability fixes.
Jelmer Vernooij [Fri, 11 Feb 2005 23:21:06 +0000 (23:21 +0000)]
r5345: Some more minor code readability fixes.
(This used to be commit 10f3bdce80ff67e05b14c3481a05362b054d1f11)

15 years agor5338: More efforts to handle types similarly.
Jelmer Vernooij [Fri, 11 Feb 2005 15:49:15 +0000 (15:49 +0000)]
r5338: More efforts to handle types similarly.
(This used to be commit 95c4f3149925ee71e74ea36fae3a65d2eebf717c)

15 years agor5335: Add a Close() method to SamrHandle object.
Tim Potter [Fri, 11 Feb 2005 11:18:19 +0000 (11:18 +0000)]
r5335: Add a Close() method to SamrHandle object.

Add methods for {Query,Set}Security, Shutdown, CreateUser,
Open{User,Group,Alias} and RidToSid.

Time for a torture test I think!
(This used to be commit 94a3ff2380071efccf19ca51488753d3513ab63c)

15 years agor5334: Bah, it's all to hard...
Andrew Bartlett [Fri, 11 Feb 2005 10:50:54 +0000 (10:50 +0000)]
r5334: Bah, it's all to hard...

Andrew Bartlett
(This used to be commit a28ca320dc604fcffe89e9096a643bb4740a1da2)

15 years agor5333: weird, w2k3 always sends a positive name release response, even for names...
Andrew Tridgell [Fri, 11 Feb 2005 10:37:59 +0000 (10:37 +0000)]
r5333: weird, w2k3 always sends a positive name release response, even for names that
have never been registered. I wonder if there is some reason?
(This used to be commit dbef4fd5c3ae06e22fa6120a57edc0d2988a49a1)