1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-20 08:23:50 +03:00
Commit Graph

44 Commits

Author SHA1 Message Date
Stefan Metzmacher
9a685c5bef r16523: pass spoolss_XcvData calls to the ntptr backends...
I wrote this code last year and found it in a working tree...

metze
2007-10-10 14:09:32 -05:00
Andrew Bartlett
3dff2a0078 r14702: Accept our netbios aliases as valid names in the SPOOLSS server.
(Suggested by metze)

Andrew Bartlett
2007-10-10 13:59:10 -05:00
Stefan Metzmacher
56fac3ddbb r14486: remove the need of a stream_connection on a dcesrv_connection,
and let the transport set callbacks for getting the own and peer
socket_address

metze
2007-10-10 13:57:32 -05:00
Andrew Bartlett
88198c4881 r12804: This patch reworks the Samba4 sockets layer to use a socket_address
structure that is more generic than just 'IP/port'.

It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).

This passes 'make test' as well as kerberos use (not currently in the
testsuite).

The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again.   It also removes nbt_peer_addr, which was being used
for a similar purpose.

It is a large change, but worthwhile I feel.

Andrew Bartlett
2007-10-10 13:49:57 -05:00
Simo Sorce
09e6f494b4 r11597: revert a commit by mistake 2007-10-10 13:45:56 -05:00
Simo Sorce
22c8c97e6f r11567: Ldb API change patch.
This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.

I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.

Simo.
2007-10-10 13:45:53 -05:00
Jelmer Vernooij
8f7070055f r10854: talloc_get_type() can return NULL.. 2007-10-10 13:39:36 -05:00
Stefan Metzmacher
dad0371a9f r8052: that looks nicer:-)
metze
2007-10-10 13:19:03 -05:00
Stefan Metzmacher
d8c308a465 r8046: - add somemore failure checks in the RPC-SPOOLSS test
- test AddForm on the PrintServer object

- GetForm() isn't allowed on the PrintServer object so remove NTPTR
  function for it

- accept the dns name as servername in the spoolss server

metze
2007-10-10 13:19:02 -05:00
Tim Potter
a2d60dd878 r7802: Remove a junk file. 2007-10-10 13:18:37 -05:00
Stefan Metzmacher
7390638842 r7644: - remove some dublicate structures SetForm and AddForm uses the same struct
- fix some typos in EnumPrintServerForms()/GetPrintServerForms()
- add AddPrintServerForms()/SetPrintServerForms() and DeletePrintServerForms

metze
2007-10-10 13:18:17 -05:00
Stefan Metzmacher
455b5536d4 r7643: This patch adds a new NTPTR subsystem:
- this is an abstraction layer for print services,
  like out NTVFS subsystem for file services

- all protocol specific details are still in rpc_server/spoolss/
  - like the stupid in and out Buffer handling
  - checking of the r->in.server_name
  - ...

- this subsystem can have multiple implementation
  selected by the "ntptr providor" global-section parameter

- I currently added a "simple_ldb" backend,
  that stores Printers, Forms, Ports, Monitors, ...
  in the spoolss.db, and does no real printing
  this backend is basicly for testing, how the spoolss protocol
  works

- the interface is just a prototype and will be changed a bit
  the next days or weeks, till the simple_ldb backend can
  handle all calls that are used by normal w2k3/xp clients

- I'll also make the api async, as the ntvfs api
  this will make things like the RemoteFindFirstPrinterChangeNotifyEx(),
  that opens a connection back to the client, easier to implement,
  as we should not block the whole smbd for that

- the idea is to later implement a "unix" backend
  that works like the current samba3 code

- and maybe some embedded print server vendors can write there own
  backend that can directly talk to a printer without having cups or something like this

- the default settings are (it currently makes no sense to change them :-):

ntptr providor = simple_ldb
spoolss database = $private_dir/spoolss.db

metze
2007-10-10 13:18:16 -05:00
Stefan Metzmacher
08e6de37bc r7580: - add GetPrinterDriverDirectory() idl, torture test and server code
- add EnumMonitors() server code and return "Standard TCP/IP Port"
- add parsing for opening Ports and Monitors with OpenPrinterEx()

metze
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
f5532a5b74 r7574: - seperate [in] and [out] buffers and buf_sizes
- use the same names as etherel (offered,needed) for the buffer sizes
  (and they are really independently used)

metze
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
9f4ed54c58 r7536: doesn't spam the smbd_log in the build_farm...
metze
2007-10-10 13:18:07 -05:00
Stefan Metzmacher
d62db5b7d3 r7465: - return empty lists for now
- return WERR_NOT_SUPPORTED on AddPort()
(we pass the RPC-SPOOLSS test now :-)

metze
2007-10-10 13:17:56 -05:00
Stefan Metzmacher
665e4f0bd4 r7370: change debug levels
metze
2007-10-10 13:17:47 -05:00
Stefan Metzmacher
42c9a66da9 r7368: some server side spoolss stuff, w2k3 shows the printers icon,
and I can view the print server properties...

But it didn't like our EnumPorts() reply and also didn't show the test Form...
(jerry: can you have a look at this?)

metze
2007-10-10 13:17:47 -05:00
Stefan Metzmacher
155d18e8b7 r7120: make use of the new 'noopnum' property and get rid of handwritten
parsing code for the spoolss_Enum* functions, there still same handwritten code needed
but just to stack the autogenerated code into the correct way

