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

rafal

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

rafal

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

rafal

14 years agor5422: Fix ethereal parser generator.
Jelmer Vernooij [Wed, 16 Feb 2005 21:40:55 +0000 (21:40 +0000)]
r5422: Fix ethereal parser generator.

14 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

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

14 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

14 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
names

14 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

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

14 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

14 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

14 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 header.pm already did).

14 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!)

metze

14 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

14 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 http://liboop.org)
  NOTE: this just compiles and is completly untested
        and is commited only as example

metze

14 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

14 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

14 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

14 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

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

14 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

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

rafal

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

14 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
in WINS

14 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

14 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

14 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

metze

14 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

metze

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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
realm.

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.

14 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

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

rafal

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

rafal

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

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

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

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

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

14 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

metze

14 years agor5372: fixed the build
Andrew Tridgell [Sun, 13 Feb 2005 09:33:31 +0000 (09:33 +0000)]
r5372: fixed the build

14 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

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

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

14 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(),
DeleteUser().

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

rafal

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

rafal

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

rafal

14 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'.

14 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")

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

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

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

14 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

14 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

14 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

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

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

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

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

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

14 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

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

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

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

14 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!

14 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

14 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?

14 years agor5330: Remove #include <sys/time.h> from includes.h.
Andrew Bartlett [Fri, 11 Feb 2005 10:15:56 +0000 (10:15 +0000)]
r5330: Remove #include <sys/time.h> from includes.h.

Add #include "system/time.h" back (it was removed in some of these
places because the definitions were provided by <sys/time.h> on tridge's
platform.)

Andrew Bartlett

14 years agor5329: made the nbt server case sensitive
Andrew Tridgell [Fri, 11 Feb 2005 08:18:55 +0000 (08:18 +0000)]
r5329: made the nbt server case sensitive

14 years agor5328: - allow case sensitive nbt name lookups
Andrew Tridgell [Fri, 11 Feb 2005 07:54:20 +0000 (07:54 +0000)]
r5328:  - allow case sensitive nbt name lookups

 - added --case-sensitive option to nmblookup

 - added case sensitivity tests to the NBT-WINS test

14 years agor5326: removed the charset conversion from the nbtname code, so we no longer
Andrew Tridgell [Fri, 11 Feb 2005 07:20:16 +0000 (07:20 +0000)]
r5326: removed the charset conversion from the nbtname code, so we no longer
convert from/to DOS strings in NBT names. This will allow us to
support all foreign names as a WINS server, as long as they don't
contain a 0 byte.

14 years agor5325: - expanded the NBT-WINS test to include scopes
Andrew Tridgell [Fri, 11 Feb 2005 06:58:07 +0000 (06:58 +0000)]
r5325: - expanded the NBT-WINS test to include scopes

- fixed the bugs that the new test found

14 years agor5322: removed a whole bunch of #include lines that minimal_includes.pl
Andrew Tridgell [Fri, 11 Feb 2005 02:08:39 +0000 (02:08 +0000)]
r5322: removed a whole bunch of #include lines that minimal_includes.pl
thinks are not needed. Now to see how this fares on the build farm :)

14 years agor5321: added a program that works out the minimal set of #include lines
Andrew Tridgell [Fri, 11 Feb 2005 02:07:41 +0000 (02:07 +0000)]
r5321: added a program that works out the minimal set of #include lines
needed for a C file in Samba. It tries compiling without each #include
line in turn, and looks for any changes in the compiler output.

Note that the output is not guaranteed correct, it might be that an
include is needed onlyu on some platforms. To cope with this, it
doesn't consider lines with the word "needed" on them. So add a
comment like this:

#include "foo.h" /* needed by systems without kerberos */

and it will know to skip it

It also skips any include lines in a #if section.

If you are brave, you can give it the option --remove and it will
remove lines it thinks are not needed. Please review carefully before
committing the results, and watch the build farm for breakage.

14 years agor5320: Treat structs and unions somewhat more similarly:
Jelmer Vernooij [Fri, 11 Feb 2005 02:05:47 +0000 (02:05 +0000)]
r5320: Treat structs and unions somewhat more similarly:
 - use same names in hashes (DATA -> ELEMENTS, etc)
 - [case()] and [default] are no longer special case, they're just regular properties

14 years agor5319: Make some more alignment code generic, move NDR-specific stuff to
Jelmer Vernooij [Thu, 10 Feb 2005 23:34:59 +0000 (23:34 +0000)]
r5319: Make some more alignment code generic, move NDR-specific stuff to
parser.pm (now renamed to ndr.pm).

14 years agor5310: allow for rounding errors in the sleep test
Andrew Tridgell [Thu, 10 Feb 2005 07:57:09 +0000 (07:57 +0000)]
r5310: allow for rounding errors in the sleep test

14 years agor5309: removed ads.h from includes.h
Andrew Tridgell [Thu, 10 Feb 2005 07:43:39 +0000 (07:43 +0000)]
r5309: removed ads.h from includes.h

