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

44 Commits

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

metze
(This used to be commit 9a685c5bef)
2007-10-10 14:09:32 -05:00
Andrew Bartlett
9628e714cc r14702: Accept our netbios aliases as valid names in the SPOOLSS server.
(Suggested by metze)

Andrew Bartlett
(This used to be commit 3dff2a0078)
2007-10-10 13:59:10 -05:00
Stefan Metzmacher
a949db7c6d 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
(This used to be commit 56fac3ddbb)
2007-10-10 13:57:32 -05:00
Andrew Bartlett
f55ea8bb3d 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
(This used to be commit 88198c4881)
2007-10-10 13:49:57 -05:00
Simo Sorce
56415ccacb r11597: revert a commit by mistake
(This used to be commit 09e6f494b4)
2007-10-10 13:45:56 -05:00
Simo Sorce
5c95905871 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.
(This used to be commit 22c8c97e6f)
2007-10-10 13:45:53 -05:00
Jelmer Vernooij
d611dd941f r10854: talloc_get_type() can return NULL..
(This used to be commit 8f7070055f)
2007-10-10 13:39:36 -05:00
Stefan Metzmacher
133d41d43d r8052: that looks nicer:-)
metze
(This used to be commit dad0371a9f)
2007-10-10 13:19:03 -05:00
Stefan Metzmacher
fe94ba6e71 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
(This used to be commit d8c308a465)
2007-10-10 13:19:02 -05:00
Tim Potter
f29aa44d57 r7802: Remove a junk file.
(This used to be commit a2d60dd878)
2007-10-10 13:18:37 -05:00
Stefan Metzmacher
19c9f032fd r7644: - remove some dublicate structures SetForm and AddForm uses the same struct
- fix some typos in EnumPrintServerForms()/GetPrintServerForms()
- add AddPrintServerForms()/SetPrintServerForms() and DeletePrintServerForms

metze
(This used to be commit 7390638842)
2007-10-10 13:18:17 -05:00
Stefan Metzmacher
8f85427d6d 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
(This used to be commit 455b5536d4)
2007-10-10 13:18:16 -05:00
Stefan Metzmacher
056d63c62f 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
(This used to be commit 08e6de37bc)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
04c3bbe053 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
(This used to be commit f5532a5b74)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
33bbe2b9e1 r7536: doesn't spam the smbd_log in the build_farm...
metze
(This used to be commit 9f4ed54c58)
2007-10-10 13:18:07 -05:00
Stefan Metzmacher
838e4835de r7465: - return empty lists for now
- return WERR_NOT_SUPPORTED on AddPort()
(we pass the RPC-SPOOLSS test now :-)

metze
(This used to be commit d62db5b7d3)
2007-10-10 13:17:56 -05:00
Stefan Metzmacher
d20bc8c6f4 r7370: change debug levels
metze
(This used to be commit 665e4f0bd4)
2007-10-10 13:17:47 -05:00
Stefan Metzmacher
501986ab4e 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
(This used to be commit 42c9a66da9)
2007-10-10 13:17:47 -05:00
Stefan Metzmacher
62480f1252 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
(This used to be commit 155d18e8b7)
2007-10-10 13:17:19 -05:00
Stefan Metzmacher
b46eb7aa17 r6193: we don't need to store the handle type here,
it's in handle->wire_handle.handle_type

metze
(This used to be commit 539286bc9f)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
9401b2bbd2 r5540: - some more input checking in OpenPrinerEx()
- fix EnumPrinters() output

- add dummy EnumPorts

metze
(This used to be commit 6cdc717f3f)
2007-10-10 13:10:53 -05:00
Stefan Metzmacher
d900aed90c 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
(This used to be commit 3085d3728e)
2007-10-10 13:10:52 -05:00
Stefan Metzmacher
6b4cac2c00 r5489: hide handwritten pull/push/print code from the caller
for the spoolss_Enum* functions

metze
(This used to be commit bfcc86e706)
2007-10-10 13:10:50 -05:00
Andrew Tridgell
759da3b915 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.
(This used to be commit ec32b22ed5)
2007-10-10 13:09:15 -05:00
Andrew Tridgell
577218b2ad 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
(This used to be commit fde042b3fc)
2007-10-10 13:08:38 -05:00
Andrew Tridgell
6e6374cb5b r4055: fixed more places to use type safe allocation macros
(This used to be commit eec698254f)
2007-10-10 13:06:20 -05:00
Andrew Tridgell
58c326809a r4052: fixed a bunch of code to use the type safe _p allocation macros
(This used to be commit 80d15fa340)
2007-10-10 13:06:18 -05:00
Stefan Metzmacher
8a18778286 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
(This used to be commit f5ee40d6ce)
2007-10-10 13:05:52 -05:00
Andrew Tridgell
c051779a0a r3468: split out dcerpc_server.h
(This used to be commit 729e0026e4)
2007-10-10 13:05:17 -05:00
Andrew Tridgell
90067934cd 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.
(This used to be commit b8f5fa8ac8)
2007-10-10 13:05:09 -05:00
Volker Lendecke
5a75c3b060 r3218: Fix the build
(This used to be commit 478ba62915)
2007-10-10 13:04:42 -05:00
Andrew Tridgell
421c0d2a18 r2435: got rid of another pointless strnequal()
(This used to be commit 1b4cee825e)
2007-10-10 12:58:52 -05:00
Andrew Bartlett
5e869b4eab r2055: Add PRINTF_ATTRIBUTE to many more parts of the code, and a new
--enable-developer warning for when they are missing.

Andrew Bartlett
(This used to be commit 8115e44d47)
2007-10-10 12:58:21 -05:00
Tim Potter
c08a2a9e10 r1313: Split up OpenPrinterEx into functions to handle opening printers and print
servers.
(This used to be commit 0edf17ac38)
2007-10-10 12:56:50 -05:00
Tim Potter
f18fa1dfdb r1276: Return data for enumprinters level 2 and 5.
(This used to be commit cf4e9080d5)
2007-10-10 12:56:48 -05:00
Tim Potter
674414c5b8 r1271: Return spoolss enumprinters info level1 from spoolss.ldb - woot!
(This used to be commit 60e48790dc)
2007-10-10 12:56:47 -05:00
Tim Potter
27f245a219 r1266: Start to split out EnumPrinters into a separate fn for each info level.
(This used to be commit 6b24ee3864)
2007-10-10 12:56:46 -05:00
Tim Potter
a38429269e r1226: Return dummy information for two printers. Note that ndr_push_array()
can be used here - neat!
(This used to be commit 5d0013438e)
2007-10-10 12:56:45 -05:00
Tim Potter
c400f86707 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.
(This used to be commit e216c6a707)
2007-10-10 12:56:45 -05:00
Tim Potter
fea69453bd r1210: A skeleton spoolssdb, based on samdb.
(This used to be commit 487211f1ae)
2007-10-10 12:56:45 -05:00
Tim Potter
77c5719864 r1208: Return some dummy printer information for the EnumPrinters RPC.
rpcclient enumprinters prints this information OK.

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