Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 60 of 238  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
Entry   Possible bug in elogd execute_shell, posted by Nigel Warr on Fri Feb 26 08:38:06 2016 

I was just playing around with gcc6's new feature for warning about misleading indentation (which can often hide real bugs) and I think it found one in elog-3.1.1-1 at src/elogd.c:22538. Here there is an if statement, which looks as though it should be inside a loop, but it isn't. The code is:

      for (i = 0; i < MAX_ATTACHMENTS; i++)
         generate_subdir_name(att_file[i], subdir, sizeof(subdir));
         if (att_file[i][0] && strlen(shell_cmd) + strlen(lbs->data_dir) + strl$
             < sizeof(shell_cmd) + 1)
{
            strcpy(p, "\"");
            strcat(p, lbs->data_dir);
            strlcat(str, subdir, sizeof(str));
            strlcpy(str, att_file[i], sizeof(str));
            str_escape(str, sizeof(str));
            strcat(p, str);
            strcat(p, "\" ");
            p += strlen(p);
         }

and the if statment is accessing the loop variable i but it is actually outside the loop. Presumably, there should be some more curly brackets here. gcc6 gave the warning:

src/elogd.c: In function ‘execute_shell’:
src/elogd.c:22538:10: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation]
          if (att_file[i][0] && strlen(shell_cmd) + strlen(lbs->data_dir) + strlen(subdir) + strlen(att_file[i])
          ^~
src/elogd.c:22536:7: note: ...this ‘for’ clause, but it is not
       for (i = 0; i < MAX_ATTACHMENTS; i++)
       ^~~

icon13.gif   Kerberos auth not available on 3.0 ?, posted by Maikolk Kein on Mon Jan 26 10:30:40 2015 

Hi all !!!

 

i have just updated and 2.9.2-1 elog instance, and i have problems with the kerberos configuration.

I was surprised to see on the logs, that the 3.0 daemon was refusing to start because the system

config has kerberos listed as an authentication method. I saw on the logs that the current daemon

didnt have kerberos support compiled in.

 

Ive seen that there is ldap support, but couldnt find anything about configuring this auth sytem, does

amnyone have any example i could check ?

 

Did i have to use a patched version ? or compile it on my own ?

 

 

Regards

    icon2.gif   Re: Kerberos auth not available on 3.0 ?, posted by Andreas Luedeke on Mon Jan 26 15:04:38 2015 
Hi Maikolk,
I have elogd 3.0 running with kerberos: I had no problems with that.
Maybe you forgot to change the Makefile before compiling?
Uncomment line 28 to:

# flag for Kerberos support, please turn on if you need Kerberos
USE_KRB5   = 1

and then "make clean" and "make install" (or "make update").

Regards, Andreas

Maikolk Kein wrote:
Hi all !!!
i have just updated and 2.9.2-1 elog instance, and i have problems with the kerberos configuration.
I was surprised to see on the logs, that the 3.0 daemon was refusing to start because the system
config has kerberos listed as an authentication method. I saw on the logs that the current daemon
didnt have kerberos support compiled in.
Ive seen that there is ldap support, but couldnt find anything about configuring this auth sytem, does
amnyone have any example i could check ?
Did i have to use a patched version ? or compile it on my own ?
Regards

 

       icon2.gif   Re: Kerberos auth not available on 3.0 ?, posted by Maikolk Kein on Mon Jan 26 15:06:49 2015 


No no, i used the rpm form the website... I was thinking on having the bianries compiled, im downloading the server install dvd

to replicate the environment and have the same functionality.

 

Thanks for the answer ;-)

 

Regards

 

Andreas Luedeke wrote:
Hi Maikolk,
I have elogd 3.0 running with kerberos: I had no problems with that.
Maybe you forgot to change the Makefile before compiling?
Uncomment line 28 to:

# flag for Kerberos support, please turn on if you need Kerberos
USE_KRB5   = 1

and then "make clean" and "make install" (or "make update").

Regards, Andreas