14 years agor5308: trimmed back a lot of the old macros from smb_macros.h
Andrew Tridgell [Thu, 10 Feb 2005 07:39:14 +0000 (07:39 +0000)]
r5308: trimmed back a lot of the old macros from smb_macros.h

14 years agor5307: removed db_wrap.h from includes.h
Andrew Tridgell [Thu, 10 Feb 2005 07:22:25 +0000 (07:22 +0000)]
r5307: removed db_wrap.h from includes.h

14 years agor5306: removed all the unused mutex functions from mutex.c. When (if?) we
Andrew Tridgell [Thu, 10 Feb 2005 07:18:00 +0000 (07:18 +0000)]
r5306: removed all the unused mutex functions from mutex.c. When (if?) we
decide to reinstate the mutex code for the threads process model, I'd
like to do it a little differently. At least this gets it out of
includes.h for now.

14 years agor5305: removed libcli/ldap/ldap.h from includes.h
Andrew Tridgell [Thu, 10 Feb 2005 07:08:40 +0000 (07:08 +0000)]
r5305: removed libcli/ldap/ldap.h from includes.h

14 years agor5304: removed lib/socket/socket.h from includes.h
Andrew Tridgell [Thu, 10 Feb 2005 06:59:29 +0000 (06:59 +0000)]
r5304: removed lib/socket/socket.h from includes.h

14 years agor5303: fixed build of gconf registry backend
Andrew Tridgell [Thu, 10 Feb 2005 06:45:13 +0000 (06:45 +0000)]
r5303: fixed build of gconf registry backend

14 years agor5302: fixed a compilation problem on solaris caused by the recent include
Andrew Tridgell [Thu, 10 Feb 2005 06:36:30 +0000 (06:36 +0000)]
r5302: fixed a compilation problem on solaris caused by the recent include
changes

14 years agor5301: fixed pthreads build
Andrew Tridgell [Thu, 10 Feb 2005 05:29:38 +0000 (05:29 +0000)]
r5301: fixed pthreads build

14 years agor5300: more uint32 and system/filesys.h build fixes when developer mode is enabled
Andrew Tridgell [Thu, 10 Feb 2005 05:22:53 +0000 (05:22 +0000)]
r5300: more uint32 and system/filesys.h build fixes when developer mode is enabled

14 years agor5299: fixed an include ordering problem
Andrew Tridgell [Thu, 10 Feb 2005 05:15:37 +0000 (05:15 +0000)]
r5299: fixed an include ordering problem

14 years agor5298: - got rid of pstring.h from includes.h. This at least makes it a bit
Andrew Tridgell [Thu, 10 Feb 2005 05:09:35 +0000 (05:09 +0000)]
r5298:  - got rid of pstring.h from includes.h. This at least makes it a bit
   less likely that anyone will use pstring for new code

 - got rid of winbind_client.h from includes.h. This one triggered a
   huge change, as winbind_client.h was including system/filesys.h and
   defining the old uint32 and uint16 types, as well as its own
   pstring and fstring.

14 years agor5297: ensure pstring is not in the generated prototypes
Andrew Tridgell [Thu, 10 Feb 2005 05:06:41 +0000 (05:06 +0000)]
r5297: ensure pstring is not in the generated prototypes

14 years agor5296: - only include the tdb headers where they are needed
Andrew Tridgell [Thu, 10 Feb 2005 03:48:43 +0000 (03:48 +0000)]
r5296: - only include the tdb headers where they are needed

- removed the u32 hack in events.c as I think this was only needed as
  tdb.h defines u32. Metze, can you check that this hack is indeed no
  longer needed on your suse system?

14 years agor5294: - added a separate NBT-WINS test for WINS operations (register, refresh, relea...
Andrew Tridgell [Thu, 10 Feb 2005 03:22:47 +0000 (03:22 +0000)]
r5294: - added a separate NBT-WINS test for WINS operations (register, refresh, release and query)

- change the iface_n_*() functions to return a "const char *" instead of a "struct ipv4_addr"
  I think that in general we should move towards "const char *" for
  all IP addresses, as this makes IPv6 much easier, and is also easier
  to debug. Andrew, when you get a chance, could you fix some of the
  auth code to use strings for IPs ?

- return a NTSTATUS error on bad name queries and node status instead
  of using rcode. This makes the calling code simpler.

- added low level name release code in libcli/nbt/

- use a real IP in the register and wins nbt torture tests, as w2k3
  WINS server silently rejects some operations that don't come from the
  IP being used (eg. it says "yes" to a release, but does not in fact
  release the name)

14 years agor5293: Map an empty policy handle to None when creating policy handles, and
Tim Potter [Thu, 10 Feb 2005 03:19:21 +0000 (03:19 +0000)]
r5293: Map an empty policy handle to None when creating policy handles, and
refuse to accept None as a policy handle when accepting them.  Now we
don't segfault after running the samr_Shutdown() test.