r4196: - added server side code for lsa_LookupPrivDisplayName
[samba.git] / source4 / smbd / rewrite.c
index 44db95cdad00f132ea68756056b3244c4e6f8da3..8e7ddc405e6b0bae482455a3d0c5f03fb296ad2b 100644 (file)
@@ -7,18 +7,9 @@
  This file will need to go away before the rewrite is complete
 */
 
-BOOL set_current_service(void *conn, BOOL x)
-{ return True; }
-
-void change_to_root_user(void)
-{}
-
 BOOL pcap_printername_ok(const char *service, const char *foo)
 { return True; }
 
-BOOL share_access_check(struct smbsrv_request *req, struct smbsrv_tcon *tcon, int snum, uint32_t desired_access)
-{ return True; }
-
 /*
  * initialize an smb process. Guaranteed to be called only once per
  * smbd instance (so it can assume it is starting from scratch, and
@@ -47,26 +38,7 @@ void init_subsystems(void)
                exit(1);
        }
 
-       /* Setup the PROCESS_MODEL subsystem */
-       if (!process_model_init())
-               exit(1);
-
-       /* Setup the SERVER_SERVICE subsystem */
-       if (!server_service_init())
-               exit(1);
-
-       /* Setup the AUTH subsystem */
-       if (!auth_init())
-               exit(1);
-
-       /* Setup the NTVFS subsystem */
-       if (!ntvfs_init())
-               exit(1);
-
-       /* Setup the DCERPC subsystem */
-       if (!subsystem_dcerpc_init())
-               exit(1);
-
+       smbd_init_subsystems;
 }
 
 /****************************************************************************
@@ -101,9 +73,6 @@ BOOL reload_services(struct smbsrv_connection *smb, BOOL test)
 
        load_interfaces();
 
-       /* this forces service parameters to be flushed */
-       set_current_service(NULL,True);
-
        return(ret);
 }