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

1663 Commits

Author SHA1 Message Date
Jelmer Vernooij
2cd5ca7d25 r12542: Move some more prototypes out to seperate headers
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
2007-10-10 13:47:55 -05:00
Andrew Tridgell
e4dbcc0d5d r12531: 'make quicktest' was taking 15 minutes on my system due to failing DNS
lookups in load_interfaces(). The reason was my eth0 interface was
down, and it was being interpreted as a DNS name.

This patch changes load_interfaces() to happening automatically when
interfaces are first needed instead of on the startup of every samba
binary. This means that (for example) ldbadd doesn't call
load_interfaces(), which means no slow DNS lookups.

I also reduced the number of static globals in interface.c to 1, and
changed from malloc to talloc

When you want to force a reload of the interfaces list, you now call
unload_interfaces(), which means the next call that needs the
interfaces list will reload it
(This used to be commit f79d90bd1364b970adb2981b2572e77066431f1e)
2007-10-10 13:47:52 -05:00
Jelmer Vernooij
7285e102f0 r12523: Convert the registry subsystem to use a seperate prototype header
(note that this doesn't use the distinction between private
 and public prototypes yet)
(This used to be commit 60e11f575821c1762b25ad66441b6e69ad1167ef)
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
0ad7b308a1 r12514: Move DCE/RPC interface table to a seperate file
Be a bit more strict when checking for duplicate interfaces
(This used to be commit b1286a6d27e2b5aa26f288f6aff70601b0d8ae74)
2007-10-10 13:47:49 -05:00
Jelmer Vernooij
d658de65d3 r12512: Use GUID structs in API functions everywhere rather then converting back and
forth between GUID structs and strings in several places.
(This used to be commit 3564e2f967ef72d6301b4f7e9a311cebcded4d75)
2007-10-10 13:47:48 -05:00
Jelmer Vernooij
acd6a086b3 r12510: Change the DCE/RPC interfaces to take a pointer to a
dcerpc_interface_table struct rather then a tuple of interface
name, UUID and version.

This removes the requirement for having a global list of DCE/RPC interfaces,
except for these parts of the code that use that list explicitly
(ndrdump and the scanner torture test).

This should also allow us to remove the hack that put the authservice parameter
in the dcerpc_binding struct as it can now be read directly from
dcerpc_interface_table.

I will now modify some of these functions to take a dcerpc_syntax_id
structure rather then a full dcerpc_interface_table.
(This used to be commit 8aae0f168e54c01d0866ad6e0da141dbd828574f)
2007-10-10 13:47:48 -05:00
Andrew Bartlett
53b23c0b5a r12505: Cope better with NT_STATUS_PASSWORD_RESTRICTION (due to minimum
password age), and test for the incorrect password error case.

Andrew Bartlett
(This used to be commit 85b7e3c493c65a9e1ea88325cbeaeb9bffceb9e2)
2007-10-10 13:47:47 -05:00
Andrew Bartlett
32fb97aead r12502: A bit of work on the RPC-SAMR torture test. Prove that ridToSid is
really as simple as it looks.

Andrew Bartlett
(This used to be commit a7e4062547470620b5b69dc295d5ac7dcec93116)
2007-10-10 13:47:46 -05:00
Jelmer Vernooij
09c44f6cae r12500: Use init functions explicitly in a few more places. 'gensec' and 'librpc'
are the only two subsystems left to convert.
(This used to be commit f6bbc72996aeee8607fc583140fd60be0e06e969)
2007-10-10 13:47:46 -05:00
Jelmer Vernooij
6aafed9600 r12499: Move smb_build.h out of includes.h
(This used to be commit c92ace494f92084ddf178626cdf392d151043bc7)
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
d8e35f8828 r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
(This used to be commit b24f2583edee38abafa58578d8b5c4b43e517def)
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
448483199f r12494: Support loading modules from .so files for most subsystems.
We now use a different system for initializing the modules for a subsystem.
Most subsystems now have an init function that looks something like this:

	init_module_fn static_init[] = STATIC_AUTH_MODULES;
	init_module_fn *shared_init = load_samba_modules(NULL, "auth");

	run_init_functions(static_init);
	run_init_functions(shared_init);

	talloc_free(shared_init);

I hope to eliminate the other init functions later on (the
init_programname_subsystems; defines).
(This used to be commit b6d2ad4ce0a91c4be790dd258820c492ff1787ea)
2007-10-10 13:47:45 -05:00
Jelmer Vernooij
557ad72e7a r12461: Some updates to the srvsvc IDL from Ronnie Sahlberg
(This used to be commit ff7ef98f34811952331e72095505a2eae430fec0)
2007-10-10 13:47:42 -05:00
Jelmer Vernooij
1ac5c35ed9 r12450: Move generation of proto and full object lists to makefile.pm. 'make' now
handles expanding the protoheader object list, rather then the build system,
	which makes the makefile quite a bit shorter.
