s3-winbind: Initialize the server_info on winbindd start.
authorAndreas Schneider <asn@samba.org>
Thu, 27 May 2010 10:06:24 +0000 (12:06 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 5 Jul 2010 13:59:05 +0000 (15:59 +0200)
source3/Makefile.in
source3/winbindd/winbindd.c
source3/wscript_build

index e8131975c35b1818e6704ad3a514810454dfad84..fa99ac6d10a391252fab220aa14b8f72bc79f7ce 100644 (file)
@@ -1255,6 +1255,7 @@ WINBINDD_OBJ1 = \
                winbindd/winbindd_pam_chauthtok.o \
                winbindd/winbindd_pam_chng_pswd_auth_crap.o \
                winbindd/winbindd_pam_logoff.o \
+               auth/auth_util.o \
                auth/token_util.o \
                auth/check_samsec.o \
                auth/server_info.o \
index cdbf2d62ca6f1efc9a87a7b4d7158f7532fc6495..25d4e1d3d4ad450c08400c12ef25fa92919bee44 100644 (file)
@@ -1289,6 +1289,11 @@ int main(int argc, char **argv, char **envp)
 
        winbindd_register_handlers();
 
+       if (!init_system_info()) {
+               DEBUG(0,("ERROR: failed to setup system user info.\n"));
+               exit(1);
+       }
+
        /* setup listen sockets */
 
        if (!winbindd_setup_listeners()) {
index b8d32d37b01f748804ea8bc975dfb110fa033507..12022b9e009d26cfd50610f9de4edc125af17c3c 100644 (file)
@@ -640,6 +640,7 @@ WINBINDD_SRC1 = '''winbindd/winbindd.c
                    winbindd/winbindd_pam_chauthtok.c
                    winbindd/winbindd_pam_auth_crap.c
                    winbindd/winbindd_pam_chng_pswd_auth_crap.c
+                   auth/auth_util.c
                    auth/token_util.c
                    auth/check_samsec.c
                    auth/server_info.c