1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-01 21:18:10 +03:00
Commit Graph

3748 Commits

Author SHA1 Message Date
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
Andrew Tridgell
8950718819 r5329: made the nbt server case sensitive 2007-10-10 13:09:43 -05:00
Andrew Tridgell
80a95d5688 r5328: - allow case sensitive nbt name lookups
- added --case-sensitive option to nmblookup

 - added case sensitivity tests to the NBT-WINS test
2007-10-10 13:09:42 -05:00
Andrew Tridgell
8e5d3a74d3 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.
2007-10-10 13:09:41 -05:00
Andrew Tridgell
6d775f1216 r5325: - expanded the NBT-WINS test to include scopes
- fixed the bugs that the new test found
2007-10-10 13:09:41 -05:00
Andrew Tridgell
80ffcc650c 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 :)
2007-10-10 13:09:41 -05:00
Andrew Tridgell
348a5f1d4d 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.
2007-10-10 13:09:41 -05:00
Jelmer Vernooij
6a0f599f82 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
2007-10-10 13:09:41 -05:00
Jelmer Vernooij
a469a5fefb r5319: Make some more alignment code generic, move NDR-specific stuff to
parser.pm (now renamed to ndr.pm).
2007-10-10 13:09:41 -05:00
Andrew Tridgell
bd2c55a519 r5310: allow for rounding errors in the sleep test 2007-10-10 13:09:40 -05:00
Andrew Tridgell
196c45b834 r5309: removed ads.h from includes.h 2007-10-10 13:09:40 -05:00
Andrew Tridgell
bf43c9bdcf r5308: trimmed back a lot of the old macros from smb_macros.h 2007-10-10 13:09:40 -05:00
Andrew Tridgell
826baec7b3 r5307: removed db_wrap.h from includes.h 2007-10-10 13:09:40 -05:00
Andrew Tridgell
cfee0fb02e 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.
2007-10-10 13:09:40 -05:00
Andrew Tridgell
0df3fdd817 r5305: removed libcli/ldap/ldap.h from includes.h 2007-10-10 13:09:39 -05:00
Andrew Tridgell
b902ea546d r5304: removed lib/socket/socket.h from includes.h 2007-10-10 13:09:39 -05:00
Andrew Tridgell
b4993c738b r5303: fixed build of gconf registry backend 2007-10-10 13:09:39 -05:00
Andrew Tridgell
e7e015f79b r5302: fixed a compilation problem on solaris caused by the recent include
changes
2007-10-10 13:09:39 -05:00
Andrew Tridgell
a7a72de07b r5301: fixed pthreads build 2007-10-10 13:09:39 -05:00
Andrew Tridgell
93931b1a74 r5300: more uint32 and system/filesys.h build fixes when developer mode is enabled 2007-10-10 13:09:39 -05:00
Andrew Tridgell
483b7af1fd r5299: fixed an include ordering problem 2007-10-10 13:09:38 -05:00
Andrew Tridgell
9db6c79e90 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.
2007-10-10 13:09:38 -05:00
Andrew Tridgell
b4103d9f2b r5297: ensure pstring is not in the generated prototypes 2007-10-10 13:09:38 -05:00
Andrew Tridgell
6f79432fe6 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?
2007-10-10 13:09:38 -05:00
Andrew Tridgell
bb1ab11d8e 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)
2007-10-10 13:09:37 -05:00
Tim Potter
2f0419c4d8 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.
2007-10-10 13:09:37 -05:00
Andrew Tridgell
e820fca506 r5292: ensure we cleanup the epoll_fd on event context destruction 2007-10-10 13:09:37 -05:00
Andrew Tridgell
8df8308f7f r5291: fixed ncacn_ip_tcp against windows 2007-10-10 13:09:37 -05:00
Jelmer Vernooij
5c2f0df566 r5288: Make alignment code more generic 2007-10-10 13:09:37 -05:00
Jelmer Vernooij
ab490c0c88 r5286: Some first steps in making the pidl code somewhat more generic for the
various data types:

Add ndr_flags argument to all ndr push/pull scalar functions
2007-10-10 13:09:36 -05:00
Stefan Metzmacher
7dbd9e7aab r5285: add a generic dlist_item struct which has a void *ptr for the data
metze
2007-10-10 13:09:36 -05:00
Stefan Metzmacher
b4928f3ea8 r5284: this is needed on my server
+/* this #undef is needed on my SuSE 9.2 Box with glibc-devel-2.3.3-118 */
+#undef u32

as sys/epoll.h has this:
typedef union epoll_data
{
  void *ptr;
  int fd;
  uint32_t u32;
  uint64_t u64;
} epoll_data_t;

metze
2007-10-10 13:09:36 -05:00
Gerald Carter
ece7a3918e r5282: merging autogen fixes from 3_0 2007-10-10 13:09:36 -05:00
Andrew Tridgell
d51fcee29a r5277: initialise the multi_homed flag in the name registration test 2007-10-10 13:09:36 -05:00
Andrew Tridgell
f7712ac746 r5276: - added support for NBT_OPCODE_REFRESH2 (type 0x9)
- when registering with a WINS server, initially use multi-homed
  registration, then switch to name refresh requests. Send refresh
  requests only to the WINS server that responded to our
  registration. If that server goes away, then start the registration
  from scratch. This makes registration more robust to WINS server
  failure.

- send WINS registration requests out on our first interface rather
  than an unbound interface, to avoid the problem of WACK replies
  being sent to the wrong port (w2k3 WINS server does this)
2007-10-10 13:09:36 -05:00
Andrew Tridgell
2502b02898 r5275: - added support for NBT_OPCODE_MULTI_HOME_REG (opcode 0xf) for WINS name registrations
- fixed a bug in the send queue handling on timeouts

- added support for handling unexpected replies (replies to the wrong
  port) at the nbtsocket layer

- added separate layer 2 code for wins refresh and wins registration
2007-10-10 13:09:36 -05:00
Andrew Tridgell
4165f21635 r5274: fixed some const warnings by making the str_list_ functions return "const char **" 2007-10-10 13:09:35 -05:00
Andrew Tridgell
34e1a3ad78 r5273: fixed another bug in the code that keeps timed events
sorted. Hopefully it really works now :-)
2007-10-10 13:09:35 -05:00