summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-05-27 12:06:24 +0200
committerAndreas Schneider <asn@samba.org>2010-07-05 15:59:05 +0200
commit9fa72399073731aba54dfe70c35677b3c2960589 (patch)
treed7cb5898f5e42aaa9cfc1eb27fbaca71807d9120
parent30d25210a97403c083f7f8babe2eaa4d4cdfc1ad (diff)
downloadsamba-9fa72399073731aba54dfe70c35677b3c2960589.tar.gz
samba-9fa72399073731aba54dfe70c35677b3c2960589.tar.bz2
samba-9fa72399073731aba54dfe70c35677b3c2960589.zip
s3-winbind: Initialize the server_info on winbindd start.
-rw-r--r--source3/Makefile.in1
-rw-r--r--source3/winbindd/winbindd.c5
-rw-r--r--source3/wscript_build1
3 files changed, 7 insertions, 0 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index e8131975c3..fa99ac6d10 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -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 \
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index cdbf2d62ca..25d4e1d3d4 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -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()) {
diff --git a/source3/wscript_build b/source3/wscript_build
index b8d32d37b0..12022b9e00 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -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