Günther Deschner
c136b84f0d
s3-secrets: only include secrets.h when needed.
...
Guenther
2010-08-05 10:12:25 +02:00
Günther Deschner
31c484edb9
s3-printing: move AD related printing components to an own file.
...
Guenther
2010-08-05 00:32:02 +02:00
Günther Deschner
c530aa33cd
s3-printing: make sure to set NTSTATUS code before checking it.
...
Andreas, please check.
Guenther
2010-08-03 15:57:52 +02:00
Günther Deschner
eab6d8c390
s3-spoolss: remove duplicate (and incorrect) header.
...
Guenther
2010-08-03 00:18:31 +02:00
Günther Deschner
813fbbd68c
s3-build: avoid to globally include printing and spoolss headers.
...
This shrinks precompiled headers by 3MB and will slightly speed up any build.
Guenther
2010-07-31 00:50:31 +02:00
Andreas Schneider
b95d5563dd
s3-printing: Added automatic migration of printing tdbs.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:15 -04:00
Andreas Schneider
924cc43d1b
s3-spoolss: Move the standard mappings to spoolss.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:15 -04:00
Andreas Schneider
db2a777b0e
s3-printing: Added automatic migration of printing tdbs.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:15 -04:00
Andreas Schneider
35e03ef5c2
s3-printing: Move all tdb upgrade functions to a separate file.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Simo Sorce
f5a2f8fa2b
s3-printing: Removed unused function print_job_fd().
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Simo Sorce
628f9bee05
s3-spoolss: Use WERROR for print_job_delete.
...
And also check for PJOB_SMBD_SPOOLING in print_job_write.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Simo Sorce
95f587a565
s3-printing: Removed unused printfsp.c.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Simo Sorce
849cc65654
s3-smbd: Migrated to new spoolss functions for printing.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Simo Sorce
660506d359
s3-printing: Handled case when smbd spools a file on behalf of spoolss.
2010-07-27 10:27:13 -04:00
Simo Sorce
94ee35f9cc
s3-printing: Made print_job_start more robust.
...
Explicitly return ntstatus errors instead of relying on elusive errno.
Split the function to make it easier to follow.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Andreas Schneider
7c629bda2f
s3-printing: Remove unused printer registry key functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Andreas Schneider
ae405eed4f
s3-printing: Removed unused security descriptor functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
e2d3c0efa9
s3-printing: Removed unused nt_forms.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
c918cfdede
s3-printing: Removed unsuded c_setprinter functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
d8ab3e52dc
s3-printing: Removed unused free_a_printer function.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
5c1f283747
s3-printing: Removed unused mod_a_printer functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
4e45d5f824
s3-printing: Removed unused get_a_printer functions.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Simo Sorce
38d6274864
s3-smbd: Added code to print via spoolss.
2010-07-27 10:27:12 -04:00
Simo Sorce
a1fe2ed68a
s3-spoolss: Use winreg_delete_printer_key to delete printers.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
fdf669d377
s3-spoolss: Get rid of get_server_name.
...
This function was useless the structure is public and used everywhere.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
44bc6714b0
s3-printing: Converted printer publishing functions.
...
Use spoolss_PrintInfo2 and winreg calls.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
d17d73f4be
s3-printing: Convert print_driver_in_use.
...
Use spoolss_PrintInfo2 and winreg calls.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
017a305fed
s3-printing: Convert print_time_access_check.
...
use spoolss_PrintInfo2 and winreg calls
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
52b8f1f471
s3-spoolss: Migrated driver functions to winreg.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Andreas Schneider
e517588a20
s3-spoolss: Set c_setprinter always to 0.
...
This value is only used for the well known printers list which Samba
doesn't implement.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Andreas Schneider
e2c9ad93cb
s3-spoolss: Migrated spoolss_AddPrinter and spoolss_SetPrinter.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Simo Sorce
5604a78f09
s3-spoolss: Migrated NT_DEVICEMODE to spoolss_DeviceMode.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:06 -04:00
Volker Lendecke
7f0e6df883
s3: Pass the new server_id through reinit_after_fork
2010-07-04 17:29:23 +02:00
Volker Lendecke
eb50f77154
s3: Fix some nested extern warnings
2010-07-04 16:41:14 +02:00
Volker Lendecke
b01958b0bd
s3: Remove serverid_[de]register_self
...
This removes some deep references to procid_self()
2010-07-04 16:41:14 +02:00
Günther Deschner
e4ba8fb3b9
s3-printing: Fix Bug #7541 , %D in "printer admin" causing smbd crash.
...
Guenther
2010-07-01 14:13:16 +02:00
Günther Deschner
14f2525f9e
s3-printing: add BUILTIN\Print Operators as FULL CONTROL to default sd.
...
Guenther
2010-06-16 12:15:24 +02:00
Andreas Schneider
47ae4a518c
s3-spoolss: Provide a memory context for clean_up_driver_struct().
...
If we use a stack variable to setup spoolss_AddDriverInfoCtr this would
segfault with a talloc bad magic value.
2010-06-16 12:03:46 +02:00
Volker Lendecke
3f7e2222f4
s3: Remove the pointless PRINTERNAME macro
2010-06-13 12:40:27 +02:00
Volker Lendecke
1b13755698
s3: Remove the pointless SERVICE macro
2010-06-13 12:40:27 +02:00
Andreas Schneider
0962763822
s3:misc make use of server_[event/messaging]_context directly
...
Untangle these functions from smbd specific dependencies so they can be freely
used in multiple servers.
2010-06-10 17:30:45 -04:00
Günther Deschner
f9f8007361
s3-build: only use ndr_security.h where needed.
...
Guenther
2010-05-31 11:32:37 +02:00
Simo Sorce
d9cffc01be
s3:auth use info3 in auth_serversupplied_info
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28 00:55:53 +02:00
Michael Adam
0fe1ff99a1
s3:registry: move reg_objects.h to registry/ and use it only where needed
...
Every place outside of registry/ where this is used, should probably
be changed to use pure reg_api.c code.
2010-05-25 10:35:31 +02:00
Michael Adam
b5d0fdd96c
s3:nt_printing: use regval_ctr_init().
2010-05-25 10:35:30 +02:00
Michael Adam
9ccf66379a
s3:registry: adapt callers of regval_ctr_addvalue to uint8 * instead of char *
2010-05-25 10:35:25 +02:00
Andrew Bartlett
cba7f8b827
s3:dom_sid Global replace of DOM_SID with struct dom_sid
...
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Andreas Schneider
0953087f82
s3-spoolss: Added EN ISO 216, A0 and A1 to builtin forms.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 16:37:16 +02:00
Simo Sorce
d6a73ad85b
s3-spoolss: Removed the Phantom DeviceMode.
...
This was a hack that required a special client from HP.
The client code has never been released and was discontinued,
so this code was just dead weight.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 15:52:28 +02:00
Andreas Schneider
7d363b8922
s3-spoolss: Create a spoolss_map_to_os2_driver function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-18 15:17:23 +02:00