1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

780 Commits

Author SHA1 Message Date
Andreas Schneider
2a5dba5555 s3-spoolss: Migrated spoolss_Forms to use the winreg changeid function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
67bdaa5616 s3-spoolss: Migrated spoolss_GetForm to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
a879bba0ac s3-spoolss: Migrated spoolss_SetForm to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
76f72fe515 s3-spoolss: Migrated spoolss_DeleteForm to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
fad361aa8a s3-spoolss: Migrated spoolss_AddForm to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
2ae1796b09 s3-spoolss: Migrated spoolss_EnumForms to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
142431d097 s3-spoolss: Migrated spoolss_DeletePrinterKey to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
fb5529f623 s3-spoolss: Migrated spoolss_DeletePrinterDataEx to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
e210230587 s3-spoolss: Migrated spoolss_EnumPrinterKey to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
df35b343db s3-spoolss: Migrated spoolss_EnumPrinterDataEx to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
795618a592 s3-spoolss: Migrated spoolss_GetPrinterDataEx to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:06 -04:00
Andreas Schneider
3d7e99e2c3 s3-spoolss: Migrated spoolss_SetPrinterDataEx to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:06 -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
Simo Sorce
77fb3649ce s3-dceprc: Store opnum in its own variable
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:10 +02:00
Volker Lendecke
dfc84ece9d s3: Remove procid_self() from srv_spoolss_reply[open|close]printer() 2010-07-05 11:06:32 +02:00
Volker Lendecke
6436ea3e7a s3: Remove procid_self() from srv_spoolss_drv_upgrade_printer() 2010-07-05 11:06:31 +02:00
Volker Lendecke
b0c83d50f9 s3: Replace register_message_flags() with serverid_register_msg_flags()
message_send_all is now done by walking the serverid.tdb, not the
connections.tdb anymore.

Günther, Simo, please check!
2010-07-04 21:49:03 +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
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
Simo Sorce
f9fc4df0c0 s3:rpc make num_pipe_handles get an actual pipe as argument
Let the function abstract out how handles are counted
2010-06-07 17:25:48 -04:00
Günther Deschner
2794d2ee7f s3-security: use shared Security Access Masks Rights.
Guenther
2010-06-03 11:00:25 +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
Günther Deschner
5a6f3a0666 s3-rpc_client: move protos to init_spoolss.h
Guenther
2010-05-18 21:42:48 +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
Günther Deschner
8951c8301a s3-secdesc: remove "typedef struct security_acl SEC_ACL".
Guenther
2010-05-18 12:30:12 +02:00
Günther Deschner
8bc9c343c4 s3-secdesc: remove "typedef struct sec_desc_buf SEC_DESC_BUF".
Guenther
2010-05-18 12:30:11 +02:00
Jelmer Vernooij
b8268cf7b0 s3: Remove use of iconv_convenience. 2010-05-18 11:45:31 +02:00
Günther Deschner
fe31b67d5e s3-registry: only include registry headers when really needed.
Guenther
2010-05-18 01:15:38 +02:00
Günther Deschner
049416c285 s3-spoolss: make several notify functions static.
Guenther
2010-05-06 13:41:51 +02:00
Günther Deschner
c6ebab846d s3: only include gen_ndr headers where needed.
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:

ccache build w/o patch
real    4m21.529s
ccache build with patch
real    3m6.402s

pch build w/o patch
real    4m26.318s
pch build with patch
real    3m6.932s

Guenther
2010-05-06 00:22:59 +02:00
Andreas Schneider
6683b0d4b6 s3-lib: Create a sec_desc_merge and sec_desc_merge_buf function.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-04 19:37:39 +02:00
Günther Deschner
1691eb73da s3-spoolss: add support for SetJobInfo level 1 (for jobfile rename).
Guenther
2010-04-28 00:10:40 +02:00
Günther Deschner
698b7780c9 s3-spoolss: make switch in _spoolss_AddPrinterDriver() a bit more clear.
Guenther
2010-04-23 11:41:25 +02:00
Günther Deschner
a14938377e s3-spoolss: make sure AddPrinterDriver calls into AddPrinterDriverEx.
Not vice versa. Also disable some info levels in AddPrinterDriver according to
MS-RPRN 3.1.4.4.1.

Found by torture test.

Guenther
2010-04-23 03:04:47 +02:00
Günther Deschner
413ffe9adb s3-spoolss: fix some crash bugs and missing error codes in AddDriver paths.
Found by torture test.

Guenther
2010-04-23 02:34:43 +02:00
Günther Deschner
63b111bd32 s3: add iconv_convenience handle to pull/push sz helpers.
Guenther
2010-04-09 18:33:45 +02:00
Günther Deschner
65c5b786ca s3-spoolss: Fix some issues in _spoolss_AddForm.
Found by torture test.

Guenther
2010-04-07 23:53:18 +02:00
Günther Deschner
34ada1d540 s3-spoolss: Fix potential memleak in _spoolss_AddForm and _spoolss_SetForm.
Guenther
2010-04-07 23:53:18 +02:00
Günther Deschner
dcec932279 s3-spoolss: return info for the correct printjob in _spoolss_GetJob().
Guenther
2010-03-26 14:36:47 +01:00
Günther Deschner
c9cc26ef62 s3-spoolss: Fix _spoolss_EnumPrinterData.
Guenther
2010-03-15 14:41:58 +01:00
Günther Deschner
5e48aa7ebb s3-spoolss: wrap _spoolss_EnumPrinterData() around _spoolss_EnumPrinterDataEx().
This removes some dependencies to registry code.

Guenther
2010-03-13 01:12:22 +01:00
Jeremy Allison
59545276f2 Try and fix bug #7233 - print fails with jobs >4GB from Win7 clients.
Remove an arbitrarty 4G B limit that *doesn't need to be there* !
Jeremy.
2010-03-10 17:46:09 -08:00
Günther Deschner
5532654985 s3-spoolss: fix _spoolss_EnumPrinterDataEx after idl
Guenther
2010-03-05 15:18:01 +01:00
Günther Deschner
fbb6d00eed s3-spoolss: fix _spoolss_GetPrinterDataEx after IDL change.
Guenther
2010-03-05 15:18:00 +01:00
Günther Deschner
9a93483279 s3-spoolss: fix _spoolss_SetPrinterData{Ex} after IDL change.
Guenther
2010-03-05 15:17:59 +01:00
Günther Deschner
3ca8d28bb7 spoolss: fix build and version in spoolss_PrinterInfo0 (aka PRINTER_INFO_STRESS).
Guenther
2010-02-26 17:39:21 +01:00
Günther Deschner
10c8b0fb73 s3-spoolss: Save entire devicemode.
found by RPC-SPOOLSS-PRINTER torture test.

Guenther
2010-02-25 14:35:41 +01:00
Stefan Metzmacher
a2cd203982 s3:spoolss: construct the devmode the same way for level 2 and 8
metze
2010-02-23 16:41:26 +01:00
Günther Deschner
13533e12fd s3-spoolss: add support for _spoolss_SetPrinter level 8.
Guenther
2010-02-19 00:42:25 +01:00