Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-07-28 | s3-rpc_server: Use talloc for pipe_rpc_fns | Simo Sorce | 3 | -22/+7 | |
Everything uses talloc in the rpc server nowadays, remove this ancient use of malloc. This also allows us to remove the free fucntion and let talloc handle it properly. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Jul 28 17:41:08 CEST 2011 on sn-devel-104 | |||||
2011-07-28 | s3-rpc_server: remove useless code | Simo Sorce | 1 | -3/+1 | |
We do not reuse pies_struct so there is no reason to SERO_STRUCT() it when we are freeing it as we are done using it anyways. | |||||
2011-07-28 | s3-rpc_server: remove unnecessary talloc_free | Simo Sorce | 1 | -2/+0 | |
The auth_ctx is a child of pipes_struct, and this function is a used only as a destructor on pipes_struct. So it is not really necessary to free this struct in the destructor as it will be freed soon enough anyway. | |||||
2011-07-28 | s3-rpc_server: Remove dead code | Simo Sorce | 1 | -16/+0 | |
srv_str and cli_str are not used anymore. | |||||
2011-07-28 | s3-spoolss: Use existing handle in printer_driver_files_in_use(). | Andreas Schneider | 1 | -4/+2 | |
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 28 16:20:11 CEST 2011 on sn-devel-104 | |||||
2011-07-28 | s3-spoolss: Use existing handle in printer_driver_in_use(). | Andreas Schneider | 1 | -4/+2 | |
2011-07-27 | s3-spoolss: Use get_session_info_system(). | Andreas Schneider | 1 | -19/+2 | |
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Jul 27 10:38:34 CEST 2011 on sn-devel-104 | |||||
2011-07-27 | s3-spoolss: Free the info2 structure in _spoolss_GetPrinter. | Andreas Schneider | 1 | -0/+1 | |
2011-07-27 | s3-spoolss: Use tmp_ctx everywhere in _spoolss_DeletePrinterDriverEx. | Andreas Schneider | 1 | -6/+6 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_enum_printer_key_internal. | Andreas Schneider | 1 | -7/+20 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_printer_deleteform1_internal. | Andreas Schneider | 1 | -4/+17 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_printer_setform1_internal. | Andreas Schneider | 1 | -5/+18 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_printer_addform1_internal. | Andreas Schneider | 1 | -4/+17 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_printer_getform1_internal. | Andreas Schneider | 1 | -5/+18 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_printer_enumforms1_internal. | Andreas Schneider | 1 | -5/+18 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_set_printer_secdesc_internal. | Andreas Schneider | 1 | -5/+18 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_get_printer_secdesc_internal. | Andreas Schneider | 1 | -5/+18 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_add_driver_internal. | Andreas Schneider | 1 | -6/+19 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_del_driver_internal. | Andreas Schneider | 1 | -5/+18 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_get_driver_list_internal. | Andreas Schneider | 1 | -7/+20 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_get_driver_internal. | Andreas Schneider | 1 | -7/+20 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_delete_printer_dataex_internal. | Andreas Schneider | 1 | -6/+19 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_get_printer_dataex_internal. | Andreas Schneider | 1 | -9/+22 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_enum_printer_dataex_internal. | Andreas Schneider | 1 | -7/+20 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_set_printer_dataex_internal. | Andreas Schneider | 1 | -9/+22 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_update_printer_internal. | Andreas Schneider | 1 | -8/+21 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_create_printer_internal. | Andreas Schneider | 1 | -4/+17 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_get_printer_internal. | Andreas Schneider | 1 | -5/+17 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_printer_get_changeid_internal. | Andreas Schneider | 1 | -5/+18 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_printer_update_changeid_internal. | Andreas Schneider | 1 | -4/+17 | |
2011-07-27 | s3-spoolss: Use tmp_ctx in winreg_delete_printer_key_internal. | Andreas Schneider | 1 | -5/+18 | |
2011-07-27 | s3-spoolss: Free local in winreg_printer_binding_handle. | Andreas Schneider | 1 | -0/+1 | |
2011-07-27 | s3-spoolss: Improve memory efficiency. | Simo Sorce | 1 | -158/+242 | |
p->mem_ctx is a relatively long lived context as it will not be freed until a full request is served. In spoolss we do a lot of operations including opening new pipes to connect to winreg. Use more shortlived temporary contexts to avoid leaking a lot of memory on p->mem_ctx and carrying it around untill all the operations in the current call are done. Signed-off-by: Andreas Schneider <asn@samba.org> | |||||
2011-07-27 | s3-rpc_server: Copy correct local tsocket address. | Andreas Schneider | 1 | -1/+1 | |
2011-07-22 | s3-rpc_server: Do not set msg_ctx twice | Simo Sorce | 1 | -1/+0 | |
msg_ctx was already passed to make_base_pipes_struct, no need to set it again. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Fri Jul 22 00:47:28 CEST 2011 on sn-devel-104 | |||||
2011-07-21 | s3-rpc_server: Pass msg_ctx to make_base_pipes_struct(). | Andreas Schneider | 1 | -1/+1 | |
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 21 21:08:32 CEST 2011 on sn-devel-104 | |||||
2011-07-21 | s3-rpc_server: Create common function to allocate pipes_struct | Simo Sorce | 4 | -68/+76 | |
Avoid code duplication and fix bug where a new pipe was not added to InternalPipes upon creation in make_server_pipes_struct() Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 21 19:50:02 CEST 2011 on sn-devel-104 | |||||
2011-07-21 | s3-rpc_server: Move pipe/handles functions | Simo Sorce | 5 | -88/+279 | |
Put InternalPipes related functions in rpc_handles.c and out of rpc_ncacn_np.c rpc_handles.c is the only file that really uses them after all and ncacn_np.c is the wrong place for that stuff. While ther remove unnecessary wrapper functions now that the InternalPipes static variable is directly accessible. Also move all pipes_struct related header stuff in its own rpc_pipes.h header. Signed-off-by: Andreas Schneider <asn@samba.org> | |||||
2011-07-21 | s3-rpc_server: Fixed header define. | Andreas Schneider | 1 | -3/+3 | |
2011-07-21 | s3-rpc_server: Remove unused endpoint information. | Andreas Schneider | 1 | -18/+1 | |
2011-07-21 | s3-rpc_server: We need to copy the session_info for external pipes. | Andreas Schneider | 1 | -1/+6 | |
Andrew please check! | |||||
2011-07-21 | s3-rpc_server: Duplicate the pipe name. | Andreas Schneider | 1 | -1/+8 | |
2011-07-21 | s3-rpc_server: Free the np dir. | Andreas Schneider | 1 | -0/+1 | |
2011-07-21 | s3-rpc_server: Fix messaging context in the pipes struct. | Andreas Schneider | 1 | -1/+4 | |
2011-07-21 | s3-rpc_server: Add my copyright. | Andreas Schneider | 1 | -0/+1 | |
2011-07-20 | s3-auth Remove seperate guest boolean | Andrew Bartlett | 2 | -2/+3 | |
Instead, we base our guest calculations on the presence or absense of the authenticated users group in the token, ensuring that we have only one canonical source of this important piece of authorization data Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org> | |||||
2011-07-20 | s3-rpc_server remove per-element copies of auth_session_info | Andrew Bartlett | 2 | -44/+4 | |
This is not required any more now that they are the same structure, and shows the value in having a common structure across the codebase. In particular, now any additional state that needs to be added to the auth_session_info will be transparently available across the named pipe proxy, without a need to modify the mapping layer. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org> | |||||
2011-07-20 | s3-auth Use the common auth_session_info | Andrew Bartlett | 16 | -95/+95 | |
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-20 | s3-auth use auth_user_info not netr_SamInfo3 in auth3_session_info | Andrew Bartlett | 5 | -67/+37 | |
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-20 | s3-rpc_server read and write the unix_token and unix_info across named_pipe_auth | Andrew Bartlett | 2 | -27/+42 | |
This ensures that the exact same token is used on both sides of the pipe, when a full token is passed (ie, source3 to source3, but not yet source4 to to source3 as the unix info isn't calculated there yet). If we do not have unix_token, we fall back to the old behaviour and go via create_local_token(). (However, in this case the security_token is now overwritten, as it is better to have it match the rest of the session_info create_local_token() builds). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org> |