The usertab option may use LDAP but the connection to the server was open
before parsing the access and useragent logs. It was possible that the
connection would time out before the first request was sent.
An attempt to fix this problem is to open the connection to the LDAP server
after parsing the log files.
struct userinfostruct *uinfo;
longline line;
+ init_usertab(UserTabFile);
+
ipantes[0]='\0';
nameantes[0]='\0';
}
#endif
- init_usertab(UserTabFile);
-
read_start_time=time(NULL);
LogStatus=ReadLogFile(&ReadFilter);
read_end_time=time(NULL);
debugaz(__FILE__,__LINE__,_("outdirname=%s\n"),outdirname);
}
- if (email[0] == '\0') {
- if (!FileList_IsEmpty(UserAgentLog))
- UserAgent_Readlog();
- UserAgent();
- }
+ if (email[0] == '\0' && !FileList_IsEmpty(UserAgentLog))
+ UserAgent_Readlog();
+
+ init_usertab(UserTabFile);
+ UserAgent();
snprintf(wdirname,sizeof(wdirname),"%s/sarg-general",outdirname);
if((fp_gen=MY_FOPEN(wdirname,"w"))==NULL){