summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_pipe.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-20s3-auth Use struct auth3_session_info outside the auth subsystemAndrew Bartlett1-2/+2
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-07-04s3-rpc_server: Replace client_id in dcerpc gssapi server.Andreas Schneider1-4/+4
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-04s3-rpc_server: Remove unused client_id in srv_pipe.c.Andreas Schneider1-3/+0
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-04s3-auth: Added remote_address to ntlmssp server.Andreas Schneider1-0/+2
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-06-01s3-rpc_server: Fix debug messages.Andreas Schneider1-46/+20
2011-06-01s3-rpc_server: Remove guessing of the syntax id.Andreas Schneider1-0/+7
This is only a wild guess. We don't know to which rpc service the client wants to talk until we read the the rpc bind packet.
2011-06-01s3-rpc_server: Use the correct syntax id for debugging.Andreas Schneider1-8/+11
2011-06-01s3-rpc_server: Use the context syntax id in api_pipe_request().Andreas Schneider1-7/+7
2011-06-01s3-rpc_server: Use the correct syntax id in api_pipe_bind_req().Andreas Schneider1-19/+14
2011-06-01s3-rpc_server: Move the context functions to own file.Andreas Schneider1-20/+1
2011-06-01s3-rpc_server: Store the ndr syntax id in the pipe context.Andreas Schneider1-5/+6
The client tell us in the rpc bind to which rpc service it wants to connect. We did set the p->syntax earlier by guessing to which pipe name it connects, but we don't know to which rpc service it wants to bind until we read the first packet.
2011-05-02s3-rpc_server: (re)move last globally included rpc_server prototypes.Günther Deschner1-0/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon May 2 16:05:31 CEST 2011 on sn-devel-104
2011-05-02s3-smbd: avoid using pipes_struct when only session_info is needed.Günther Deschner1-1/+1
Guenther
2011-04-04s3-rpc_server Remove comment, yes the key is correct.Andrew Bartlett1-2/+0
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Apr 4 13:31:52 CEST 2011 on sn-devel-104
2011-04-04s3-auth consolidate create_local_token() into make_server_info_krb5()Andrew Bartlett1-10/+0
This ensures that all callers don't need to each add builtin groups and privileges to the user's token Andrew Bartlett
2011-03-30s3-includes: only include ntdomain.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-auth: rpc_server needs auth.hGünther Deschner1-0/+1
Guenther
2011-03-30s3: rpc_server 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-23s3-epmapper: Use DCERPC_AUTH_LEVEL_CONNECT for ep ncalrpc.Andreas Schneider1-3/+0
2011-03-23s3-rpc_server: Rename system_user to ncalrpc_as_system.Andreas Schneider1-1/+1
2011-03-09s3-rpc_server: handle DCERPC_AUTH_LEVEL_CONNECT in api_pipe_bind_req().Günther Deschner1-0/+3
Guenther
2011-03-08s3-rpc_server: Free unused memory.Andreas Schneider1-0/+2
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Add server support for NCALRPC system user pipe.Andreas Schneider1-0/+22
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-01s3-rpc_server Handle session key as a constant bufferAndrew Bartlett1-28/+4
This way, we don't have to check for memory allocation failures. Andrew Bartlett
2011-02-22s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett1-16/+16
These variables, of type struct auth_serversupplied_info were poorly named when added into 2001, and in good consistant practice, this has extended all over the codebase in the years since. The structure is also not ideal for it's current purpose. Originally intended to convey the results of the authentication modules, it really describes all the essential attributes of a session. This rename will reduce the volume of a future patch to replaced these with a struct auth_session_info, with auth_serversupplied_info confined to the lower levels of the auth subsystem, and then eliminated. (The new structure will be the output of create_local_token(), and the change in struct definition will ensure that this is always run, populating local groups and privileges). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-02-10s3-auth Rename cryptic 'ptok' to security_tokenAndrew Bartlett1-2/+2
This will allow the auth_serversupplied_info struct to be migrated to auth_session_info easier. Adnrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-23s3-dcerps: check auth_typeSimo Sorce1-0/+15
make sure the auth type used throught the auth operation is consistent. Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcerpc: remove auth_data_free_funcSimo Sorce1-11/+2
Everything is using a talloc pointer now, no need to have an accessor function to free data anymore. Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcerpc: make auth context opaqueSimo Sorce1-53/+57
This way we always double check in advance that the context is of the right type with talloc_get_type_abort instead of potentially accessing random memory by addressing the wrong structure in the union. Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23srv_pipe: reorganize code so that related functions are close to each otherSimo Sorce1-253/+252
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcerpc: finally remove the legaqcy spnego_type variable from pipe_auth_dataSimo Sorce1-4/+2
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcerpc: use new spnego server codeSimo Sorce1-200/+122
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcesrv: use gssapi helper in srv_pipe.cSimo Sorce1-223/+46
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcesrv: use ntlmssp helper in srv_pipe.cSimo Sorce1-204/+173
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23gssapi: remove unused function argumentSimo Sorce1-4/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23gssapi: avoid explicit dependency on dcerpc specific structuresSimo Sorce1-2/+4
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-23s3-dcerpc: move crypto stuff in /librpc/cryptoSimo Sorce1-1/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30s3-dcerpc: Implement DCERPC_AUTH_TYPE_KRB5 server sideSimo Sorce1-29/+364
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-26s3-dcerpc: only include rpc_dce.h where needed.Günther Deschner1-0/+1
Guenther
2010-08-17s3-dcerpc: Remove unused functionSimo Sorce1-18/+0
2010-08-17s3-dcerpc: make a few local functions as staticSimo Sorce1-4/+7
2010-08-08s3:rpc_server: fix valgrind warningStefan Metzmacher1-0/+1
metze
2010-08-03s3-dcerpc: fix some uninitialized variables build warnings.Günther Deschner1-1/+1
Guenther
2010-07-30s3-dcerpc: Use dcerpc_guess_sizes in the server code too.Simo Sorce1-95/+38
2010-07-30s3-dcerpc: rationalize packet creation in the server codeSimo Sorce1-86/+80
Move all related functions into create_next_packet, but make it transport neutral (not pass in pipse_struct)
2010-07-28s3-dcerpc: Use dcerpc_AuthType in pipe_auth_dataSimo Sorce1-22/+25
2010-07-28s3-dcerpc: Set flags directly instead of calling unimplemented functions.Simo Sorce1-4/+19
2010-07-28s3-dcerpc: Make dcerpc_check_auth() common codeSimo Sorce1-160/+0
2010-07-28s3-dcerpc: Add the same paranoia checks we have in the client codeSimo Sorce1-0/+12