Maikolk Kein wrote:
Hi all !!!
i have just updated and 2.9.2-1 elog instance, and i have problems with the kerberos configuration.
I was surprised to see on the logs, that the 3.0 daemon was refusing to start because the system
config has kerberos listed as an authentication method. I saw on the logs that the current daemon
didnt have kerberos support compiled in.
Ive seen that there is ldap support, but couldnt find anything about configuring this auth sytem, does
amnyone have any example i could check ?
Did i have to use a patched version ? or compile it on my own ?
Regards

 

 

          icon2.gif   Re: Kerberos auth not available on 3.0 ?, posted by Stefan Ritt on Tue Jan 27 17:16:46 2015 

Kerberos support is not compiled into the binary RPM. You have to comile from sources to get that. The reason is that there are different Kerberos libraries around, and different people need different ones.

/Stefan

 

             icon2.gif   Re: Kerberos auth not available on 3.0 ?, posted by Jimmy Bria on Tue Feb 23 22:32:30 2016 

Hi Stefan - Do you know is Kerberos is available (compiled) on the Windows installer?

-Jimmy

Stefan Ritt wrote:

Kerberos support is not compiled into the binary RPM. You have to comile from sources to get that. The reason is that there are different Kerberos libraries around, and different people need different ones.

/Stefan

 

 

                icon2.gif   Re: Kerberos auth not available on 3.0 ?, posted by Stefan Ritt on Wed Feb 24 09:48:09 2016 

Hi Jimmy, no Kerberos is not compiled into the Windows installer. You are the first one asking for that under Windows. All other Kerberos users use Linux so far. You have to compile the Windows version yourelf. This is because there are several versions of Kerberos around and people need differnt libraries. Sorry for that.

/Stefan

Jimmy Bria wrote:

Hi Stefan - Do you know is Kerberos is available (compiled) on the Windows installer?

-Jimmy

Stefan Ritt wrote:

Kerberos support is not compiled into the binary RPM. You have to comile from sources to get that. The reason is that there are different Kerberos libraries around, and different people need different ones.

/Stefan

 

 

 

icon5.gif   Find empty attributes, posted by Arno Teunisse on Tue Feb 16 23:19:31 2016 

Want to use the find function from ELOG to search for empty fields ( Attributes that are not defined ) 
How to do that ? 
Could not find it in the Forum.
 

Greetings Arno Teunisse
 

 

    icon2.gif   Re: Find empty attributes, posted by Stefan Ritt on Wed Feb 17 08:18:05 2016 

Unfortunately not possible.

Stefan

Arno Teunisse wrote:

Want to use the find function from ELOG to search for empty fields ( Attributes that are not defined ) 
How to do that ? 
Could not find it in the Forum.
 

Greetings Arno Teunisse
 

 

 

    icon2.gif   Re: Find empty attributes, posted by Andreas Luedeke on Wed Feb 17 18:08:53 2016 
It is possible for normal string attributes: the regular expression pattern "^$" can be used to search for an empty string.
E.g. in this Forum "ELOG Version" is a required attribute, and should never be empty. But if you search for:
you'll find a couple of entries from a time where it apparently wasn't a required attribute.
Cheers
Andreas
Arno Teunisse wrote:

Want to use the find function from ELOG to search for empty fields ( Attributes that are not defined ) 
How to do that ? 
Could not find it in the Forum.
 

Greetings Arno Teunisse
 

 

 

       icon2.gif   Re: Find empty attributes, posted by Stefan Ritt on Wed Feb 17 18:33:18 2016 

Cool, I didn't know that trick myself, thanks for sharing.

Andreas Luedeke wrote:
It is possible for normal string attributes: the regular expression pattern "^$" can be used to search for an empty string.
E.g. in this Forum "ELOG Version" is a required attribute, and should never be empty. But if you search for:
you'll find a couple of entries from a time where it apparently wasn't a required attribute.
Cheers
Andreas
Arno Teunisse wrote:

Want to use the find function from ELOG to search for empty fields ( Attributes that are not defined ) 
How to do that ? 
Could not find it in the Forum.
 

Greetings Arno Teunisse
 

 

 

 

icon1.gif   size of atributes in summary mode, posted by Diego on Wed Feb 10 22:55:42 2016 elog_pic.PNG

Good night,

I would be grateful if someone could indicate me, how could I increase the size of the block where the text of the atribute are in the summary mode.I would like, for example, increase the size of the "subject" you can see on the picture.

Thank you so much!!!

 

 

 

    icon2.gif   Re: size of atributes in summary mode, posted by Diego on Wed Feb 10 23:44:38 2016 

