Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 468 of 808  Not logged in ELOG logo
ID Date Icon Authordown Author Email Category OS ELOG Version Subject
  69709   Tue Nov 7 22:07:24 2023 Reply Matteo Manninithanksmatteo.mannini@unifi.itQuestionLinux3.1.3Re: Restricting entries view by user

Dear Stefan,

thanks to the answer you gave to my colleague. 

Now, attempting to follow your suggestion... If we will create several logbooks, one for each user,

1) there is a way to automatically duplicate all the entries in anoter "global" elog without loosing them and keeping them updated between the global and the individual logbooks? 

2) alternatively how I could activate a search in all these user logbooks (and only in this set of logbooks without searching in the others logbook present in the same file conf)? shall I gnereate a separated elog instance only for this set of logbooks? how to let this search to all option available only to a reduced number of "superusers" that are not "administrators?

thanks

 

Matteo

Stefan Ritt wrote:

No, this is not possible with the current version of Elog, so indeed everybody needs their own logbook.

Stefan

Leonardo Tacconi wrote:

Good morning,

I would like to ask you whether it is feasible to establish a logbook that limits access to entries, enabling each user to view only their own.
Although creating a logbook per user is an apparent solution, it does not meet my requirements.

Thank you in advance.

Leonardo

 

 

  67260   Wed May 2 17:06:35 2012 Question Matt Newvillenewville@cars.uchicago.eduQuestionLinux2.9.2password protect a logbook with Apache redirect
Hi,

I'm trying to set up elogd, running on port 8080 behind an Apache server on port 80, using mod_proxy to redirect
to the elogd server, and the recommended

Redirect permanent /elogbook http://example.com/elogbook/
ProxyPass /elogbook/         http://example.com:8080/

This works well for non-password-protected logbooks, but for password protected (that I can access fine via port
8080), I keep getting shown the Login page, even with valid username / password.    

Poking around the code, it appears (probably not too surprisingly) that the issue lies in check_login().  
For example, 

   /* if invalid or no session ID, show login page */
  if (!skip_sid_check && !sid_check(sid, user_name)) {
      if (isparam("redir"))
         strlcpy(str, getparam("redir"), sizeof(str));
      else
         strlcpy(str, isparam("cmdline") ? getparam("cmdline") : _cmdline, sizeof(str));
      /* avoid recursive loops with ?cmd=Login */
      if (stristr(str, loc("Login")))
         str[0] = 0;
      /*  added write_logfile here...
          char mstr[250];
          sprintf(mstr, "show_login B %s isparam: %d, cmd: %d, skip_sid_check: %d, sid_check: %d",
                         user_name,  isparam("redir"), isparam("cmdline"), skip_sid_check, sid_check(sid,
user_name));
           write_logfile(lbs, mstr);

        */
      show_login_page(lbs, str, 0);
      return FALSE;
}

and the logfile shows that user_name is blank(!!) and redir, cmdline, skip_sid_check, and sid_check(sid,
user_name) all to be 0.   In fact, isparam("unm") and isparam("upwd") are also 0, which explains why user_name
is blank.   But the log file also shows

LOGIN user "username" (attempt)
LOGIN user "username" (success)

just prior to this!

I'd guess that the form POST methods aren't being forwarded correctly, but I haven't looked at it in any more
detail.   

Is there a way to make this (password protecting logbooks while also using a proxy to Apache) work?

Thanks!
  67263   Wed May 2 18:19:18 2012 Smile Matt Newvillenewville@cars.uchicago.eduQuestionLinux2.9.2Re: password protect a logbook with Apache redirect
> I don't remember the details, but originally had the same trouble. I think a "/" at the end of a url got me somewhere. 
> I have defined...
> 
> URL = http://somewhere.edu/elog
> 
> ...in the config file, and my redirect looks like this:
> 
> Redirect /elog http://somewhere.edu/elog/
> ProxyPass /elog/ http://somewhere.edu:8080/
> ProxyPassReverse /elog/ http://somewhere.edu:8080/


Yes, that did it:  Adding the URL to the config file was the key.

Thanks!
  1449   Wed Oct 12 23:59:13 2005 Question Matt Kimballmatthew.j.kimball@state.or.us Windows2.5.4Trying to remove "mailto:" from the email address
We are using ver 2.5.4. As users enter new requests into the system, they would like email notifications. I have added the $user_email into a "notifications" section that we created. The email address that gets entered is "mailto:user@domain.com". Is there a way to remove the "mailto:"? Attached is my config file.

Thanks
Matt
Attachment 1: elogconfig.txt
#### Open Problems

Theme = default
Comment = HIV Client Services Requests
Subdir = hivclien
Time format = %B %d, %Y 
Use Lock = 0
Reverse sort = 1
Entries per page = 999
Page Title = Work Requests

### Menu Commands

## Use this line normally 
Menu Commands = Back, List, New, Edit, Find, Last Day, Last 10, Logout, Help, Move to, Config
Find Menu Commands = Back, List, New, Find, Select, Logout, Help, Move to, Config

