ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
66947
|
Wed Nov 24 11:58:00 2010 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.8.0-2313 | Re: Don't see login page - Self register = 1 | > Hi,
>
> I'm trying to configure Elog such that users can self-register. But no luck so far.
> I cannot get the login screen. I'm connecting to a logbook (and I can do this without logging in).
> Shouldn't I get a screen to login/register?
>
> Here is my elogd.cfg:
> [global]
> Port=8880
> Password file = /usr/local/elog/logbooks/passwd
> SMTP host = smtp.mydomain.de
> SMTP user = kuku
> Logfile = /usr/local/elog/logs/elog.log
> Admin user = kuku other
> Login user = abc def ghi
> SSL=1
> URL=https://www.mydomain.de:8880/
> Self register = 1
> Menu commands = List, New, Edit, Reply, Duplicate, Find, Config, Logout, Help
> Guest menu commands = List, Find, Login, Help
>
> Admin user = me@mydomain.de
> [Demo]
> Admin Password = 9lVlUsigs4neBt9xnX44YYQay15Yu9PyLC9hK6sifI9
> Attributes = Author, Status
> [Linux]
> Admin Password = 9lVlUsigs4next9PnXShhQQa515Yu9PyLC9hK6sifI9
> Attributes = Author, Status
> [Windows]
> Admin Password = 9lVlUsigs4neBt9PnXShhQQay15YuxPyLC9hK6sifI9
> Attributes = Author, Status
You should not mix "Password file" with "Admin Password". Either use one or the other system, but not both. So
remove "Admin Password", and delete all cookies in your browser, then you should see the login screen. |
66948
|
Wed Nov 24 12:12:37 2010 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 2.8.0-2339 | Re: How to overide the Date attribute? |
Adam Blandford wrote: |
Hi I have a logbook where I want to override the default Date attribute. I would like to set it by default to the entry date but enable the user to modify to a different date if desired. This is for entries that pertain to an activity performed on a date different to the entry date. To acheive this I have created an attribute called "Subject Date" and used preset = $date. In general this works but I would be happy to take any other suggestions on how to acheive it? Also, how do I remove the fixed "Date" attribute from the logbook summary page? I have tried: List = ID, Subject Date, Type, Subject in the config file but this doesn't appear to work? Thanks in advance! Adam |
The option to change what is displayed is called List display = ... and not List = ... Then it works.
- Stefan |
66949
|
Wed Nov 24 15:06:31 2010 |
| Mariusz Stakowski | Mariusz.Stakowski@asseco.pl | Question | Linux | 2.8.0 | New password file problem | Hello,
I'm new to elog. I've installed it under Slackware 11. Everything worked smoothly until I wanted to establish access control. I followed the steps described under Access control heading in Syntax of elog.cfg chapter. I specified a new password file name and the following steps with no problem. After having created a new user I stopped elogd and added Admin user to config file. And here is my problem - each time I want to login to elog, I get "Invalid user name or password!" message. The meaning of it is obvious. So I have repeated all the steps several times. Of course I paid attention to enter user name and password correctly but I can't get rid of this message. For sure I making something wrong, but what it is ?
Here is part of my elogd.cfg:
[global]
Port=8080
Logfile = elogd.log
Logging level = 3
Password file = passwd
Self register = 1
Admin user = eloga
charset = utf-8
Here is what happens after elog restart:
elogd 2.8.0 built Oct 22 2010, 11:04:31 revision 2313
Falling back to default group "elog"
Falling back to default user "elog"
Falling back to default group "elog"
Falling back to default user "elog"
ImageMagick detected
Indexing logbooks ... Converting password file for logbook "Demo" to new encoding ... ok
done
Server listening on port 8080 ...
Here is the password file :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- created by MXML on Wed Nov 24 13:13:43 2010 -->
<list>
<user>
<name>eloga</name>
<password encoding="SHA256">vnpfrWa8wmxFsLFjlY/poXdz3wh6RLt9BT.D1O52Xl9</password>
<full_name>Mariusz Stakowski</full_name>
<last_logout>0</last_logout>
<last_activity>Wed Nov 24 13:13:43 2010</last_activity>
<email>Mariusz.Stakowski@asseco.pl</email>
<email_notify/>
</user>
</list>
And here is what I found in elogd.log file:
24-Nov-2010 13:50:06 [] Server listening on port 8080 ...
24-Nov-2010 13:50:53 [eloga@xx.xx.xx.xx] {Demo} LOGIN user "eloga" (attempt)
Could somebody help me please ?
Best regards
Mariusz Stakowski
|
66950
|
Wed Nov 24 15:14:29 2010 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.8.0 | Re: New password file problem |
Mariusz Stakowski wrote: |
Hello,
I'm new to elog. I've installed it under Slackware 11. Everything worked smoothly until I wanted to establish access control. I followed the steps described under Access control heading in Syntax of elog.cfg chapter. I specified a new password file name and the following steps with no problem. After having created a new user I stopped elogd and added Admin user to config file. And here is my problem - each time I want to login to elog, I get "Invalid user name or password!" message. The meaning of it is obvious. So I have repeated all the steps several times. Of course I paid attention to enter user name and password correctly but I can't get rid of this message. For sure I making something wrong, but what it is ?
|
Can you try the current SVN version?
http://savannah.psi.ch/websvn/filedetails.php?repname=elog&path=/trunk/src/elogd.c&rev=0&sc=0
There has been some issues with the password encoding, maybe this is fixed now. |
66952
|
Wed Nov 24 16:36:21 2010 |
| Christoph Kukulies | kukulies@physik.rwth-aachen.de | Question | Linux | 2.8.0-2313 | Re: Don't see login page - Self register = 1 | > > Hi,
> >
> > I'm trying to configure Elog such that users can self-register. But no luck so far.
> > I cannot get the login screen. I'm connecting to a logbook (and I can do this without logging in).
> > Shouldn't I get a screen to login/register?
> >
> > Here is my elogd.cfg:
> > [global]
> > Port=8880
> > Password file = /usr/local/elog/logbooks/passwd
> > SMTP host = smtp.mydomain.de
> > SMTP user = kuku
> > Logfile = /usr/local/elog/logs/elog.log
> > Admin user = kuku other
> > Login user = abc def ghi
> > SSL=1
> > URL=https://www.mydomain.de:8880/
> > Self register = 1
> > Menu commands = List, New, Edit, Reply, Duplicate, Find, Config, Logout, Help
> > Guest menu commands = List, Find, Login, Help
> >
> > Admin user = me@mydomain.de
> > [Demo]
> > Admin Password = 9lVlUsigs4neBt9xnX44YYQay15Yu9PyLC9hK6sifI9
> > Attributes = Author, Status
> > [Linux]
> > Admin Password = 9lVlUsigs4next9PnXShhQQa515Yu9PyLC9hK6sifI9
> > Attributes = Author, Status
> > [Windows]
> > Admin Password = 9lVlUsigs4neBt9PnXShhQQay15YuxPyLC9hK6sifI9
> > Attributes = Author, Status
>
> You should not mix "Password file" with "Admin Password". Either use one or the other system, but not both. So
> remove "Admin Password", and delete all cookies in your browser, then you should see the login screen.
This is now my config - it still doesn't work. BTW, the passwd file is empty (despite of the xml header).
[global]
Port=8880
Password file = /usr/local/elog/logbooks/passwd
SMTP host = smtp.mydomain.de
SMTP user = kuku
Logfile = /usr/local/elog/logs/elog.log
Logging Level = 3
Admin user = kuku
Login user = abc def ghi
SSL=1
URL=https://myhost.mydomain:8880/
Self register = 1
Menu commands = List, New, Edit, Reply, Duplicate, Find, Config, Logout, Help
Guest menu commands = List, Find, Login, Help
[Demo]
Attributes = Author, Status
[Linux]
Attributes = Author, Status
[Windows]
Attributes = Author, Status
--
Thanks for helping.
Christoph |
66955
|
Thu Nov 25 14:15:31 2010 |
| Yoshio Imai | | Question | Linux | 2.8.0-2313 | Re: Don't see login page - Self register = 1 | Hi!
Christoph Kukulies wrote: | I cannot get the login screen. I'm connecting to a logbook (and I can do this without logging in).
Shouldn't I get a screen to login/register? |
Christoph Kukulies wrote: | Guest menu commands = List, Find, Login, Help |
I might be wrong, but since you have defined "Guest menu commands", you should indeed be able to read the logbooks without logging on, only write access should be prevented. Do you get the login window when you explicitly click onto the "Login" link?
Also, I noticed that your user lists are space-separated, although as far as I know they should be comma-separated.
I hope this helps!
Yoshio |
66956
|
Thu Nov 25 17:34:28 2010 |
| Christoph Kukulies | kukulies@physik.rwth-aachen.de | Question | Linux | 2.8.0-2313 | Re: Don't see login page - Self register = 1 |
Yoshio Imai wrote: | Hi!
Christoph Kukulies wrote: | I cannot get the login screen. I'm connecting to a logbook (and I can do this without logging in).
Shouldn't I get a screen to login/register? |
Christoph Kukulies wrote: | Guest menu commands = List, Find, Login, Help |
I might be wrong, but since you have defined "Guest menu commands", you should indeed be able to read the logbooks without logging on, only write access should be prevented. Do you get the login window when you explicitly click onto the "Login" link?
Also, I noticed that your user lists are space-separated, although as far as I know they should be comma-separated.
I hope this helps!
Yoshio |
Thanks. That was exactly what Stefan pointed me to (in private EMail which I resorted to in my desperation .
This config (also thanks to Stefan) now works.
[global]
Port=8880
SSL=1
Self register = 1
Password file = passwd
[Demo]
Attributes = Author, Status
[Linux]
Attributes = Author, Status
[Windows]
Attributes = Author, Status
I only need to know how I get an admin passwd and user into the passwd file.
elogd -a password -l logbook does not have the desired effect. It spoils the cfg-file
again with Admin Password commands.
--
Christoph |
66957
|
Fri Nov 26 09:44:22 2010 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.8.0-2313 | Re: Don't see login page - Self register = 1 |
Christoph Kukulies wrote: | I only need to know how I get an admin passwd and user into the passwd file.
elogd -a password -l logbook does not have the desired effect. It spoils the cfg-file
again with Admin Password commands. |
I told you twice (once in this thread) that you should not mix "password file" with "admin password". These are two different authentication schemes and may not be combined. What you need is only "admin user = <name>" in your config file as written in the documentation. |
|