1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

3835 Commits

Author SHA1 Message Date
Stefan Metzmacher
2251186b5b 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
(This used to be commit 1051f9b32f4a5c69a1a6928e6849c8ada047032e)
2007-10-10 13:10:43 -05:00
Andrew Tridgell
39713c703d 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)
2007-10-10 13:10:43 -05:00
Stefan Metzmacher
6d17fc3b3e 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
(This used to be commit b3d0a410efe856e3bcf127f00c31905f5a23cc04)
2007-10-10 13:10:42 -05:00
Andrew Tridgell
d816db1bda r5406: fixed dependencies for the WREPL subsystem
(This used to be commit 00b0ec8a599c9467ba52aebf978dc33648d33136)
2007-10-10 13:10:42 -05:00
Andrew Tridgell
93cd3e9022 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)
2007-10-10 13:10:42 -05:00
Andrew Tridgell
3bbe3fe4ce r5404: allow spaces in the string representation of nbt names
(This used to be commit dd3d4ded21e50130243de3b35927368875620d47)
2007-10-10 13:10:42 -05:00
Andrew Tridgell
82e6a6e46b r5403: a simple WINS benchmarking program
(This used to be commit d0f8b5bc6d64688cf9ad19d203d173ad2735f001)
2007-10-10 13:10:42 -05:00
Andrew Tridgell
b1db7877e2 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)
2007-10-10 13:10:42 -05:00
Andrew Tridgell
4d980e56c4 r5401: using talloc_array() is neater here
(This used to be commit b35ee83536e01c000aace2f4764f6727efd63170)
2007-10-10 13:10:42 -05:00
Rafal Szczesniak
530d46f674 r5400: Slightly better handling of help messages in net tool.
rafal
(This used to be commit 5cebb4feedf7d6542c497fe55763d66f51b1c989)
2007-10-10 13:10:41 -05:00
Andrew Tridgell
e428eee91b r5398: fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this)
(This used to be commit 76c49851b921c137c59c45084c5dab95f1c16f58)
2007-10-10 13:09:51 -05:00
Andrew Tridgell
97b2a6f7ed r5397: added testing and server support for the special handling required for the 0x1d local master browser name
in WINS
(This used to be commit 2650b43ca903fb478d2943fa9bbdba8b2bf74966)
2007-10-10 13:09:51 -05:00
Andrew Tridgell
240829d53e r5396: fixed parsing of NBT type 0xc0 compressed name pointers
(This used to be commit 666cc65d10012fa2a413dfa619fbc4599f752728)
2007-10-10 13:09:51 -05:00
Andrew Tridgell
8c76eb2672 r5395: fixed some loadparm memory leaks
(This used to be commit b75f8fe1844c539d8a4e369225bcbe0e6f81e9de)
2007-10-10 13:09:51 -05:00
Stefan Metzmacher
4e43af6c69 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
(This used to be commit 9a657f358e7aa3f96c414de033808de82fdb831a)
2007-10-10 13:09:51 -05:00
Stefan Metzmacher
c29141f10b r5393: trigger timed events not to early, better do it a bit to late
metze
(This used to be commit 67bf637e9a44202061fd71c92142f835ba76da89)
2007-10-10 13:09:50 -05:00
Andrew Tridgell
352de700ca 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)
2007-10-10 13:09:50 -05:00
Andrew Tridgell
85fd954145 r5391: cope with w2k3 getting the timeout wrong in wack replies
(This used to be commit 75766603e325d515a718b1d1ab0f08160ea1f790)
2007-10-10 13:09:50 -05:00
Andrew Tridgell
205071ddc6 r5390: use __location__ to make tracking down errors in RPC-SAMSYNC easier
(This used to be commit 40a8340f1b0fdb3b86f6330be4e1cec3959e89ee)
2007-10-10 13:09:50 -05:00
Andrew Tridgell
a065adeacb r5389: initialise the WINS ttl max/min values to something sensible
(This used to be commit ee61fab163ed7faccef908d7458a2038fdad0887)
2007-10-10 13:09:50 -05:00
Andrew Tridgell
df6d143e2e r5388: uppercase the server name on ncacn_ip_tcp
(This used to be commit c47eb38593f63ffe68f6bd51b101ea989eb8ee8e)
2007-10-10 13:09:50 -05:00
Andrew Tridgell
ca792c6e36 r5387: - added automatic WINS server record expiry
- added support for group names in registration and query
(This used to be commit 3690a65bef2b2791203c49d68c8268ff03434622)
2007-10-10 13:09:50 -05:00
Andrew Tridgell
bd00b5bd20 r5386: added testing of registration of group names
(This used to be commit 8afe4bd59916f9cc6b8eacd4668f93eb3b736839)
2007-10-10 13:09:49 -05:00
Andrew Tridgell
77cb8cd795 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.
(This used to be commit 2b62840920b21fd9584bc5b3bda050c9a23d61a9)
2007-10-10 13:09:49 -05:00
Andrew Tridgell
803ce86db9 r5382: another place where we need to uppercase the called name for port 139 connects
(This used to be commit b13cea5b2b55ce3d4109666cf51af6ffd879d15d)
2007-10-10 13:09:49 -05:00
Rafal Szczesniak
082a568473 r5381: Added net_user.c with net tool interface for managing user accounts.
rafal
(This used to be commit 3005f0408c647fcab65c11de9bf680f7f5831492)
2007-10-10 13:09:49 -05:00
Rafal Szczesniak
1ad9bed79d r5380: Removed extra newline.
rafal
(This used to be commit d8fa9baf24852d87fcffee8bf353604b4507683d)
2007-10-10 13:09:49 -05:00
Jelmer Vernooij
0b99160ed3 r5378: Put ndr size generators and alignment calc functions in hash as well.
(This used to be commit e8c1a30f2373bdccb26659867b4f025d28de4724)
2007-10-10 13:09:49 -05:00
Jelmer Vernooij
ff0e9d44bf r5377: Put push/pull/print functions for the various types in a hash.
(This used to be commit afadd172981c8753b7e974154a843c36ef73df3a)
2007-10-10 13:09:49 -05:00
Jelmer Vernooij
ff6e58a7c4 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)
(This used to be commit efc2e41b8df3a0171cca57291929fb63760c1662)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
ffa5c91d0f r5375: use a real DN in the WINS database. We now pass the NBT-WINS test.
(This used to be commit 807a3a1f80b1c065ee799531cdf947b31d1a109f)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
5a88d5211b 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)
2007-10-10 13:09:48 -05:00
Stefan Metzmacher
e40da81aa4 r5373: prepare infrastructure for maing different events
implementations possible

