Volker Lendecke
e4cd34926f
s3: Lift the smbd_messaging_context from winreg_set_printer_dataex
2010-08-08 16:03:16 +02:00
Volker Lendecke
7471ecb27f
s3: Lift the smbd_messaging_context from winreg_set_printer_secdesc
2010-08-08 16:03:16 +02:00
Volker Lendecke
4fb993f613
s3: Lift the smbd_messaging_context from winreg_get_printer_secdesc
2010-08-08 16:03:16 +02:00
Volker Lendecke
bd8a1d8a86
s3: Lift the smbd_messaging_context from winreg_get_printer
2010-08-08 16:03:16 +02:00
Volker Lendecke
9751d7613b
s3: Lift the smbd_messaging_context from winreg_update_printer
2010-08-08 16:03:16 +02:00
Volker Lendecke
d7f8a6f82d
s3: Lift the smbd_messaging_context from winreg_create_printer
2010-08-08 16:03:16 +02:00
Volker Lendecke
2eb5863722
s3: Lift the smbd_messaging_context from winreg_printer_opendriver
2010-08-08 16:03:16 +02:00
Volker Lendecke
c29e1c3e41
s3: Lift the smbd_messaging_context from winreg_printer_openkey
2010-08-08 16:03:15 +02:00
Volker Lendecke
80cda2e807
s3: Lift the smbd_messaging_context from nt_printing_tdb_migrate
2010-08-08 16:03:15 +02:00
Volker Lendecke
2d3623529f
s3: Lift the smbd_messaging_context from rpc_pipe_open_internal
2010-08-08 16:03:15 +02:00
Volker Lendecke
33256d6478
s3: Lift the smbd_messaging_context from np_open
2010-08-08 16:03:15 +02:00
Volker Lendecke
7c90a6bf38
s3: Lift the smbd_messaging_context from make_internal_rpc_pipe_p
2010-08-08 16:03:15 +02:00
Volker Lendecke
d5b8a993e0
s3: Remove a direct reference to smbd_server_conn
2010-08-08 16:03:15 +02:00
Volker Lendecke
5acb5b09ee
s3: Remove references to smbd_messaging_context()
2010-08-08 16:03:15 +02:00
Volker Lendecke
43c2dcaf4c
s3: Fix a type-punned warning
2010-08-08 14:06:11 +02:00
Stefan Metzmacher
d6eb42cc61
s3:rpcclient: we also need some ndr_pull functions
...
metze
2010-08-08 11:05:18 +02:00
Stefan Metzmacher
08cf7ac7a0
s3:libnet/libnet_samsync.c: we also need some ndr_pull functions
...
metze
2010-08-08 11:05:18 +02:00
Stefan Metzmacher
1c515fb94b
s3:utils/net_rpc_service.c: we also need some ndr_pull functions
...
metze
2010-08-08 11:05:18 +02:00
Stefan Metzmacher
cc6951243d
s3:rpc_server: fix valgrind warning
...
metze
2010-08-08 11:05:17 +02:00
Stefan Metzmacher
ac9f06c9b9
s3:smbd: fix valgrind warning, sizeof(16) != 16...
...
metze
2010-08-08 11:05:16 +02:00
Stefan Metzmacher
66412bfc76
s3:rpc_server: fix memory leaks in rpc_pipe_internal_dispatch()
...
metze
2010-08-08 09:24:44 +02:00
Volker Lendecke
9e88b57407
s3: Fix typos
2010-08-08 08:40:57 +02:00
Volker Lendecke
72fd7fb49d
s3: Remove some references to smbd_messaging_context()
2010-08-07 14:36:59 +02:00
Volker Lendecke
92282a815d
s3: Remove references to smbd_messaging_context() from the spoolss server
2010-08-07 13:16:49 +02:00
Volker Lendecke
a5a0711f0c
s3: Remove a reference to smbd_messaging_context()
2010-08-07 13:16:49 +02:00
Volker Lendecke
19a908350e
s3: Remove some references to smbd_messaging_context()
2010-08-07 13:16:48 +02:00
Volker Lendecke
77c63149a3
s3: Remove procid_self() from connections_fetch_entry()
2010-08-07 13:16:48 +02:00
Volker Lendecke
21229178bd
s3: Add msg_ctx to pipes_struct
2010-08-07 13:16:48 +02:00
Volker Lendecke
c9b654f581
s3: Remove smbd_messaging_context() from send_stat_cache_delete_message()
2010-08-07 13:16:48 +02:00
Volker Lendecke
b03bc8822b
s3: Remove a pointless "else"
2010-08-07 10:30:20 +02:00
Volker Lendecke
4c6fd6043b
s3: Remove an unnecessary NULL check
...
Now that connections.tdb is not used for the broadcast messaging anymore,
connections_fetch_entry is only called for real connections.
2010-08-07 10:12:18 +02:00
Günther Deschner
16949ef75a
s3-net: fix copy/paste typo in usage of "net printing".
...
Guenther
2010-08-06 17:38:15 +02:00
Günther Deschner
0f8e032628
s3-netlogon: remove global include of netlogon.h.
...
This reduces precompiled headers by another 4 MB and also slightly speeds up the
build.
Guenther
2010-08-06 15:46:16 +02:00
Günther Deschner
ccd4af271f
s3: remove global include of samr.h
...
Guenther
2010-08-06 15:43:38 +02:00
Günther Deschner
a90ed3381a
s3-build: no need to include privileges.h twice.
...
Guenther
2010-08-06 15:43:38 +02:00
Günther Deschner
002ac5681f
s3-net: only include netapi header when needed.
...
Guenther
2010-08-06 15:43:38 +02:00
Günther Deschner
164ee0fe56
s3-libsmb: include nbt.h in namequery_dc code.
...
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
f9012635da
s3-libnet: include netlogon.h in libnet samsync header.
...
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
af38b5f800
s3-smbtorture: include svcctl.h
...
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
441d607589
s3-services: include svcctl.h where needed.
...
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
c31df3adb2
s3-build: remove global include of krb5pac.h.
...
Put in samr and netlogon, as they were pulled in via krb5pac.h.
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
257a1f1097
s3-krb5: include krb5pac.h where needed.
...
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
2523aec6d1
s3-rap: include svcctl.h where needed.
...
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
ae36783c7b
s3-passdb: include samr.h where needed.
...
Guenther
2010-08-06 15:43:37 +02:00
Günther Deschner
677dcfa678
s3-param: include svcctl headers in loadparm.
...
Guenther
2010-08-06 15:43:36 +02:00
Günther Deschner
728fba1233
s3-nmbd: include svcctl.h where needed.
...
Guenther
2010-08-06 15:43:36 +02:00
Volker Lendecke
bf9a1dd460
s3: Remove some explicit calls to procid_self()
2010-08-06 15:15:57 +02:00
Volker Lendecke
e6604e5d20
s3: Remove some explicit calls to procid_self()
2010-08-06 15:15:57 +02:00
Andreas Schneider
e9eb263391
s3-spoolss: Make sure we convert a 4 byte value to uint32_t.
2010-08-06 14:20:09 +02:00
Andreas Schneider
043c6f4658
s3-spoolss: Fixed setting driver version correctly.
...
We are in a loop here, so setting tmp to 0 at the beginning of each
iteration sets info8->version to 0 if we enumerate over another value.
2010-08-06 14:20:09 +02:00
Volker Lendecke
8f0c863732
s3: fail db_open_ctdb if ctdb is not around
2010-08-06 14:15:04 +02:00
Andrew Tridgell
fe5f4d91ce
s3-printing: cope with missing printers in print migration
...
The printers database may be completely missing in a new install, and
we may have SECDESC entries for printers that have been removed. Don't
consider these fatal errors in the migration.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-06 12:14:59 +02:00
Volker Lendecke
ee11bb8748
s3: Remove some direct cli->inbuf references in interpret_long_filename
2010-08-05 14:53:54 +02:00
Volker Lendecke
869a19f06c
s3: Remove a pointless wrapper function
2010-08-05 14:53:54 +02:00
Volker Lendecke
61fb8a4fd1
s3: Explicitly pass flags2 to clistr_pull_talloc
...
Required to eventually make cli_list async
2010-08-05 14:53:54 +02:00
Volker Lendecke
1cbe8b85ae
s3: Remove some pointless wrapper functions
2010-08-05 13:57:31 +02:00
Volker Lendecke
6cb5a0d097
s3: Remove some pointless wrapper functions
2010-08-05 13:57:31 +02:00
Volker Lendecke
0a224bc77b
s3: Save the received trans2 from the inbuf in cli_trans
2010-08-05 13:57:29 +02:00
Volker Lendecke
a13b96f04a
s3: Fix a crash in masktest
2010-08-05 12:46:40 +02:00
Andreas Schneider
174a46837d
s3-spoolss: Use the correct value for the data length.
2010-08-05 12:08:40 +02:00
Andreas Schneider
ce2a086119
s3-popt: Only include popt-common.h when needed.
2010-08-05 12:08:31 +02:00
Günther Deschner
c136b84f0d
s3-secrets: only include secrets.h when needed.
...
Guenther
2010-08-05 10:12:25 +02:00
Günther Deschner
e7a6a3ec0d
s3: avoid global include of ads.h.
...
Guenther
2010-08-05 00:32:02 +02:00
Günther Deschner
385adcce73
s3-libnet_join: add ads.h as helper header to IDL.
...
Guenther
2010-08-05 00:32:02 +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
Volker Lendecke
867626abca
s3: Convert cli_list() to return NTSTATUS
...
If needed, the callback functions can count themselves
2010-08-04 20:32:50 +02:00
Volker Lendecke
2ff73f0df3
s3: Use data_blob_null
2010-08-04 20:32:50 +02:00
Günther Deschner
4b17ff4a90
s3-waf: fix the build.
...
Guenther
2010-08-04 14:55:34 +02:00
Christian Ambach
f4e60b42d3
small optimizations for shadowcopy2 module
...
- remove a compiler warning
- replace strlen usage
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-08-04 13:56:12 +02:00
Christian Ambach
b77f241b28
fix snapshot content display with hide unreadable
...
With the hide unreadable option set, snapshots are be displayed
as empty with shadow_copy2 and a NFSv4 ACL module.
To prevent multiple conversions of the paths when the acl call
does a VFS_STAT (as the nfs4acl code does), a check was added
to convert_shadow2_name() so it will not touch paths any more
that look like they have already been converted.
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-08-04 13:56:11 +02:00
Volker Lendecke
cc2aa855a3
s3: Fix shadow copies after the change for in-path @GMT-
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-08-04 13:56:11 +02:00
Volker Lendecke
68c6e07591
s3: Fix in-path shadowcopy2 module
...
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-08-04 13:56:11 +02:00
olivier
72cd5bcd58
make scannedonly notify the scanner if no .scanned: file was found during rename
2010-08-03 17:07:56 +02:00
Günther Deschner
64b26affe0
s3-dcerpc: fix some uninitialized variables build warnings.
...
Guenther
2010-08-03 15:57:56 +02:00
Günther Deschner
bf19a5228a
s3-spoolss: fix type-punned pointer build warning.
...
Guenther
2010-08-03 15:57:56 +02:00
Günther Deschner
743a2dedf4
s3-spoolss: fix uninitialized variable build warning.
...
Andreas, please check.
Guenther
2010-08-03 15:57:56 +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
Andreas Schneider
d3fff45904
s3-spoolss: Fixed a segfault if a value has no data.
2010-08-02 16:42:39 +02:00
Andreas Schneider
307bd439d7
s3-spoolss: Move some debug message to a higher level.
2010-08-02 16:42:39 +02:00
Andreas Schneider
4412bafa44
s3-spoolss: Fixed some C++ build warnings.
2010-08-02 16:42:39 +02:00
Andreas Schneider
772fbce9ff
s3-spoolss: Use a stackframe to allocat memory.
...
This is faster and should be more secure to use if something goes wrong.
2010-08-02 16:37:12 +02:00
Günther Deschner
ff1c5b37f6
s3-spoolss: remove unused MAX_OPEN_PRINTER_EXS define.
...
Guenther
2010-08-02 15:31:10 +02:00
Günther Deschner
322b524194
s3-build: fix some c++ build warnings.
...
Guenther
2010-08-02 12:05:03 +02:00
Volker Lendecke
911db76114
s3: Use cups-config --libs
2010-08-02 11:55:02 +02:00
Volker Lendecke
c59ab01e33
s3: Fix an uninitialized variable
2010-08-01 18:16:19 +02:00
Volker Lendecke
fb167a6028
s3: Fix a C++ warning
2010-08-01 18:16:19 +02:00
Volker Lendecke
0213cfa6af
s3: Fix some nonempty blank lines
2010-08-01 18:11:06 +02:00
Volker Lendecke
9bf2d260aa
s3: Fix an uninitialized variable
2010-08-01 17:58:01 +02:00
Günther Deschner
9e0000224a
s3-printing: remove unused get_local_printer_publishing_data() call.
...
Guenther
2010-07-31 00:54:45 +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
Simo Sorce
28c74564c5
cleanups: Trailing spaces, line length, etc...
2010-07-30 16:34:53 -04:00
Simo Sorce
57bd974e58
s3-dcerpc: Use dcerpc_guess_sizes in the server code too.
2010-07-30 14:55:28 -04:00
Simo Sorce
4c64e4d4af
s3-dceprc: Improve dcerpc_guess_sizes() interface
...
Make it possible to pass in the NDR padding size so that theoretically
client and server code can decide to use a different alignment.
Pass in the header length as a parameter so that this function can be used for
different type of packets.
Make sure padding size will not make the fragment exceed the maximum length.
Calculate padding taking in account the header length.
2010-07-30 14:55:28 -04:00
Simo Sorce
3469fbc5e4
s3-dcerpc: rationalize packet creation in the server code
...
Move all related functions into create_next_packet, but make it transport
neutral (not pass in pipse_struct)
2010-07-30 14:55:27 -04:00
Simo Sorce
a9d3a596a7
s3-dcerpc: Make function to guess pdu sizes common.
2010-07-30 14:55:27 -04:00
Simo Sorce
9329a9fe84
s3-dceprc: consolidate use of dcerpc_push_dcerpc_auth()
2010-07-30 14:55:27 -04:00
Simo Sorce
da6c246aac
s3-dcerpc: Remove unused functions
2010-07-30 14:55:27 -04:00
Simo Sorce
186f93633b
s3-dcerpc: use common spengo wrapper code for client SPNEGO/NTLMSSP
2010-07-30 14:55:27 -04:00
Simo Sorce
984438ca15
s3-dcerpc: add sign/seal support when using SPNEGO/KRB5
2010-07-30 14:55:27 -04:00
Simo Sorce
0b24e8e869
s3-dcerpc: Add SPNEGO incapsulation for KRB5 auth
2010-07-30 14:55:27 -04:00
Simo Sorce
e286b9c0bd
rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for ntlmssp
2010-07-30 14:55:27 -04:00
Volker Lendecke
fcdda8f443
s3: Remove "cli" from "struct finfo"
2010-07-30 17:01:33 +02:00
Jeremy Allison
b7f029016a
We should be using the winbindd separator in this case, not hardcoding a \\ value.
...
Jeremy.
2010-07-29 13:54:22 -07:00
Volker Lendecke
a8cd3ef99e
s3: Do the ftruncate write cache optimization in one place
...
Instead of hand-tuning all the cases that are below this piece of code, this is
a general case that we can catch upfront.
2010-07-29 22:46:44 +02:00
Volker Lendecke
a86cad3921
Revert "s3: Avoid pwrite calls for the 1-byte writes with zero content"
...
This reverts commit 6763730304
.
2010-07-29 22:46:44 +02:00
Volker Lendecke
fec8505e0b
s3: Avoid an unnecessary ftruncate call
...
If we just created the file, it has length 0 by definition. This is still done
while holding the share mode lock, so no race around wrt other cifs clients.
2010-07-29 22:46:36 +02:00
Jeremy Allison
4f43030482
Fix bug #7589 - ntlm_auth fails to use cached credentials.
...
In handling the WINBINDD_PAM_AUTH message winbindd canonicalizes a *copy*
of the mapped username, but fails to canonicalize the actual username
sent to the backend domain process. When "winbind default domain"
is set this can lead to credentials being cached with an index of
user: user, not DOMAIN\user. All other code paths that use
canonicalize_username() (WINBINDD_PAM_CHAUTHTOK, WINBINDD_PAM_LOGOFF)
correctly canonicalize the data sent to the backend. All calls
the can cause credentials to be looked up (PAM_CHAUTHTOK etc.)
correctly call canonicalize_username() to create the credential
lookup key.
Jeremy.
2010-07-29 12:44:00 -07:00
Andreas Schneider
e8d386704e
s3-spoolss: Increased debug level for trace output.
2010-07-29 20:48:01 +02:00
Andreas Schneider
b2be8f2267
s3-spoolss: Fixed debug statements and increased level.
2010-07-29 20:45:07 +02:00
Simo Sorce
e8ac4a8b82
s3-dcerpc: Try to fix build when gssapi_ext.h is not available
2010-07-28 17:12:57 -04:00
Simo Sorce
7c9c075987
Do not refernece pipe_auth_data directly in dcerpc_gssapi.c
2010-07-28 15:53:56 -04:00
Simo Sorce
d17abc69f6
s3-dcerpc: Avoid ifdef, it is handled within dcerpc_gssapi.c already
2010-07-28 15:35:59 -04:00
Volker Lendecke
44add9952e
s3: Fix cli_qpathinfo2
...
Does not fix the DIR_CREATETIME test, but it is definitely an error.
2010-07-28 20:14:25 +02:00
Simo Sorce
c4b3c9ec0f
smbd: Fix build warning
2010-07-28 12:44:37 -04:00
Simo Sorce
7eaa15af2c
s3-dcerpc: Add sign/seal with gssapi
2010-07-28 12:42:15 -04:00
Simo Sorce
1abcbd70ae
s3-dcerpc: Add next authentication step with gssapi
2010-07-28 12:24:44 -04:00
Simo Sorce
135a82e78f
s3-decrpc: Introduce gssapi support for dcerpc krb5 auth
2010-07-28 12:24:44 -04:00
Simo Sorce
72088096af
rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for krb5 auth
2010-07-28 12:23:39 -04:00
Simo Sorce
183e0a0d9f
s3-dcerpc: Refactor calculate_data_len_tosend()
2010-07-28 12:23:22 -04:00
Simo Sorce
c08d684f4e
s3-dcerpc: Add auth trailer only when appropriate.
2010-07-28 12:23:00 -04:00
Simo Sorce
866f85e319
s3-dcerpc: consolidate unmarshalling of dcerpc_auth
2010-07-28 12:22:31 -04:00
Simo Sorce
146af48d48
s3-dcerpc: revive cli_rpc_pipe_open_krb5()
2010-07-28 12:21:29 -04:00
Simo Sorce
250e341e0a
misc: Remove unused structure elements
2010-07-28 12:20:13 -04:00
Simo Sorce
b00f9a0a2d
s3-rpcclient: Allow choosing spnego mech: (ntlm/krb5)
2010-07-28 12:20:01 -04:00
Simo Sorce
2463a87177
s3-dcerpc: Use dcerpc_AuthType in pipe_auth_data
2010-07-28 12:19:32 -04:00
Simo Sorce
1e915d231d
s3-dcerpc: Cleanup and refactor create_rpc_bind_req()
2010-07-28 12:18:45 -04:00
Simo Sorce
3c3237dd0a
s3-auth: Remove unimplemented functions
2010-07-28 12:18:28 -04:00
Simo Sorce
bfe53d4145
s3-dcerpc: Set flags directly instead of calling unimplemented functions.
2010-07-28 12:18:19 -04:00
Simo Sorce
7407c979a1
s3-dcerpc: Use dcerpc_check_auth in client code too
2010-07-28 12:17:56 -04:00
Simo Sorce
9565e3f6a7
s3-dcerpc: Make dcerpc_check_auth() common code
2010-07-28 12:17:41 -04:00
Simo Sorce
5f2cca6b2a
s3-dcerpc: Add the same paranoia checks we have in the client code
2010-07-28 12:17:18 -04:00
Simo Sorce
49a8c2965d
s3-dcerpc: Split auth checking into a generic function.
2010-07-28 12:16:58 -04:00
Simo Sorce
1fc71c9c6f
s3-dcerpc do not pass pipes_struct to dcesrv_auth_request()
2010-07-28 12:16:29 -04:00
Simo Sorce
2ce169ce18
s3-dcerpc: Make dcesrv_auth_request() return NTSTATUS codes
2010-07-28 12:16:08 -04:00
Simo Sorce
aa4c5a2bfb
s3-dcerpc: Use the common dcerpc_add_auth_footer() in the server code
2010-07-28 12:15:45 -04:00
Simo Sorce
3139333419
s3-dcerpc: Move dcerpc_add_auth_footer() to the common helpers file
2010-07-28 12:15:13 -04:00
Simo Sorce
6f5cdf9ae9
s3-dcerpc: Introduce generic helper function to add auth trailer
2010-07-28 12:14:59 -04:00
Simo Sorce
1b572493e2
s3-dcerpc: Pass explicit arguments so that this is not client specific
2010-07-28 12:14:36 -04:00
Simo Sorce
e2b0e43da9
s3-dcerpc: Move marshalling of dcerpc_auth_header in the callers
2010-07-28 12:14:19 -04:00
Andreas Schneider
6ffd7dc780
s3-rpc: Use struct pipes_struct.
2010-07-28 11:07:20 +02:00
Andreas Schneider
f7a1453957
s3-include: Use struct pipes struct and get rid of the typedef.
2010-07-28 10:39:25 +02:00
Andreas Schneider
97dba0c0d9
s3-winbind: Use struct pipes_struct.
2010-07-28 10:39:25 +02:00
Andreas Schneider
6457f814f5
s3-uid: Use struct pipes_struct.
2010-07-28 10:39:25 +02:00
Andreas Schneider
d34fc3d168
s3-wkssvc: Use struct pipes_struct.
2010-07-28 10:39:25 +02:00
Andreas Schneider
31a4240b8d
s3-winreg: Use struct pipes_struct.
2010-07-28 10:39:24 +02:00
Andreas Schneider
ce59e69bca
s3-svcctl: Use struct pipes_struct.
2010-07-28 10:39:24 +02:00
Andreas Schneider
0fee377a52
s3-srvsvc: Use struct pipes_struct.
2010-07-28 10:39:24 +02:00
Andreas Schneider
64fbaad942
s3-spoolss: Use struct pipes_struct.
2010-07-28 10:39:24 +02:00
Andreas Schneider
c3817fe9d2
s3-samr: Use struct pipes_struct.
2010-07-28 10:39:24 +02:00
Andreas Schneider
667d43d4c8
s3-rpc_pipe: Use struct pipes_struct.
2010-07-28 10:39:24 +02:00
Andreas Schneider
33d30926d1
s3-ntsvcs: Use struct pipes_struct.
2010-07-28 10:39:24 +02:00
Andreas Schneider
3fd138fae3
s3-netlogon: Use struct pipes_struct.
2010-07-28 10:39:23 +02:00
Andreas Schneider
872f965558
s3-lsa: Use struct pipes_struct.
2010-07-28 10:39:23 +02:00
Andreas Schneider
35d629d54c
s3-initshutdown: Use struct pipes_struct.
2010-07-28 10:39:23 +02:00
Andreas Schneider
ba023aeaa9
s3-eventlog: Use struct pipes_struct.
2010-07-28 10:39:23 +02:00
Andreas Schneider
c9e3737536
s3-echo: Use struct pipes_struct.
2010-07-28 10:39:23 +02:00
Andreas Schneider
96786a7df0
s3-dssetup: Use struct pipes_struct.
2010-07-28 10:39:23 +02:00
Andreas Schneider
2956bc986f
s3-dfs: Use struct pipes_struct.
2010-07-28 10:39:23 +02:00
Andreas Schneider
46397f788b
s3-rpc_server: Use struct pipes_struct.
2010-07-28 10:39:23 +02:00
Andreas Schneider
dc87fbcb0f
s3-lib: Remove redefinition of RL_COMPLETION_CAST.
...
This is already defined in replace/system/readline.h.
2010-07-28 10:39:22 +02:00
Volker Lendecke
dace013898
s3: Remove a typedef (struct file_info)
2010-07-27 21:05:35 +02:00
Andreas Schneider
9168713774
s3-spoolss: Fixed FILL_DRIVER_STRING leading to wrong results.
2010-07-27 10:27:16 -04:00
Simo Sorce
90c1782882
s3-spoolss: Avoid segfault, check drivername is actually not NULL.
2010-07-27 10:27:16 -04:00
Simo Sorce
6cd2f2ff31
s3-spoolss: Fixed a possible segfault in winreg_get_printer.
2010-07-27 10:27:16 -04:00
Andreas Schneider
bb0226f10e
s3-spoolss: Correctly set the default values.
2010-07-27 10:27:16 -04: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
c3186f22c5
s3-lib: Make the standard_mapping parameter const.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:15 -04:00
Andreas Schneider
1be454538b
s3-spoolss: Remove the program global current_user_info.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:15 -04:00
Andreas Schneider
d8c81423aa
s3-spoolss: Remove unused MAGIC_DISPLAY_FREQUENCY
...
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
c18913a2c2
s3-smbd: Convert reply_printqueue to use spoolss.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Andreas Schneider
96c25cdad5
s3-spoolss: Create winprint print processor key.
...
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
21cd59e7a5
s3-smbd: Use the right check to test if we can print.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Simo Sorce
bdab6b10d2
s3-printing: Moved printing.c headers to include/printing.h.
...
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
4761498c9e
s3-printing: Moved remaining prototypes to nt_printing.h.
...
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
Andreas Schneider
8d44b11c6b
s3-spoolss: Removed wrong comment.
...
This doesn't reflect the current implementation.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
f6db3694ed
s3-spoolss: Moved shared printing functions to nt_printing.h
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Andreas Schneider
395dcbd111
s3-spoolss: Removed the last free_a_printer() call in spoolss_nt.c.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Simo Sorce
c26bfd228d
s3-spoolss: Removed unused set_printer_dataex().
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Andreas Schneider
6d6ce4d1ad
s3-spoolss: Create and update DsSpooler values.
2010-07-27 10:27:11 -04:00
Andreas Schneider
3fe2f6443d
s3-spoolss: Use a temporary talloc context in update_printer.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Andreas Schneider
c52e019ae1
s3-spoolss: Use the existing memory context for winreg_get_printer.
...
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Andreas Schneider
c7ae6cb046
s3-spoolss: Don't return the printer devicemode in spoolss_EnumJobs.
...
Jobs have their own DeviceMode, see print_job_devmode().
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00