I answer myself... Modify the value of width=100% in the class .listtitle2 in the .css file.

Diego wrote:

Good night,

I would be grateful if someone could indicate me, how could I increase the size of the block where the text of the atribute are in the summary mode.I would like, for example, increase the size of the "subject" you can see on the picture.

Thank you so much!!!

 

 

 

 

icon5.gif   New entry cannot be written to directory "/usr/local/elog/logbooks/demo/", posted by Tapasi Ghosh on Mon Feb 8 13:52:33 2016 image.png

Dear All,

I could not submit a new enetry to my logbook whenever restarting my laptop.  I am a new user to elog.

Attached is the screenshot of the error message and also there is "nobody" while I grep elog.

----------------------

>>

Tapasis-MacBook-Pro-2:elog-3.1.0 tapasi$  ps aux | grep elog

tapasi            560   0.4  0.0  2432772    644 s002  S+    9:50AM   0:00.01 grep elog

nobody             76   0.0  0.4  2481308  18440   ??  Ss    9:48AM   0:00.08 /usr/local/sbin/elogd -c /usr/local/elog/elogd.cfg

--------------------------

Any suggesstion will be very much appreciated.

Thanks in advance,

Tapasi

 

 

    icon2.gif   Re: New entry cannot be written to directory "/usr/local/elog/logbooks/demo/", posted by Andreas Luedeke on Mon Feb 8 15:07:05 2016 

You should check if the directory /usr/local/elog/logbooks/demo belongs to the right user and has the right write permissions.

Since the elogd process belongs to the user "nobody", the directory should best belong to "nobody" as well (or - not recommended - allows write access for "others")

Cheers, Andreas

Tapasi Ghosh wrote:

Dear All,

I could not submit a new enetry to my logbook whenever restarting my laptop.  I am a new user to elog.

Attached is the screenshot of the error message and also there is "nobody" while I grep elog.

----------------------

>>

Tapasis-MacBook-Pro-2:elog-3.1.0 tapasi$  ps aux | grep elog

tapasi            560   0.4  0.0  2432772    644 s002  S+    9:50AM   0:00.01 grep elog

nobody             76   0.0  0.4  2481308  18440   ??  Ss    9:48AM   0:00.08 /usr/local/sbin/elogd -c /usr/local/elog/elogd.cfg

--------------------------

Any suggesstion will be very much appreciated.

Thanks in advance,

Tapasi

 

 

 

       icon2.gif   Re: New entry cannot be written to directory "/usr/local/elog/logbooks/demo/", posted by Tapasi Ghosh on Mon Feb 8 16:19:11 2016 

Thanks for your reply.

I am the user and  it also has the write access 

cd /usr/local/elog/

ls -ltr

drwxrwxrwx  6 tapasi  admin  204 Jan  7 18:26 demo

Andreas Luedeke wrote:

You should check if the directory /usr/local/elog/logbooks/demo belongs to the right user and has the right write permissions.

Since the elogd process belongs to the user "nobody", the directory should best belong to "nobody" as well (or - not recommended - allows write access for "others")

Cheers, Andreas

Tapasi Ghosh wrote:

Dear All,

I could not submit a new enetry to my logbook whenever restarting my laptop.  I am a new user to elog.

Attached is the screenshot of the error message and also there is "nobody" while I grep elog.

----------------------

>>

Tapasis-MacBook-Pro-2:elog-3.1.0 tapasi$  ps aux | grep elog

tapasi            560   0.4  0.0  2432772    644 s002  S+    9:50AM   0:00.01 grep elog

nobody             76   0.0  0.4  2481308  18440   ??  Ss    9:48AM   0:00.08 /usr/local/sbin/elogd -c /usr/local/elog/elogd.cfg

--------------------------

Any suggesstion will be very much appreciated.

Thanks in advance,

Tapasi

 

 

 

 

          icon2.gif   Re: New entry cannot be written to directory "/usr/local/elog/logbooks/demo/", posted by Andreas Luedeke on Mon Feb 8 16:27:45 2016 

The process elogd runs as the user "nobody". This user obviously cannot write to /usr/local/elog/logbooks/demo.