metze
2007-10-10 13:17:19 -05:00
Stefan Metzmacher
539286bc9f r6193: we don't need to store the handle type here,
it's in handle->wire_handle.handle_type

metze
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
6cdc717f3f r5540: - some more input checking in OpenPrinerEx()
- fix EnumPrinters() output

- add dummy EnumPorts

metze
2007-10-10 13:10:53 -05:00
Stefan Metzmacher
3085d3728e r5503: - add torture test which tests for invalid printernames
- add OpenPrinter() server code that just calls OpenPrinterEx()

- fix OpenPrinterEx logic, we pass the invalid printer names test now

metze
2007-10-10 13:10:52 -05:00
Stefan Metzmacher
bfcc86e706 r5489: hide handwritten pull/push/print code from the caller
for the spoolss_Enum* functions

metze
2007-10-10 13:10:50 -05:00
Andrew Tridgell
ec32b22ed5 r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for
consistency.
2007-10-10 13:09:15 -05:00
Andrew Tridgell
fde042b3fc r4640: first stage in the server side support for multiple context_ids on one pipe
this stage does the following:

 - simplifies the dcerpc_handle handling, and all the callers of it

 - split out the context_id depenent state into a linked list of established contexts

 - fixed some talloc handling in several rpc servers that i noticed while doing the above
2007-10-10 13:08:38 -05:00
Andrew Tridgell
eec698254f r4055: fixed more places to use type safe allocation macros 2007-10-10 13:06:20 -05:00
Andrew Tridgell
80d15fa340 r4052: fixed a bunch of code to use the type safe _p allocation macros 2007-10-10 13:06:18 -05:00
Stefan Metzmacher
f5ee40d6ce r3783: - don't use make proto for ldb anymore
- split ldh.h out of samba's includes.h

- make ldb_context and ldb_module private to the subsystem

- use ltdb_ prefix for all ldb_tdb functions

metze
2007-10-10 13:05:52 -05:00
Andrew Tridgell
729e0026e4 r3468: split out dcerpc_server.h 2007-10-10 13:05:17 -05:00
Andrew Tridgell
b8f5fa8ac8 r3428: switched to using minimal includes for the auto-generated RPC code.
The thing that finally convinced me that minimal includes was worth
pursuing for rpc was a compiler (tcc) that failed to build Samba due
to reaching internal limits of the size of include files. Also the
fact that includes.h.gch was 16MB, which really seems excessive. This
patch brings it back to 12M, which is still too large, but
better. Note that this patch speeds up compile times for both the pch
and non-pch case.

This change also includes the addition iof a "depends()" option in our
IDL files, allowing you to specify that one IDL file depends on
another. This capability was needed for the auto-includes generation.
2007-10-10 13:05:09 -05:00
Volker Lendecke
478ba62915 r3218: Fix the build 2007-10-10 13:04:42 -05:00
Andrew Tridgell
1b4cee825e r2435: got rid of another pointless strnequal() 2007-10-10 12:58:52 -05:00
Andrew Bartlett
8115e44d47 r2055: Add PRINTF_ATTRIBUTE to many more parts of the code, and a new
--enable-developer warning for when they are missing.

Andrew Bartlett
2007-10-10 12:58:21 -05:00
Tim Potter
0edf17ac38 r1313: Split up OpenPrinterEx into functions to handle opening printers and print
servers.
2007-10-10 12:56:50 -05:00
Tim Potter
cf4e9080d5 r1276: Return data for enumprinters level 2 and 5. 2007-10-10 12:56:48 -05:00
Tim Potter
60e48790dc r1271: Return spoolss enumprinters info level1 from spoolss.ldb - woot! 2007-10-10 12:56:47 -05:00
Tim Potter
6b24ee3864 r1266: Start to split out EnumPrinters into a separate fn for each info level. 2007-10-10 12:56:46 -05:00
Tim Potter
5d0013438e r1226: Return dummy information for two printers. Note that ndr_push_array()
can be used here - neat!
2007-10-10 12:56:45 -05:00
Tim Potter
e216c6a707 r1211: Some output from rpcclient -c enumprinters to remind me what a relative
string looks like.  I'm not sure relstrs can be shoehorned into the ndr
code as easily as adding a LIBNDR_STR flag.
2007-10-10 12:56:45 -05:00
Tim Potter
487211f1ae r1210: A skeleton spoolssdb, based on samdb. 2007-10-10 12:56:45 -05:00
Tim Potter
1c749a3a34 r1208: Return some dummy printer information for the EnumPrinters RPC.
rpcclient enumprinters prints this information OK.

Some minor cut&paste cleanups.
2007-10-10 12:56:45 -05:00
Tim Potter
3e79a6219e r1201: Skeleton versions of OpenPrinterEx() and ClosePrinter() to get the hang
of things.
2007-10-10 12:56:44 -05:00
Tim Potter
261531ce0a r1188: Use generated pidl template for this file and return DCESRV_FAULT instead
of a bogus WERROR.
2007-10-10 12:56:44 -05:00
Tim Potter
ed9c4d7d70 r1185: Hey look an endpoint for the spoolss pipe!
Doesn't do much at the moment except compile.
2007-10-10 12:56:43 -05:00