summaryrefslogtreecommitdiffstats
path: root/source3/include
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-auth: Refactor and rename auth_ntlmssp_server_info()Simo Sorce2010-07-201-3/+3
| | | | | | | | | Rename it to auth_ntlmssp_steal_server_info() to make it clear that the server_info struct is stolen from the auth_ntlmssp_state structure. Use talloc_move instead of manual steal&clear Add comments to explain what is going on. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Remove gen_negTokenInit() - change all callers to spnego_gen_negTokenInit().Jeremy Allison2010-07-191-2/+2
| | | | | | | We now have one function to do this in all calling code. More rationalization to follow. Jeremy.
* Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() andJeremy Allison2010-07-191-2/+1
| | | | | | | | into negprot_spnego() where it belongs (it's not an SPNEGO operation). Add a TALLOC_CTX for callers of negprot_spnego(). Closer to unifying all the gen_negTokenXXX calls. Jeremy.
* Remove parse_negTokenTarg(), as it's actually incorrect. We're processingJeremy Allison2010-07-191-2/+2
| | | | | | negTokenInit's here. Use common code in spnego_parse_negTokenInit(). Jeremy.
* s3-rpc_server: Added callbacks for init and shutdown of a rpc service.Andreas Schneider2010-07-191-4/+16
| | | | | | This adds two callback function for each rpc service. One is for initialisation and the other for shutdown. rpc_<service>_unregister() needs to be called to execute the shutdown function.
* s3-auth: Use talloc hierarchies to properly free auth_ntlmssp_state contextsSimo Sorce2010-07-191-1/+0
| | | | | | | Turn auth_ntlmssp_end into a destructor and attach it to auth_ntlmssp_state. Remote auth_ntlmssp_end and use TALLOC_FREE in the callers. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Simplify how we free the auth_contextSimo Sorce2010-07-191-1/+0
| | | | | | | | | Turn the freeing function into a destructor and attach it to the auth_context. Make all callers TALLOC_FREE() the auth_context instead of calling the free function. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-ntlmssp: Remove ntlmssp_end and let the talloc hierarchy handle it.Simo Sorce2010-07-191-1/+0
| | | | | | All the members are children of ntlmssp_state anyway. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-dcerpc: rename SCHANNEL_SIG_SIZE to NL_AUTH_SIGNATURE_SIZE and move to IDL.Günther Deschner2010-07-161-2/+0
| | | | Guenther
* s3-dcerpc: Fix ability to receive Big Endian PDUsSimo Sorce2010-07-161-0/+1
|
* Make the "map to guest" parameter work correctly with NTLMSSP (spnegoJeremy Allison2010-07-161-0/+4
| | | | | | | and raw) under SMB2. Still need to investigate fixing this with krb5 auth (does this make sense ?). Jeremy.
* s3-registry: use some prs macros to the only place where they are used.Günther Deschner2010-07-161-4/+0
| | | | Guenther
* Move the remnants of rpc_parse code under registry/Simo Sorce2010-07-164-79/+4
| | | | | | | | The registry code is the only last user of this code. Move everything under registry/ and hope someone will get rid od it completely from there in the future. Signed-off-by: Günther Deschner <gd@samba.org>
* s3-parse_prs: Remove unuesd functionsSimo Sorce2010-07-161-4/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-misc: Move smb_io_time() to regfio.cSimo Sorce2010-07-161-4/+0
| | | | | | | | This is the last file using this function and we do not want anyone else to keep using hand marshalled stuff anyway. So make it also private to that file. Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use DATA_BLOB for pipes_struct input dataSimo Sorce2010-07-161-1/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use DATA_BLOB instead of prs_struct for req_dataSimo Sorce2010-07-161-1/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use DATA_BLOB instead of prs_struct for reply_pduSimo Sorce2010-07-161-1/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dceprc: Use IDL defined constants for length calculationsSimo Sorce2010-07-161-9/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Move common helpers into a common fileSimo Sorce2010-07-161-20/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* dcerpc: remove ncacn_packet_header and related functionsSimo Sorce2010-07-161-10/+0
| | | | | | ncacn_packet_header was an artifact and it is not necessary anymore Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: consolidate respones packet creation codeSimo Sorce2010-07-162-1/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Convert frag from prs_struct to a simple DATA_BLOBSimo Sorce2010-07-161-1/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Convert rdata from prs_struct to a simple DATA_BLOBSimo Sorce2010-07-162-2/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused functions and headersSimo Sorce2010-07-162-35/+5
| | | | | | parse_rpc.c is dead, long live parse_rpc.c ! Signed-off-by: Günther Deschner <gd@samba.org>
* s3:auth Change auth_ntlmssp_server_info API to return NTSTATUSAndrew Bartlett2010-07-141-2/+3
| | | | | | | | | This fixes a bug where register_existing_vuid() could be called with a NULL server_info if the alloction failed. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-dcerpc: Remove unused functions and headersSimo Sorce2010-07-132-73/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: fix dcerpc_push_ncacn_packet, pass arg by addressSimo Sorce2010-07-131-1/+1
| | | | | | There is no need to copy the whole structure twice by passing it in by value. Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused membersSimo Sorce2010-07-131-3/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused functionsSimo Sorce2010-07-131-3/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use dcerpc_pull_ncacn_packet() to unmarshall dceprc requestsSimo Sorce2010-07-132-4/+7
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* dcerpc: move dcerpc_pull_auth_trailer into a the common dcerpc_util.c fileSimo Sorce2010-07-131-0/+6
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dceprc: Store opnum in its own variableSimo Sorce2010-07-131-0/+3
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dceprc use a DATA_BLOB to hold the curren pdu in pipes_structSimo Sorce2010-07-131-8/+3
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* sr-dcerpc: add dcerpc_push_ncacn_packet_header()Simo Sorce2010-07-131-0/+7
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused headersSimo Sorce2010-07-131-18/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Use dcerpc_set_frag_length()Simo Sorce2010-07-131-1/+0
| | | | | | Automatically calculate the fragment length where possible. Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: link against ../librpc/rpc/dcerpc_util.cGünther Deschner2010-07-131-0/+6
| | | | | | | Guenther Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* s3-dcerpc: Remove unused prototypeSimo Sorce2010-07-131-1/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3: [ug]id_to_unix_... can not failVolker Lendecke2010-07-111-2/+2
| | | | Remove some silly failure checks
* s3: Cleanup of the initial SMB2 counters patch.Ira Cooper2010-07-091-10/+0
| | | | | | | This reorganizes smbd_smb2_request_dispatch to have a central exit point, and use the normal profiling macros. Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-dcerpc: make dcerpc_pull_dcerpc_auth() publicSimo Sorce2010-07-081-0/+3
|
* s3-dcerpc: make dceprc_push_dcerpc_auth publicSimo Sorce2010-07-081-0/+7
|
* s3-rpc: when using rpc_pipe_open_internal, make sure to go through NDR.Günther Deschner2010-07-081-1/+0
| | | | | | | Otherwise a lot of information that is usually generated in the ndr_push remains in an uninitialized state. Guenther
* s3:dcerpc Remove unused structure and functionsSimo Sorce2010-07-082-9/+0
|
* s3:dcerpc Add prs_parse_dcerpc_bindSimo Sorce2010-07-081-0/+3
|
* s3:rpc user idl define dcerpc_ctx_list instead of custom RPC_CONTEXTSimo Sorce2010-07-082-9/+2
|
* s3-dcerpc: add dcerpc_pull_ncacn_packet_header().Günther Deschner2010-07-081-0/+3
| | | | | | Guenther Signed-off-by: Simo Sorce <idra@samba.org>
* s3-dcerpc: remove unused init_rpc_hdr_rb and init_rpc_context.Günther Deschner2010-07-071-6/+0
| | | | | | Guenther Signed-off-by: Simo Sorce <idra@samba.org>
* s3-dcerpc: use dcerpc_push_ncacn_packet() for create_bind_or_alt_ctx_internal().Günther Deschner2010-07-071-1/+1
| | | | | | Guenther Signed-off-by: Simo Sorce <idra@samba.org>