Allow Delete = rpeterso, pmeyer, mattkimball
Allow Config = rpeterso, pmeyer, mattkimball

Move to = Completed Work Requests
Menu text = work_requests_menu.txt
Use Email Subject = $Title
Use Email Heading = The OIS Tracking system has just received a work request. 
Use Email Heading Edit = A work request in the OIS Tracking system has just been changed. 
Email All = $Notifications, "$Also Notify (email address)", patrick.j.meyer@state.or.us
Message comment = Please describe what you need here.
Attachment comment = Please attach screenshots or auxiliary documents here.
Display mode = summary

# Can add an edit column by putting Edit in the list, but it works a little cheesy, also, need to put edit.gif in the gif directory
List display = ID, Date, System, Title, Priority, Date Needed, Status, Work Order, Percent Complete, Expected Delivery, Estimated Hrs
Summary lines = 7
ID display = $message id

## Filter options
Quick filter = System, Priority, Status, Date, Work Order, Assigned To

##### The Good Stuff #########

### Attributes we are tracking
Attributes = Requestor, System, Subsystem, Title, Priority, Date Needed, Type, Also Notify (email address), Status, Assigned To, Percent Complete, Estimated Hrs, Actual Hrs, Date Added, Expected Delivery, Date Completed, Notifications, Requestor_Email, Completed 


### System Picking
Options System = CAREAssist{sy03}, CAREWare{sy04}, 


Options Requestor = Sharon Arnett, Annick Benson, Ryan Deibert, Vic Fox{rac}, Lisa McAuliffe, John McDaniel, Jill Snyder, Denise Skrykar, Carolyn Underwood, Other...{rzz}

### Priority -- changed from radio to regular to permit use in e-mail rules
Options Priority = A-Emergency{p1}, B-Critical{p2}, C-Other {p3}
Preset Priority = C-Other

### When it is needed (if there is a defined date)
Type Date Needed = date

### Type 
ROptions Type = Ad-hoc Query, Bug (Brk/Fix), Enhancement, Inquiry, Support, Other

### Also Notify - Just a blank field holds e-mail addresses of 
Comment Also Notify (email address) = <BR><b>Below for OIS staff only.</b>

### Status -- changed from radio to regular to permit use in e-mail, prefill, reply and lock rules 
Options Status = 1-Requested{s1}, 2-Need More Detail{s2}, 3-Estimated{s3}, 4-Assigned{s4}, 5-Delivered {s5}, 6-Closed (No Info/Dup/Not Approved){s6}
Preset Status = 1-Requested

### Work Order
ROptions Work Order = 1, 2, 3, 4, 5, 6+

### Actual Effort
Type Actual Effort = numeric
Comment Actual Effort = (in man-hours)

### Specify the day this was added
Type Date Added = date
Preset Date Added = $date

### Specify the expected delivery date
Type Expected Delivery = date

### When was the work request completed?
Type Date Completed = date

### Percent Complete
ROptions Percent Complete = 0%, 5%, 10%, 25%, 50%, 75%, 90%, 100%
## Preset Percent Complete = 0%

Options Completed = Yes, No
Preset Completed = No

### Don't even know if this stuff works...
Format Assigned To = 0, attribname, attribvalue, 30, 30
Format Estimated = 1, attribname, attribvalue, 3, 3
Format Actual = 1, attribname, attribvalue, 3, 3

preset Requestor_Email = $user_email
###locked attributes = Requestor_Email


######################
## The Status Specific Stuff
############################
{s1} Subst Completed = No
{s1 s3 s3 s3a s4 s5 s6 s7a s7b} Subst Completed = No
{s8a s8b s8c} Subst Completed = Yes

############################
### The System Specific Stuff
#############################

## CareAssist aka ADAP
{sy03} Options Subsystem = SpendDown, Reporting, ED!, Other
{sy03} Options Assigned To = Reginald Liggins, James Soult, 
{sy03 & s1} Preset Assigned To = James Soult
{sy03 & s1} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us, victor.j.fox@state.or.us, matthew.j.kimball@state.or.us, $user_email
{sy03 & s2} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us,  victor.j.fox@state.or.us, matthew.j.kimball@state.or.us
{sy03 & s3} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us,  victor.j.fox@state.or.us, matthew.j.kimball@state.or.us
{sy03 & s3a} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us,  victor.j.fox@state.or.us, matthew.j.kimball@state.or.us
{sy03 & s4} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us, matthew.j.kimball@state.or.us
{sy03 & s5} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us, matthew.j.kimball@state.or.us 
{sy03 & s6} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us,  victor.j.fox@state.or.us, matthew.j.kimball@state.or.us
{sy03 & s7a} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us,  victor.j.fox@state.or.us, matthew.j.kimball@state.or.us
{sy03 & s7b} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us,  victor.j.fox@state.or.us, matthew.j.kimball@state.or.us
{sy03 & s8a} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us,  victor.j.fox@state.or.us, matthew.j.kimball@state.or.us
{sy03 & s8b} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us,  victor.j.fox@state.or.us, matthew.j.kimball@state.or.us
{sy03 & s8c} Preset Notifications = reginald.liggins@state.or.us, james.soult@state.or.us,  victor.j.fox@state.or.us, matthew.j.kimball@state.or.us