(This used to be commit a4088ccc704f1338c040c53596ff606cc1651d03)
2007-10-10 13:47:41 -05:00
Stefan Metzmacher
e161613cbd r12413: do some testing with 0x1E names
metze
(This used to be commit b96eadb890a29cfbcff43ede390ef842e16827ad)
2007-10-10 13:47:35 -05:00
Volker Lendecke
cfea76ac9b r12405: I'm afraid I can't take care of the xplogin test in the near future, so remove
it.

I'll add it again later when I have more time for it.

Volker
(This used to be commit 84ae166e9173e6f16a60503a3a996dfb4f085926)
2007-10-10 13:47:34 -05:00
Jelmer Vernooij
470ba9434a r12219: Use some more common functions
(This used to be commit 57ea480c24ff914dfa6cbc5a309020b21fa4af39)
2007-10-10 13:47:21 -05:00
Stefan Metzmacher
d8c4862d8c r12211: remove unused element
metze
(This used to be commit 1c0586868083455780aec38f638277b313dcfa1a)
2007-10-10 13:47:19 -05:00
Jelmer Vernooij
d0f4663771 r12209: Fix some issues with XML entities.
(This used to be commit 754e51b19d2d1fd6be8e01d62b6ec892688f934c)
2007-10-10 13:47:18 -05:00
Stefan Metzmacher
36acd6e79c r12200: - move the the winsreplication client and server code to the packet_context
system
- this needs to be in one big patch, because of the merging code,
  that changes client in server connections and the other way around
- use socket_connect_send/_recv() in the client code

metze
(This used to be commit f0105b7fcdc3032d22444a1973927fff2dd9a06f)
2007-10-10 13:47:17 -05:00
Andrew Tridgell
d811ea17bb r12158: added ldif handlers for the ntSecurityDescriptor attribute, so when
displaying security descriptors in ldbsearch or ldbedit you can see
the SDDL version.

