r25598: Add missing become_root/unbecome_root around calls of add_aliases.
[samba.git] / source / rpc_server / srv_epmapper_nt.c
index e82484af4af3034ee5f80a2964aa79d428a0b4e1..405769072b8c019bac81b0ea4964b11a3d4f7eeb 100644 (file)
@@ -1,70 +1,70 @@
-
 /* 
-   Unix SMB/CIFS implementation.
-   Samba end point mapper utility and mapping functions
-   Copyright (C) Jim McDonough (jmcd@us.ibm.com) 2003
-   
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-   
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-   
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
+ *  Unix SMB/CIFS implementation.
+ *  RPC Pipe client / server routines for the endpoint mapper
+ *  Copyright (C) Jelmer Vernooij      2007.
+ *  
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *  
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *  
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+/* This is the implementation of the dfs pipe. */
 
 #include "includes.h"
 
-/*******************************************************************/
-/*  _epm_map - fill out mapping on input and output structs */
-/*******************************************************************/
-void _epm_map(pipes_struct *ps, const EPM_Q_MAP *q_u, EPM_R_MAP *r_u)
+uint32 _epm_MapAuth(pipes_struct *p, struct epm_MapAuth *r) 
+{
+       /* FIXME */
+       return 0;
+}
+
+uint32 _epm_MgmtDelete(pipes_struct *p, struct epm_MgmtDelete *r)
 {
-       int i;
-       uint8 target_address[] = { 9, 53, 95, 27 };
-       EPM_FLOOR *floors = talloc(ps->mem_ctx, sizeof(EPM_FLOOR) *
-                                  q_u->tower->num_floors);
-       EPM_TOWER *towers = talloc(ps->mem_ctx, 
-                                  sizeof(EPM_TOWER) * MAX_TOWERS);
-       EPM_TOWER_ARRAY array;
+       /* FIXME */
+       return 0;
+}
+
+uint32 _epm_InqObject(pipes_struct *p, struct epm_InqObject *r)
+{
+       /* FIXME */
+       return 0;
+}
 
-       if (!floors || !towers) {
-               DEBUG(0, ("_epm_map: talloc failed!\n"));
-               return;
-       }
+uint32 _epm_LookupHandleFree(pipes_struct *p, struct epm_LookupHandleFree *r)
+{
+       /* FIXME */
+       return 0;
+}
 
-       for (i = 0; i < q_u->tower->num_floors; i++) {
-               switch (q_u->tower->floors[i].lhs.protocol) {
-                case EPM_FLOOR_UUID:
-                       init_epm_floor_uuid(&floors[i],
-                                           q_u->tower->floors[i].
-                                           lhs.uuid.uuid,
-                                           q_u->tower->floors[i].
-                                           lhs.uuid.version);
-                       break;
-               case EPM_FLOOR_RPC:
-                       init_epm_floor_rpc(&floors[i]);
-                       break;
-               case EPM_FLOOR_TCP:
-                       /* for now map all requests to port 135 */
-                       init_epm_floor_tcp(&floors[i], 135);
-                       break;
-               case EPM_FLOOR_IP:
-                       init_epm_floor_ip(&floors[i], target_address);
-                       break;
-               }
-       }
+uint32 _epm_Map(pipes_struct *p, struct epm_Map *r)
+{
+       /* FIXME */
+       return 0;
+}
 
-       init_epm_tower(ps->mem_ctx, &towers[0], floors, 5);
-       init_epm_tower_array(ps->mem_ctx, &array, towers, 1);
-       init_epm_r_map(ps->mem_ctx, r_u, &q_u->term_handle, &array, 1, 0);
+uint32 _epm_Lookup(pipes_struct *p, struct epm_Lookup *r)
+{
+       /* FIXME */
+       return 0;
+}
 
-       return;
+uint32 _epm_Delete(pipes_struct *p, struct epm_Delete *r)
+{
+       /* FIXME */
+       return 0;
+}
 
+uint32 _epm_Insert(pipes_struct *p, struct epm_Insert *r)
+{
+       /* FIXME */
+       return 0;
 }