## CAREWare
{sy04} Options Subsystem = Old, New, Other
{sy04} Options Assigned = Robin Peterson
{sy04} Preset Assigned To = Robin Peterson
Email System CareWare = robin.h.peterson@state.or.us, matthew.j.kimball@state.or.us, $user_email

## Cashfile
{sy05} Options Subsystem = Old, New, Other, Other
{sy05} Options Assigned To = Bob Winfield, Tony Sukonik, Robin Peterson
{sy05} Preset Assigned To = Robin Peterson
{sy05} Email System Cashfile = robin.h.peterson@state.or.us, john.mcadams@state.or.us, bob.e.winfield@state.or.us




#####################################################################################################
#####################################################################################################
  67689   Thu Jun 19 09:35:20 2014 Reply Matt Dellerdellzoid@hotmail.comQuestionLinux2.9.2Re: Unable to resize images in browser

Stefan Ritt wrote:

Matthew Deller wrote:
I am unable to resize/ manipulate images in browser. Image Magick detected Version: ImageMagick 6.6.9-7 2012-08-17.

Output when running elog with verbose option shows buffer overflow when resize attempted:
[[Going to execute: /bin/sh -c "identify -format '%wx%h %c' '/home/elog/elog-2.9.2/logbooks/HardwareLog/140218_120423_2014-02-18_remod_(extended_II).png.png'" > /tmp/elog-shell 2>&1
Falling back to default group "elog"
Falling back to default user "elog"
*** buffer overflow detected ***: elogd terminated

Any ideas how to fix this? I'm not sure if this is a problem with the elog / Ubuntu / Image Magick?


What happens if you execute the command manually, like

$ identify -format '%wx%h %c' '/home/elog/elog-2.9.2/logbooks/HardwareLog/140218_120423_2014-02-18_remod_(extended_II).png.png

The "identify" command just checks the size in pixels of your image and expects something like 800x600. Let me know if this command returns something completely different.

/Stefan


Sorry for very late reply. I recently rebuilt our server. Elog 2-9-2, new machine, new OS (Ubuntu 14.04), new version of ImageMagick (6.7.7-10), but I'm having the same unresolved problem. identify -format from the command line returns 645x860 (as it should). Any ideas?

-Matt
  1128   Fri May 6 18:41:04 2005 Reply Matt Biggywiggum45@hotmail.comBug reportWindows2.5.8Re: elogd crashes on log out
> > What other information can I provide that might assist in diagnosing this?
> 
> Please send me your elogd.cfg configuration file.

Stefan - I am having the exact same problem as outlined here. I sent you an
email with a somewhat complicated config file. Attached to this message is a
much simpler one. 

With this file, if you remove the B5 server (remove it from top group a2, and
remove the [b5] entry) the crash does not happen. If the B5 server (or any
additional server) is in the file, then the problem occurs.

For me, there are 3 places where the crash happens:
- on logout
- when an invalid username/password is used to login
- when you login to A1, then try to go to A2

This is happening on elog v2.5.9-1 (built May 2, 2005, 12:17:18 revision 1.642)

I have tried on windows 2000 and 2003 servers, and it seems to happen on both of
them.

Matt
Attachment 1: elogd.cfg
[global]
port = 2080
url = http://localhost:2080/

Logfile = elog.txt
Logging level = 3

Top Group A1 = b1, b2
Top Group A2 = b3, b4, b5

[global A1]
Password file = a1.pwd
Self register = 1
Admin user = admin

[global A2]
Password file = a2.pwd
Self register = 1
Admin user = admin

[b1]
Comment = b1

[b2]
Comment = b2

[b3]
Comment = b3

[b4]
Comment = b4

[b5]
Comment = b5
  1129   Fri May 6 20:32:49 2005 Reply Matt Biggywiggum45@hotmail.comBug reportWindows2.5.8Re: elogd crashes on log out
Another quick update on this, it looks like the bug was introduced in version
2.5.8-2 built Mar 30 2005, 11:04:33, revision 1.611

version 2.5.8-1 built Mar 21 2005, 17:28:54, revision 1.592 does not exhibit the
behavior.


Matt
  65676   Wed Dec 12 16:05:00 2007 Question Mattmatt.phipps@cerner.comQuestionWindows2.7.0-1954ELog Friendly Reporting Tools

We have used ELog for some time now (within the IT industry) for several things (on-call tracking, after-hours work, knowledge base and a few other uses in development).  Now that we have a good base of data, we would like to do some trending analysis.  We have used Excel in the past for this, but it is rather time consuming.  Does anyone have recommendations for tools (hopefully open source) they have used?  I know nearly anything will since ELog uses flat files, but I'm looking for recommendations that you all know works well.

ELOG V3.1.5-3fb85fa6