This also allows us to specify security descriptors in our
setup/*.ldif files in SDDL format, which is much more convenient than
the NDR binary format!
(This used to be commit 8185731c1846412c1b3366824cdb3d05b2d50b73)
2007-10-10 13:47:16 -05:00
Volker Lendecke
1027577449 r12154: Torture test for bug # 3303.
Jeremy, to run this against Samba3 at all you need to insert a "goto line 957"
in line 548. Without this we fail some tests before # 16 and bail out.

While looking at it, you wanted to fix the directory-based ones a while
ago.... :-))

Volker
(This used to be commit 45cd224102f21364c4f6ca056417f956f21eb02e)
2007-10-10 13:47:15 -05:00
Volker Lendecke
cdfdb73280 r12150: Reformatting
(This used to be commit aaa21b7132ec81008ad2ec7b2aafc4604d13093d)
2007-10-10 13:47:14 -05:00
Andrew Tridgell
79eae8ffff r12137: added sddl_encode(), the reverse of the sddl_decode() function added a
couple of days ago. Doesn't yet encode using the shorthand for well
known SIDs.
(This used to be commit 655a4ebe8e0ee18133103bfba0ca6d14cbf81d56)
2007-10-10 13:47:13 -05:00
Stefan Metzmacher
92c23ce9d3 r12127: add --option=rpc_login:samr_auth=yes, to work against w2k3
metze
(This used to be commit d8902e3513e518827f827dbf4bf3e0f17da2a95c)
2007-10-10 13:47:12 -05:00
Andrew Tridgell
111a920fdb r12116: got rid of composite_trigger_done() and composite_trigger_error(), and
instead make the normal composite_done() and composite_error()
functions automatically trigger a delayed callback if the caller has
had no opportunity to setup a async callback

this removes one of the common mistakes in writing a composite function
(This used to be commit f9413ce792ded682e05134b66d433eeec293e6f1)
2007-10-10 13:47:11 -05:00
Stefan Metzmacher
89f5d66dfe r12114: - smb2_keepalive() acts on the smb2_transport
- smb2_logoff() acts on the smb2_session

metze
(This used to be commit ae1ca2bb4affefff1026c03f0765faf28c2b316b)
2007-10-10 13:47:10 -05:00
Andrew Tridgell
d55ab321b2 r12085: wkssvc.idl updated based on work by Ronnie Sahlberg to bring the
Samba4 and ethereal IDL into line, so ethereal doesn't lose any
existing strucutres when switching to idl
(This used to be commit afccf73ecf6cf85e72c04e28724096aa6da96a80)
2007-10-10 13:47:07 -05:00
Stefan Metzmacher
37cc5873e0 r12075: remove NBT-WINSREPLICATION-QUICK test, as we now pass the NBT-WINSREPLICATION
test

metze
(This used to be commit 224dab45ab8de9fd4288c473b141541614cde422)
2007-10-10 13:47:06 -05:00
Stefan Metzmacher
9286235cf8 r12069: fix typo
metze
(This used to be commit 3c442ccb594d1a781e42f2268a3582578ae82d76)
2007-10-10 13:47:04 -05:00
Stefan Metzmacher
bf6ac47848 r12068: a better fix to prevent crashing, on errors
metze
(This used to be commit 7b20f8e66d55774877ec1441175fb707856c6609)
2007-10-10 13:47:04 -05:00
Stefan Metzmacher
7ab5c74a98 r12067: print out some more details
metze
(This used to be commit 8207969a5727e54877752be5168931f609591be1)
2007-10-10 13:47:04 -05:00
Stefan Metzmacher
dbeb44eeda r12066: - add a unique,active,owner vs. unique,active,replica tests where
we respond with the replicas address to the challenge
- fix some skip checks

metze
(This used to be commit a37aaa93cb25c559b27f4c1a7c48285d4223b9aa)
2007-10-10 13:47:04 -05:00
Stefan Metzmacher
84033c20f0 r12024: do some extra sleeping to give the server the chance to handle our reply
metze
(This used to be commit 144bde91b3ccbf40494b3f235a2f2699e32f9ad8)
2007-10-10 13:47:01 -05:00
Stefan Metzmacher
150848248a r12014: free the irpc_request structure with the irpc_call_recv functions,
to match all other _recv functions we have

metze
(This used to be commit bd4f85ab5f60c7430ac88062fa6a9f6cffa9596f)
2007-10-10 13:46:59 -05:00
Andrew Tridgell
f5ed8cc829 r12010: - added support for domain specific SID codes in SDDL strings
- added a bunch more tests to LOCAL-SDDL (all the ones from our schema)

- fixed 'mixed coded declarations' bug
(This used to be commit c30e7698e8e1d9991d35bf86c0d4041a1814ad92)
2007-10-10 13:46:59 -05:00
Andrew Tridgell
86a6ce529f r12009: made the LOCAL-SDDL test less verbose by default, and add it to the
standard tests for the build farm
(This used to be commit 9d6d9b6e50dfe5513f332668b860e6a55af3a39c)
2007-10-10 13:46:58 -05:00
Andrew Tridgell
3aaa6ff496 r12008: added a simple LOCAL-SDDL test suite. Only one example so far. Will be
filled in with more examples as I expand the sddl parsing code.
(This used to be commit 8f80e483a3aa07bb5a16eeccde5af5cd7fb5a975)
2007-10-10 13:46:58 -05:00
Andrew Tridgell
51b1deee5d r12007: fixed a valgrind error in the SMB2-SETINFO test
(This used to be commit 0c3223ab7db93a31121667c65956f30a5b0ec9f8)
2007-10-10 13:46:58 -05:00
Tim Potter
b9b59fa798 r11968: More warning fixes. We're on track to getting to double digits for
the number of warnings generated now.
(This used to be commit d479f2d7607adc698d71c5ba26932c72a26dcaab)
2007-10-10 13:46:52 -05:00
Tim Potter
03d301ead5 r11967: Fix more 64-bit warnings.
(This used to be commit 9c4436a124f874ae240feaf590141d48c33a635f)
2007-10-10 13:46:52 -05:00
Tim Potter
ad02b0bee4 r11965: Try to fix some 64-bit warnings.
(This used to be commit e98c28941a6002042e0e429f99f14e7dd4920aa6)
2007-10-10 13:46:51 -05:00
Stefan Metzmacher
97e19e9716 r11911: as we pass the owned_released vs. replica test now, run it with make test
metze
(This used to be commit d34580ec70dca145ea7911be718ad1fc13297a20)
2007-10-10 13:46:48 -05:00
Andrew Tridgell
42cba737c0 r11907: added testing of SMB2 keepalive
(This used to be commit 6096d23fe0e58b6c3e4174a70a0faebd88fd5f79)
2007-10-10 13:46:47 -05:00
Andrew Tridgell
1e3583475f r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for help
brainstorming this one.
(This used to be commit a969ad592ae4cd8f7c66b1df4763fdc70328c967)
2007-10-10 13:46:47 -05:00
Andrew Tridgell
43405e0744 r11904: added smb2_tdis() testing
(This used to be commit e2ed615a44d825f8c46755408a1a1657222a508b)
2007-10-10 13:46:46 -05:00
Andrew Tridgell
2ede0b162c r11902: added smb2_logoff() testing
(This used to be commit ff50377822fa48eab7f66275098782241ca50f40)
2007-10-10 13:46:46 -05:00
Stefan Metzmacher
7746a144cd r11899: add some usefull debug messages
metze
(This used to be commit 8b9447e8c1be58bd299d464d5d1f15d32c438374)
2007-10-10 13:46:44 -05:00
Stefan Metzmacher
6aff2946e1 r11897: add 2 more sgroup vs. sgroup tests with the replica having no addresses
metze
(This used to be commit 22b8d5014af181aa755ecc5389d9e4bd32d02cab)
2007-10-10 13:46:43 -05:00
Andrew Tridgell
5fc1b68683 r11890: added tests for the last few fields in SMB2 find requests
(This used to be commit 77d1938e96e02fc93c411197869cc6a1fc4451d1)
2007-10-10 13:46:42 -05:00