But apparently you've created the wrong directory anyway: you've listed /usr/local/elog/demo, but ELOG looks for /usr/local/elog/logbooks/demo.

Cheers, Andreas

Tapasi Ghosh wrote:

Thanks for your reply.

I am the user and  it also has the write access 

cd /usr/local/elog/

ls -ltr

drwxrwxrwx  6 tapasi  admin  204 Jan  7 18:26 demo

Andreas Luedeke wrote:

You should check if the directory /usr/local/elog/logbooks/demo belongs to the right user and has the right write permissions.

Since the elogd process belongs to the user "nobody", the directory should best belong to "nobody" as well (or - not recommended - allows write access for "others")

Cheers, Andreas

Tapasi Ghosh wrote:

Dear All,

I could not submit a new enetry to my logbook whenever restarting my laptop.  I am a new user to elog.

Attached is the screenshot of the error message and also there is "nobody" while I grep elog.

----------------------

>>

Tapasis-MacBook-Pro-2:elog-3.1.0 tapasi$  ps aux | grep elog

tapasi            560   0.4  0.0  2432772    644 s002  S+    9:50AM   0:00.01 grep elog

nobody             76   0.0  0.4  2481308  18440   ??  Ss    9:48AM   0:00.08 /usr/local/sbin/elogd -c /usr/local/elog/elogd.cfg

--------------------------

Any suggesstion will be very much appreciated.

Thanks in advance,

Tapasi

 

 

 

 

 

             icon2.gif   Re: New entry cannot be written to directory "/usr/local/elog/logbooks/demo/", posted by Tapasi Ghosh on Mon Feb 8 17:40:27 2016 

Sorry, it was my mistake while copying  from terminal to the email .  There is no "demo" directory under /usr/local/lib.

Tapasis-MacBook-Pro:elog tapasi$ cd  /usr/local/elog/logbooks/demo

Tapasis-MacBook-Pro:demo tapasi$ ls -ltr

total 0

drwxr-xr-x   3 tapasi  admin   102 Sep 22 11:00 2001

drwxr-xr-x  55 503     admin  1870 Dec 17 13:21 2015

drwxr-xr-x   2 tapasi  admin    68 Jan  7 14:54 2016

 

So, how can I change the user from "nobody" to my name, so that elogd runs in my user name ?

Thanks

Andreas Luedeke wrote:

The process elogd runs as the user "nobody". This user obviously cannot write to /usr/local/elog/logbooks/demo.

But apparently you've created the wrong directory anyway: you've listed /usr/local/elog/demo, but ELOG looks for /usr/local/elog/logbooks/demo.

Cheers, Andreas

Tapasi Ghosh wrote:

Thanks for your reply.

I am the user and  it also has the write access 

cd /usr/local/elog/

ls -ltr

drwxrwxrwx  6 tapasi  admin  204 Jan  7 18:26 demo

Andreas Luedeke wrote:

You should check if the directory /usr/local/elog/logbooks/demo belongs to the right user and has the right write permissions.

Since the elogd process belongs to the user "nobody", the directory should best belong to "nobody" as well (or - not recommended - allows write access for "others")

Cheers, Andreas

Tapasi Ghosh wrote:

Dear All,

I could not submit a new enetry to my logbook whenever restarting my laptop.  I am a new user to elog.

Attached is the screenshot of the error message and also there is "nobody" while I grep elog.

----------------------

>>

Tapasis-MacBook-Pro-2:elog-3.1.0 tapasi$  ps aux | grep elog

tapasi            560   0.4  0.0  2432772    644 s002  S+    9:50AM   0:00.01 grep elog

nobody             76   0.0  0.4  2481308  18440   ??  Ss    9:48AM   0:00.08 /usr/local/sbin/elogd -c /usr/local/elog/elogd.cfg

--------------------------

Any suggesstion will be very much appreciated.

Thanks in advance,

Tapasi

 

 

 

 

 

 

                icon2.gif   Re: New entry cannot be written to directory "/usr/local/elog/logbooks/demo/", posted by Stefan Ritt on Mon Feb 8 19:29:47 2016 

Use

usr = <user anme>

in elogd.cfg as written in the documentation.

Stefan

Tapasi Ghosh wrote:

So, how can I change the user from "nobody" to my name, so that elogd runs in my user name ?

