Put in the new modules system. It's now used by passdb and rpc. I will
[bbaumbach/samba-autobuild/.git] / source3 / smbd / server.c
index aff402df6686b5525c28c04ee327eca7458bfd32..96d936d3a8a9de86cffbcb7a8e5bcb91a930b2b2 100644 (file)
@@ -411,9 +411,6 @@ static BOOL open_sockets_smbd(BOOL is_daemon, BOOL interactive, const char *smb_
                                        return False;
                                }
 
-                               /* Load DSO's */
-                               init_modules();
-
                                return True; 
                        }
                        /* The parent doesn't need this socket */
@@ -866,6 +863,10 @@ static BOOL init_structs(void )
        if(!initialize_password_db(False))
                exit(1);
 
+       static_init_rpc;
+
+       init_modules();
+
        uni_group_cache_init(); /* Non-critical */
        
        /* possibly reload the services file. */