summaryrefslogtreecommitdiff
path: root/source3/rpc_server/rpc_server.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-21s3-rpc_server: Remove unused endpoint information.Andreas Schneider1-18/+1
2011-07-21s3-rpc_server: Duplicate the pipe name.Andreas Schneider1-1/+8
2011-07-21s3-rpc_server: Free the np dir.Andreas Schneider1-0/+1
2011-07-21s3-rpc_server: Fix messaging context in the pipes struct.Andreas Schneider1-1/+4
2011-07-21s3-rpc_server: Add my copyright.Andreas Schneider1-0/+1
2011-07-20s3-rpc_server remove per-element copies of auth_session_infoAndrew Bartlett1-26/+2
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-20s3-auth Use the common auth_session_infoAndrew Bartlett1-2/+2
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-43/+28
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-rpc_server read and write the unix_token and unix_info across named_pipe_authAndrew Bartlett1-27/+40
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>
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-20Add my copyrightAndrew Bartlett1-0/+1
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-18s3-rpc_server: Fixed segfaults in rpc daemons.Andreas Schneider1-1/+5
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Jul 18 14:01:02 CEST 2011 on sn-devel-104
2011-07-14s3-rpc_server: Pass event and messaging context to accept function.Andreas Schneider1-5/+14
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 14 17:22:16 CEST 2011 on sn-devel-104
2011-07-04s3-rpc_server: Remove client_id and server_id from pipes struct.Andreas Schneider1-43/+0
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-04s3-rpc_server: Migrate rpc function to tsocket_address.Andreas Schneider1-1/+0
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-04s3-rpc_server: Add local and remote address to pipes struct.Andreas Schneider1-30/+43
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-06-01s3-rpc_server: Remove syntax from pipes_struct.Andreas Schneider1-1/+0
2011-06-01s3-rpc_server: Remove guessing of the syntax id.Andreas Schneider1-36/+4
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-05-17s3:rpc_server: create lp_ncalrpc_dir() with 0755 before lp_ncalrpc_dir()/np ↵Stefan Metzmacher1-0/+11
with 0700 metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 13:01:14 CEST 2011 on sn-devel-104
2011-05-17Revert "s3-rpc_server: Force ncalrpc dir to be mode 755."Stefan Metzmacher1-1/+13
This reverts commit a032c9c8fe8aff455407485169b9445860f89606.
2011-05-16s3-rpc_server: Force ncalrpc dir to be mode 755.Andreas Schneider1-13/+1
This completes aae9353ecf56323b63da66aa84d8a0a4f219d94d. directory_create_or_exist() is not needed cause create_pipe_sock() takes care of setting up the directory correctly. Andrew please check! Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon May 16 17:54:20 CEST 2011 on sn-devel-104
2011-05-08ncalrpc: Force ncalrpc dir to be mode 755 in all usersAndrew Bartlett1-2/+2
This allows this directory to be shared between Samba3 and Samba4 in a Franky-style setup easily. Andrew Bartlett
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: include ntdomain.h before including generated srv_ headers.Günther Deschner1-1/+1
Guenther
2011-05-02s3-proto: move more rpc_server prototypes out of proto.hGünther Deschner1-0/+1
Guenther
2011-04-29s3-proto: move more headers to rpc_server/rpc_ncacn_np.h where they origin from.Günther Deschner1-0/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 22:05:07 CEST 2011 on sn-devel-104
2011-04-05auth: Move auth_session_info into IDLAndrew Bartlett1-7/+11
This changes auth_session_info_transport to just be a wrapper, rather than a copy that has to be kept in sync. As auth_session_info was already wrapped in python, this required changes to the existing pyauth wrapper and it's users. Andrew Bartlett
2011-04-05s3-auth Rename user_session_key -> session_key to match auth_session_infoAndrew Bartlett1-1/+1
2011-04-05s3-auth use create_local_token() to transform server_info -> session_infoAndrew Bartlett1-6/+4
Before a auth_serversupplied_info struct can be used for authorization, the local groups and privileges must be calculated. create_local_token() now copies the server_info, and then sets the calulated token and unix groups. Soon, it will also transform the result into an expanded struct auth_session_info. Until then, the variable name (server_info vs session_info provides a clue to the developer about what information has been entered in the structure). By moving the calls to create_local_token within the codebase, we remove duplication, and ensure that the session key (where modified) is consistently copied into the new structure. Andrew Bartlett
2011-03-31s3: Fix a typoVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 31 12:50:53 CEST 2011 on sn-devel-104
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-24s3-rpc_server: remove two uneeded include registry/reg_parse_prs.hGünther Deschner1-1/+0
Guenther
2011-03-23s3-rpc_server: Added disconnect callback function.Andreas Schneider1-5/+21
2011-03-23s3-rpc_server: Rename system_user to ncalrpc_as_system.Andreas Schneider1-2/+2
2011-03-09s3-rpc_server: Change irritating debug message.Andreas Schneider1-7/+7
2011-03-08s3-rpc_server: Fixed the accept() for ncalrpc_listener.Andreas Schneider1-8/+4
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Fixed the accept() for tcpip_listener.Andreas Schneider1-9/+5
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Fixed the accept() for named_pipe_listener.Andreas Schneider1-7/+6
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Add server support for NCALRPC system user pipe.Andreas Schneider1-1/+17
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Improved the dcerpc_ncacn_accept switch.Andreas Schneider1-29/+38
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Remove unneeded ncacn wrappers.Andreas Schneider1-85/+12
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Fixed ncalrpc connection accept.Andreas Schneider1-1/+3
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Introduce transport in pipe_struct.Andreas Schneider1-1/+4
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Added prototype to setup a ncalrpc socket.Andreas Schneider1-1/+0
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-epmap: add ncalrpc listener codeSimo Sorce1-0/+126
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08sr-epmap: Minor cleanups and fixesSimo Sorce1-33/+30
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Added server address to pipes struct.Andreas Schneider1-7/+34
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08s3-rpc_server: Set client and server connection info.Andreas Schneider1-1/+49
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-22s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett1-7/+7
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>