Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon1.gif   number of entries in Login user list, posted by Janusz Szuba on Wed Jun 13 18:08:06 2018 
    icon2.gif   Re: number of entries in Login user list, posted by Andreas Luedeke on Thu Jun 14 12:37:22 2018 
       icon2.gif   Re: number of entries in Login user list, posted by Janusz Szuba on Thu Jun 14 13:07:32 2018 
          icon2.gif   Re: number of entries in Login user list, posted by Stefan Ritt on Thu Jun 14 13:17:33 2018 
Message ID: 68825     Entry time: Thu Jun 14 13:17:33 2018     In reply to: 68823
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Request  OS: Linux  ELOG Version: 3.1.3 
Subject: Re: number of entries in Login user list 

Well, many arrays based on MAX_N_LIST are created on the heap memory, and if you exceed that, elogd simply crashes. There are compile options to increase the stack and heap size, but that depends on the operating system and the compiler. The value of 100 has been proven to work everywhere. If you increase it, you're on your own.

Stefan

Janusz Szuba wrote:

Thanks, good point, I was not sure that in case of other lists which will be changed as well, there will not be any problems, like overflow, etc. 

Regarding admin list, now I remember, that was the limit to send email notification in case of registration requests. But actually it is not important right now.

best

Janusz

Andreas Luedeke wrote:

Hi Janusz,

You can change the following line in elogd.h and recompile:

#define MAX_N_LIST      100
That'll change the login user list limit. But it'll change other list length as well - which should not do harm unless you are very short of memory.

I don't see the Admin user list limit of 10 - aparently that is hard coded somewhere deep within (or I've just missed it).

Cheers, Andreas

Janusz Szuba wrote:

Hi, 

could it be possible to increase the limit of entries in Login user list from 100 to somewhat reasonably higher? Like twice or 3 times as much. Similar limit exist also on Admin user list, which is afair 10, could this also be increased?

best

Janusz

 

 

 

ELOG V3.1.5-3fb85fa6