icon6.gif   Applying cell style or some sort of subst in list view only, posted by Francois Cloutier on Thu Feb 4 14:21:19 2016 
Good day,

I have an attribute that is 25 chars. it can be empty until someone edit it to fill the information.
The default view for that logbook is List. 

Is it possible to display that attribute in list view but not the entire 25 chars ?
What I mean is that if the field is empty, show it as empty but if it has some information, show something like "X" in List view.

I tried playing with Styles and Cell Styles but I couldn't figure it out...
Cell Style seams to require specific values "" to apply the style properties. I can't figure how to apply cell style "if field is not empty" :)

Thanks for your help :)
    icon2.gif   Re: Applying cell style or some sort of subst in list view only, posted by Stefan Ritt on Thu Feb 4 14:47:50 2016 
> Good day,
> 
> I have an attribute that is 25 chars. it can be empty until someone edit it to fill the information.
> The default view for that logbook is List. 
> 
> Is it possible to display that attribute in list view but not the entire 25 chars ?
> What I mean is that if the field is empty, show it as empty but if it has some information, show something like "X" in List view.
> 
> I tried playing with Styles and Cell Styles but I couldn't figure it out...
> Cell Style seams to require specific values "" to apply the style properties. I can't figure how to apply cell style "if field is not empty" :)
> 
> Thanks for your help :)

Unfortunately something like this is not implemented in elog.

Stefan
    icon2.gif   Re: Applying cell style or some sort of subst in list view only, posted by Andreas Luedeke on Thu Feb 4 15:07:07 2016 
> Good day,
> 
> I have an attribute that is 25 chars. it can be empty until someone edit it to fill the information.
> The default view for that logbook is List. 
> 
> Is it possible to display that attribute in list view but not the entire 25 chars ?
> What I mean is that if the field is empty, show it as empty but if it has some information, show something like "X" in List view.
> 
> I tried playing with Styles and Cell Styles but I couldn't figure it out...
> Cell Style seams to require specific values "" to apply the style properties. I can't figure how to apply cell style "if field is not empty" :)
> 
> Thanks for your help :)

If your server would run on Linux, then the configuration below would just do what you've asked for:

Attributes = X
List change X = $shell(if [ -z "$X" ] ;then echo "";else echo "X";fi)

But since shell scripting is operating system dependent, you'll need to figure out yourself how to do it in Windows.

Cheers
Andreas
icon5.gif   Can I host elog in the web under windows platform without Apache Web Server?, posted by Dawang on Fri Jan 15 00:20:42 2016 

Hi All,

Can I host elog in the web (internet) under windows platform (elogd.exe only) without Apache Web Server? If possible, what syntax should I add in the configuration file? Appreciate feedback. Thanks.

Cheers,

Raymund

    icon2.gif   Re: Can I host elog in the web under windows platform without Apache Web Server?, posted by Stefan Ritt on Fri Jan 15 08:04:09 2016 

When you install elog under windows, an example config file gets installed which lets you do already what you want. Then you can extend the config file according to the documentation https://midas.psi.ch/elog/config.html

Dawang wrote:

Hi All,

Can I host elog in the web (internet) under windows platform (elogd.exe only) without Apache Web Server? If possible, what syntax should I add in the configuration file? Appreciate feedback. Thanks.

Cheers,

Raymund

 

    icon5.gif   Re: Can I host elog in the web under windows platform without Apache Web Server?, posted by Andreas Luedeke on Fri Jan 15 15:31:54 2016 
I admit that I'm not sure if I understood the question. It is quite some work to do the opposite, to run elog behind an Apache Web Server.
But if you just install ELOG out of the box it will always run without an Apache Web Server. You don't need to add anything in the config file for that.
Dawang wrote:

Hi All,

Can I host elog in the web (internet) under windows platform (elogd.exe only) without Apache Web Server? If possible, what syntax should I add in the configuration file? Appreciate feedback. Thanks.

Cheers,

Raymund

 

       icon2.gif   Re: Can I host elog in the web under windows platform without Apache Web Server?, posted by Dawang on Fri Jan 29 05:38:03 2016 

Thanks Andreas and Stefan,

Since I'm not good in setting up webserver, do you know a web hosting company that can I use to integrate elog so that i can access my elog publicly same as you are using here? Thanks.

