s3-winbind: Fixed init order.
authorAndreas Schneider <asn@samba.org>
Fri, 15 Oct 2010 15:58:39 +0000 (17:58 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 18 Oct 2010 12:43:16 +0000 (12:43 +0000)
We need the system server info in the rpc services.

Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Mon Oct 18 12:43:16 UTC 2010 on sn-devel-104

source3/winbindd/winbindd.c

index d2344fd69628994efba9b1d08b13876ced255108..b8a9e16075a1a727a2a9001c0977abffb0e07044 100644 (file)
@@ -1298,14 +1298,14 @@ int main(int argc, char **argv, char **envp)
 
        winbindd_register_handlers();
 
-       rpc_lsarpc_init(NULL);
-       rpc_samr_init(NULL);
-
        if (!init_system_info()) {
                DEBUG(0,("ERROR: failed to setup system user info.\n"));
                exit(1);
        }
 
+       rpc_lsarpc_init(NULL);
+       rpc_samr_init(NULL);
+
        /* setup listen sockets */
 
        if (!winbindd_setup_listeners()) {