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

3848 Commits

Author SHA1 Message Date
Rafal Szczesniak
eb66180d14 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
2007-10-10 13:10:44 -05:00
Rafal Szczesniak
24f7a3860e r5424: Automatically generate basic help display on basis of name
and description from function table.

rafal
2007-10-10 13:10:44 -05:00
Rafal Szczesniak
48568959a8 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
2007-10-10 13:10:44 -05:00
Jelmer Vernooij
f5224d40c0 r5422: Fix ethereal parser generator. 2007-10-10 13:10:44 -05:00
Andrew Tridgell
2acd79b959 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
2007-10-10 13:10:44 -05:00
Jelmer Vernooij
ea872b9a2b r5417: Add wrapper function for typedefs hash rather then using the "our" keyword,
move pointer parsing to seperate function.
2007-10-10 13:10:44 -05:00
Andrew Tridgell
b94301b357 r5416: nicer output when trying to replicate with a server that hasn't been setup as
a partner
2007-10-10 13:10:44 -05:00
Andrew Tridgell
dacf5f166a 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
2007-10-10 13:10:44 -05:00
Andrew Tridgell
bc8d60c918 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
2007-10-10 13:10:43 -05:00
Andrew Tridgell
6f9eb74ef8 r5413: enable standard samba command line options in ndrdump (so -d works) 2007-10-10 13:10:43 -05:00
Andrew Tridgell
9536936992 r5412: don't force initial debug level up in ndrdump 2007-10-10 13:10:43 -05:00
Andrew Tridgell
4d08c11407 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
2007-10-10 13:10:43 -05:00
Jelmer Vernooij
90b262398b r5410: Automatically determine indenting for the ndr parsers
(just like header.pm already did).
2007-10-10 13:10:43 -05:00
Stefan Metzmacher
1051f9b32f 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
2007-10-10 13:10:43 -05:00
Andrew Tridgell
1558a54528 r5408: - added testing for the behaviour of the special 0x1c name
- added WINS server support for the 0x1c name
2007-10-10 13:10:43 -05:00
Stefan Metzmacher
b3d0a410ef 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
2007-10-10 13:10:42 -05:00
Andrew Tridgell
00b0ec8a59 r5406: fixed dependencies for the WREPL subsystem 2007-10-10 13:10:42 -05:00
Andrew Tridgell
6e2feef125 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
2007-10-10 13:10:42 -05:00
Andrew Tridgell
dd3d4ded21 r5404: allow spaces in the string representation of nbt names 2007-10-10 13:10:42 -05:00
Andrew Tridgell
d0f8b5bc6d r5403: a simple WINS benchmarking program 2007-10-10 13:10:42 -05:00
Andrew Tridgell
3f90bc1321 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.
2007-10-10 13:10:42 -05:00
Andrew Tridgell
b35ee83536 r5401: using talloc_array() is neater here 2007-10-10 13:10:42 -05:00
Rafal Szczesniak
5cebb4feed r5400: Slightly better handling of help messages in net tool.
rafal
2007-10-10 13:10:41 -05:00
Andrew Tridgell
76c49851b9 r5398: fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this) 2007-10-10 13:09:51 -05:00
Andrew Tridgell
2650b43ca9 r5397: added testing and server support for the special handling required for the 0x1d local master browser name
in WINS
2007-10-10 13:09:51 -05:00
Andrew Tridgell
666cc65d10 r5396: fixed parsing of NBT type 0xc0 compressed name pointers 2007-10-10 13:09:51 -05:00
Andrew Tridgell
b75f8fe184 r5395: fixed some loadparm memory leaks 2007-10-10 13:09:51 -05:00
Stefan Metzmacher
9a657f358e 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
2007-10-10 13:09:51 -05:00
Stefan Metzmacher
67bf637e9a r5393: trigger timed events not to early, better do it a bit to late
metze
2007-10-10 13:09:50 -05:00
Andrew Tridgell
8dc2a028d3 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.
2007-10-10 13:09:50 -05:00
Andrew Tridgell
75766603e3 r5391: cope with w2k3 getting the timeout wrong in wack replies 2007-10-10 13:09:50 -05:00
Andrew Tridgell
40a8340f1b r5390: use __location__ to make tracking down errors in RPC-SAMSYNC easier 2007-10-10 13:09:50 -05:00
Andrew Tridgell
ee61fab163 r5389: initialise the WINS ttl max/min values to something sensible 2007-10-10 13:09:50 -05:00
Andrew Tridgell
c47eb38593 r5388: uppercase the server name on ncacn_ip_tcp 2007-10-10 13:09:50 -05:00
Andrew Tridgell
3690a65bef r5387: - added automatic WINS server record expiry
- added support for group names in registration and query
2007-10-10 13:09:50 -05:00
Andrew Tridgell
8afe4bd599 r5386: added testing of registration of group names 2007-10-10 13:09:49 -05:00
Andrew Tridgell
2b62840920 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.
2007-10-10 13:09:49 -05:00
Andrew Tridgell
b13cea5b2b r5382: another place where we need to uppercase the called name for port 139 connects 2007-10-10 13:09:49 -05:00
Rafal Szczesniak
3005f0408c r5381: Added net_user.c with net tool interface for managing user accounts.
rafal
2007-10-10 13:09:49 -05:00
Rafal Szczesniak
d8fa9baf24 r5380: Removed extra newline.
rafal
2007-10-10 13:09:49 -05:00
Jelmer Vernooij
e8c1a30f23 r5378: Put ndr size generators and alignment calc functions in hash as well. 2007-10-10 13:09:49 -05:00
Jelmer Vernooij
afadd17298 r5377: Put push/pull/print functions for the various types in a hash. 2007-10-10 13:09:49 -05:00
Jelmer Vernooij
efc2e41b8d 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)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
807a3a1f80 r5375: use a real DN in the WINS database. We now pass the NBT-WINS test. 2007-10-10 13:09:48 -05:00
Andrew Tridgell
0f034dc563 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)
2007-10-10 13:09:48 -05:00
Stefan Metzmacher
dd77ec754b r5373: prepare infrastructure for maing different events
implementations possible

metze
2007-10-10 13:09:48 -05:00
Andrew Tridgell
2899d28945 r5372: fixed the build 2007-10-10 13:09:48 -05:00
Andrew Tridgell
c5aef260c4 r5371: on port 139 the called name needs to be in uppercase 2007-10-10 13:09:48 -05:00
Andrew Tridgell
7c379590b4 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)
2007-10-10 13:09:48 -05:00
Tim Potter
1459393983 r5369: Rename torture modules so they don't conflict with files in scripting/swig.
Start porting samr torture test to new API.
2007-10-10 13:09:47 -05:00