BR,

Raymund

 

Andreas Luedeke wrote:
I admit that I'm not sure if I understood the question. It is quite some work to do the opposite, to run elog behind an Apache Web Server.
But if you just install ELOG out of the box it will always run without an Apache Web Server. You don't need to add anything in the config file for that.
Dawang wrote:

Hi All,

Can I host elog in the web (internet) under windows platform (elogd.exe only) without Apache Web Server? If possible, what syntax should I add in the configuration file? Appreciate feedback. Thanks.

Cheers,

Raymund

 

 

          icon2.gif   Re: Can I host elog in the web under windows platform without Apache Web Server?, posted by Andreas Luedeke on Fri Jan 29 06:35:05 2016 
Can't help you with that, and I think it is the wrong forum to ask that question.
You'll need a web service provider that will allow you to run your own services.
And then it'll either require some skills in host administration or a full host service by the provider.
Cheers, Andreas
Dawang wrote:

Thanks Andreas and Stefan,

Since I'm not good in setting up webserver, do you know a web hosting company that can I use to integrate elog so that i can access my elog publicly same as you are using here? Thanks.

BR,

Raymund

 

Andreas Luedeke wrote:
I admit that I'm not sure if I understood the question. It is quite some work to do the opposite, to run elog behind an Apache Web Server.
But if you just install ELOG out of the box it will always run without an Apache Web Server. You don't need to add anything in the config file for that.
Dawang wrote:

Hi All,

Can I host elog in the web (internet) under windows platform (elogd.exe only) without Apache Web Server? If possible, what syntax should I add in the configuration file? Appreciate feedback. Thanks.

Cheers,

Raymund

 

 

 

icon4.gif   attachments created using "Image" button can not be clicked-on and do not appear in the attachment table., posted by Devin Bougie on Wed Jan 27 21:33:53 2016 

This has been confirmed usign the Demo forum on this server.  For example, please see https://midas.psi.ch/elogs/Linux+Demo/8

When an image is attached using the "Image" button in the CKEditor, that image does not appear in the attachment table for that entry.  In addition, the image can not be clicked on to view the full image.

This was not the case in v2.9.2, at least.

Is there some configuration option I could toggle to change this behaviour?  By default, we would like any attachment (whether it's made using drag and drop, the Image button, or the "Choose File" button) to appear in the attachment table *and* be clickable to view the full image.

Thanks,

Devin

    icon2.gif   Re: attachments created using "Image" button can not be clicked-on and do not appear in the attachment table., posted by Devin Bougie on Thu Jan 28 20:02:06 2016 

As there appears to be some inconsistencies, I thought I'd document the behaviour of each of the attachment options.

------

1. Click on the "Image" button in the CKEditor, click on "Choose File" and browse to the file, click on "Send it to the Server", and click "OK".

  • The image appears inline at the configured "Thumbnail size", but it is not clickable and it does not appear in the attachment table when viewing the entry.

2. Drag and drop an image into the body of the message.

  • The image appears inline at the configured "Thumbnail size" and is clickable.  As with "1," however, it does not appear in the attachment table when viewing the entry.

3. Drag and drop an image into the "Drop attachments here ..." section.

  • The image appears in the attachment table at the configured Thumbnail Size, and is clickable.

4. From the attachment table, click on "Choose File" and then click on "Upload."

  • The image appears in the attachment table at the configured Thumbnail Size, and is clickable.

------

We need to make sure the images are always clickable so that you can always view the full-sized image.  Any suggestions for fixing this, short of reverting to v2.9.2, would be greatly appreciated.

Thanks again,

Devin

 

Devin Bougie wrote:

This has been confirmed usign the Demo forum on this server.  For example, please see https://midas.psi.ch/elogs/Linux+Demo/8

When an image is attached using the "Image" button in the CKEditor, that image does not appear in the attachment table for that entry.  In addition, the image can not be clicked on to view the full image.

This was not the case in v2.9.2, at least.

Is there some configuration option I could toggle to change this behaviour?  By default, we would like any attachment (whether it's made using drag and drop, the Image button, or the "Choose File" button) to appear in the attachment table *and* be clickable to view the full image.

Thanks,

Devin

 

ELOG V3.1.5-3fb85fa6