svn commit: samba r7643 - in branches/SAMBA_4_0/source: . include librpc/idl ntptr ntptr/simple_ldb param rpc_server rpc_server/spoolss

metze at samba.org metze at samba.org
Thu Jun 16 17:27:59 GMT 2005


Author: metze
Date: 2005-06-16 17:27:57 +0000 (Thu, 16 Jun 2005)
New Revision: 7643

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7643

Log:
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
Added:
   branches/SAMBA_4_0/source/ntptr/
   branches/SAMBA_4_0/source/ntptr/config.mk
   branches/SAMBA_4_0/source/ntptr/ntptr.h
   branches/SAMBA_4_0/source/ntptr/ntptr_base.c
   branches/SAMBA_4_0/source/ntptr/ntptr_interface.c
   branches/SAMBA_4_0/source/ntptr/simple_ldb/
   branches/SAMBA_4_0/source/ntptr/simple_ldb/ntptr_simple_ldb.c
Removed:
   branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.h
   branches/SAMBA_4_0/source/rpc_server/spoolss/spoolssdb.c
Modified:
   branches/SAMBA_4_0/source/config.list
   branches/SAMBA_4_0/source/include/structs.h
   branches/SAMBA_4_0/source/librpc/idl/spoolss.idl
   branches/SAMBA_4_0/source/param/loadparm.c
   branches/SAMBA_4_0/source/rpc_server/config.mk
   branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.c


Changeset:
Sorry, the patch is too large (2770 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7643


More information about the samba-cvs mailing list