summaryrefslogtreecommitdiff
path: root/source3/printing/printing.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-27Finally remove all malloc()'s from the substitute code. Now totallyJeremy Allison1-3/+1
talloc() based. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jan 27 03:43:21 CET 2012 on sn-devel-104
2011-08-10s3-printing: Rework how the background process is startedSimo Sorce1-0/+2
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-08-02s3:server Consolidate printing related initializationSimo Sorce1-0/+5
Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Aug 2 17:37:44 CEST 2011 on sn-devel-104
2011-08-02s3:smbd - Move printing queue stuffSimo Sorce1-113/+1
This way we can properly deal with pcap updates in the background queue process if it is enabled (on by default) and not perform these actions in the main smbd process. Signed-off-by: Günther Deschner <gd@samba.org>
2011-07-20s3-auth Use the common auth_session_infoAndrew Bartlett1-9/+9
This patch finally has the same structure being used to describe the authorization data of a user across the whole codebase. This will allow of our session handling to be accomplished with common code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20s3-auth use auth_user_info not netr_SamInfo3 in auth3_session_infoAndrew Bartlett1-1/+1
This makes auth3_session_info identical to auth_session_info The logic to convert the info3 to a struct auth_user_info is essentially moved up the stack from the named pipe proxy in source3/rpc_server to create_local_token(). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20s3-auth Use struct auth_user_info_unix for unix_name and sanitized_usernameAndrew Bartlett1-3/+3
This is closer to the layout of struct auth_session_info in auth.idl Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20s3-auth Use *unix_token rather than utok in struct auth3_session_infoAndrew Bartlett1-4/+4
This brings this structure one step closer to the struct auth_session_info. A few SMB_ASSERT calls are added in some key places to ensure that this pointer is initialised, to make tracing any bugs here easier in future. NOTE: Many of the users of this structure should be reviewed, as unix and NT access checks are mixed in a way that should just be done using the NT ACL. This patch has not changed this behaviour however. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20s3-auth Use struct auth3_session_info outside the auth subsystemAndrew Bartlett1-9/+9
This seperation between the structure used inside the auth modules and in the wider codebase allows for a gradual migration from struct auth_serversupplied_info -> struct auth_session_info (from auth.idl) The idea here is that we keep a clear seperation between the structure before and after the local groups, local user lookup and the session key modifications have been processed, as the lack of this seperation has caused issues in the past. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-29param: Merge param headers into lib/param/loadparm.hAndrew Bartlett1-0/+1
This defines a common table format, so we can in future define a common table. Andrew Bartlett
2011-06-20tdb_compat: Higher level API fixes.Rusty Russell1-7/+7
My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_chainlock: check returns for 0, not -1.Rusty Russell1-1/+1
TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_store: check returns for 0, not -1.Rusty Russell1-5/+5
TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell1-14/+14
This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-05-06s3: only include tdb headers where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner1-1/+0
Guenther
2011-03-30s3-messages: only include messages.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-auth: printing needs auth.hGünther Deschner1-0/+1
Guenther
2011-03-30s3: printing needs parts of smbd.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/syslog.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-29s3:printing Make print_queue_receive publicSimo Sorce1-1/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-02s3-server_id: only include server_id where needed.Günther Deschner1-0/+1
Guenther
2011-02-28Fix compiler warning on casting -1 to uint32.Jeremy Allison1-3/+3
2011-02-22s3-printing: fix pcacp prototypes and includes.Günther Deschner1-0/+1
Guenther
2011-02-22s3-printing: isolate print notification prototypes better.Günther Deschner1-0/+1
Guenther
2011-02-22s3: Fix a typoVolker Lendecke1-1/+1
2010-10-20s3: Make "unpack_pjob" staticVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 20 16:51:04 UTC 2010 on sn-devel-104
2010-09-09s3-printing: Make auth_serversupplied_info const.Andreas Schneider1-9/+9
2010-08-18s3-printing: Added function to update the queue.Andreas Schneider1-30/+174
2010-08-18s3-printing: Rename jobs_changed functions to jobs_added.Andreas Schneider1-26/+26
2010-08-18s3: Use pipe_struct->client_id->name for pjob.clientmachineVolker Lendecke1-7/+2
2010-08-18s3: Move initializing pjob.clientname to print_job_start()Volker Lendecke1-8/+8
2010-08-17s3: Directly call write_data from print_job_write()Volker Lendecke1-1/+1
2010-08-17s3: Remove unused "pos" arg from print_job_writeVolker Lendecke1-3/+2
2010-08-16s3-printing: Lift the use of smbd_server_fd from job_submit.Volker Lendecke1-2/+12
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-08-08s3: Lift the server_messaging_context from print_job_endpageVolker Lendecke1-3/+3
2010-08-08s3: Lift the server_messaging_context from print_job_writeVolker Lendecke1-3/+5
2010-08-08s3: Lift the server_messaging_context from print_job_delete1Volker Lendecke1-8/+8
2010-08-08s3: Lift the server_messaging_context from print_job_set_nameVolker Lendecke1-3/+4
2010-08-08s3: Lift the server_messaging_context from print_queue_update_with_lockVolker Lendecke1-5/+8
2010-08-08s3: Lift the server_messaging_context from print_queue_update_internalVolker Lendecke1-11/+12
2010-08-08s3: Lift the server_messaging_context from traverse_fn_deleteVolker Lendecke1-10/+10
2010-08-08s3: Lift the server_messaging_context from print_unix_jobVolker Lendecke1-5/+11
2010-08-08s3: Lift the server_messaging_context from pjob_deleteVolker Lendecke1-12/+22
2010-08-08s3: Lift the server_messaging_context from pjob_storeVolker Lendecke1-13/+23
2010-08-08s3: Lift the server_messaging_context from pjob_store_notifyVolker Lendecke1-17/+18
2010-08-08s3: Lift the server_messaging_context from notify_job_submittedVolker Lendecke1-1/+3
2010-08-08s3: Lift the server_messaging_context from notify_job_nameVolker Lendecke1-2/+6
2010-08-08s3: Lift the server_messaging_context from notify_job_usernameVolker Lendecke1-1/+3