1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

3823 Commits

Author SHA1 Message Date
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
Tim Potter
f9ba35ff83 r5368: Fix ups for domain_name field name change.
Implement GetDomPwInfo(), CreateUser2(), RemoveMemberFromForeignDomain(),
DeleteUser().
2007-10-10 13:09:47 -05:00
Rafal Szczesniak
64263be534 r5367: Minor typo fixes.
rafal
2007-10-10 13:09:47 -05:00
Rafal Szczesniak
b9dbf17366 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
2007-10-10 13:09:47 -05:00
Rafal Szczesniak
c5fdc38b17 r5365: Initial code for adding user accounts via libnet call.
rafal
2007-10-10 13:09:46 -05:00
Tim Potter
6749b9404d r5364: Rename string fields called 'domain' and 'name' to be 'domain_name'. 2007-10-10 13:09:46 -05:00
Jelmer Vernooij
53b4ecbcc7 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")
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
31bed62a9a 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.
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
c9d7b88756 r5361: Rename some functions, add tests to validator. 2007-10-10 13:09:46 -05:00
Jelmer Vernooij
d8a0a69721 r5360: Remove a couple of unused functions. 2007-10-10 13:09:45 -05:00
Andrew Tridgell
9aa3313b3f 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
2007-10-10 13:09:45 -05:00
Andrew Tridgell
18fb48204f r5357: added ldb_msg_add_fmt(), for creating formatted ldb record values 2007-10-10 13:09:45 -05:00
Andrew Tridgell
e467715c63 r5356: fixed the hex coding for nbt names 2007-10-10 13:09:45 -05:00
Tim Potter
4a96778331 r5353: Throw a NTSTATUS exception if a NT error code is returned. 2007-10-10 13:09:45 -05:00
Andrew Tridgell
aac3090e35 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)
2007-10-10 13:09:45 -05:00
Tim Potter
be37749ac7 r5351: Add wrapper for nt_errstr and array functions for samr_ConnectInfo. 2007-10-10 13:09:45 -05:00
Tim Potter
076ec6008e r5350: Implement an input typemap for NTSTATUS. 2007-10-10 13:09:44 -05:00
Tim Potter
4b2c3c7ac5 r5348: Implement the remaining samr connect functions and fix up setsecurity. 2007-10-10 13:09:44 -05:00
Andrew Tridgell
ae514f0762 r5347: fixed the NBT-REGISTER test now that the nbt layer is case sensitive 2007-10-10 13:09:44 -05:00
Andrew Tridgell
5613e6b8ad 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.
2007-10-10 13:09:44 -05:00
Jelmer Vernooij
10f3bdce80 r5345: Some more minor code readability fixes. 2007-10-10 13:09:44 -05:00
Jelmer Vernooij
95c4f31499 r5338: More efforts to handle types similarly. 2007-10-10 13:09:44 -05:00
Tim Potter
94a3ff2380 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!
2007-10-10 13:09:44 -05:00
Andrew Bartlett
a28ca320dc r5334: Bah, it's all to hard...
Andrew Bartlett
2007-10-10 13:09:43 -05:00
Andrew Tridgell
dbef4fd5c3 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?
2007-10-10 13:09:43 -05:00
Andrew Bartlett
34b1da7303 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
2007-10-10 13:09:43 -05:00