metze
(This used to be commit dd77ec754b811feb147458d76fa16833767dccea)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
40d117a893 r5372: fixed the build
(This used to be commit 2899d289455d373409c2aadc3dbefd96ea1c91b8)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
d8da32a284 r5371: on port 139 the called name needs to be in uppercase
(This used to be commit c5aef260c4581bfc0d32ec09fac3414156c40230)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
cc336df026 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)
2007-10-10 13:09:48 -05:00
Tim Potter
11e6c958fd 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)
2007-10-10 13:09:47 -05:00
Tim Potter
74e9fce454 r5368: Fix ups for domain_name field name change.
Implement GetDomPwInfo(), CreateUser2(), RemoveMemberFromForeignDomain(),
DeleteUser().
(This used to be commit f9ba35ff839fb612f53d8c2e6c5a64aaddc3d6a1)
2007-10-10 13:09:47 -05:00
Rafal Szczesniak
8f2ee50a27 r5367: Minor typo fixes.
rafal
(This used to be commit 64263be5346dc19af49ec929bc4caf31f93b16c6)
2007-10-10 13:09:47 -05:00
Rafal Szczesniak
2e61d60cdc 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
(This used to be commit b9dbf17366f543194f420e7e3c56c8086fb7bf1d)
2007-10-10 13:09:47 -05:00
Rafal Szczesniak
953ba3fb7d r5365: Initial code for adding user accounts via libnet call.
rafal
(This used to be commit c5fdc38b176acc70bfc163fbf1e6cf4ef67197f5)
2007-10-10 13:09:46 -05:00
Tim Potter
abc28d66e9 r5364: Rename string fields called 'domain' and 'name' to be 'domain_name'.
(This used to be commit 6749b9404d4e9876ecd964e038c608f05d2c0b69)
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
2f8478b27d 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)
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
e90c93402b 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)
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
51a6f7b227 r5361: Rename some functions, add tests to validator.
(This used to be commit c9d7b88756039a3eb3024c886851e489c46ef67f)
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
67bc7ddbe9 r5360: Remove a couple of unused functions.
(This used to be commit d8a0a6972156c3211001b7f98e990c167be2468c)
2007-10-10 13:09:45 -05:00
Andrew Tridgell
e199f4cef2 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)
2007-10-10 13:09:45 -05:00
Andrew Tridgell
ff4797a9e4 r5357: added ldb_msg_add_fmt(), for creating formatted ldb record values
(This used to be commit 18fb48204f4c0e22ea7e61575b3f174f30ff035c)
2007-10-10 13:09:45 -05:00
Andrew Tridgell
907d1d413d r5356: fixed the hex coding for nbt names
(This used to be commit e467715c63624e165b79b37bd21b381d7a99d0fe)
2007-10-10 13:09:45 -05:00
Tim Potter
12ccb3c453 r5353: Throw a NTSTATUS exception if a NT error code is returned.
(This used to be commit 4a9677833167b3b26117ab1b4e7c682d9524a206)
2007-10-10 13:09:45 -05:00