View Full Version : Authentication Required
teoks82
01-22-2008, 04:59 AM
i have just install the the os ticket package (rc2) from http://osticket.com/download/osticket_1.6.rc2.tar.gz
I follow the instructions to
* Change permission of config.php to remove write access
Chmod 644 config.php
* Delete install directory( i have deleted the setup folder)
i click on the link and try to login but always get "Authentication Required" even my username and password is correct.
i have reinstalled using the zip file but also same problem.
I have refer some post and thread that check the main.ini.php and setting is correct and also try to tweak the mysql database ost_staff, change the isactive form 1 to 0 also not working. I have wordpress, joomla and also elgg running on the same server without problem.
My system
RedhatEL 4
PHP-4.3.9-3.15
MYSQL-4.1.20-1.RHEL4.1
Any help is really appreciated ;-)
Thanks!
Best regards,
KS
teoks82
01-24-2008, 03:31 AM
hi all, my issue is solve,
i edited the staff.inc.php
Thank you
Can closed this thread already
what exactly did you have to change? I would like to know if it is something we need to correct in a new version.
Thanks
teoks82
01-24-2008, 09:15 PM
i add "$thisuser->refreshSession();" below line 55 in staff.inc.php.
Is it perhaps possible you have problems with storing your sessions? Because this is not a common problem.
amSee
03-12-2008, 07:20 AM
Is it perhaps possible you have problems with storing your sessions? Because this is not a common problem.
Hi!
It seems to be a common problem, at least with RC3, on an up-to-date (PHP Version 5.2.0-8+etch10) php installation and register_globals=off
And yes ... it shurely has to do something with php session handling, maybe they changed something.
Greetings, mm
cerush
03-27-2010, 06:57 PM
I am actually having the same issue with the newest version of OS ticket, 1.6. I have a beta in live use right now because I cannot get this version to allow me to log in.
I added the line, "$thisuser->refreshSession();" beneath line 55 and that didn't work I also added it into the php header but neither worked.
I have even tried editing the database to have a null and a just plank password with not results. Because this site is not live yet I will give you the temporary url to the ticket system of http://cerush.powweb.com/support/scp and if you contact me I will even put a fresh config file in and empty the database so we can install it over again.
ianbowles
09-12-2010, 09:43 PM
It took 2 changes to get my system working properly:
1) Make the session folder writable by any user (session problem as described previously
2) apply a mod to main_inc to set the path of ROOT_PATH to the actual path, not ./ e.g.
define('ROOT_PATH','/var/www/vhosts/mydomain.com/httpdocs/support');
In my case I had os_ticket installed in a folder called support.
I think after login it was loading the wrong login.php, i.e the regular one, not the scp one, although I'm not sure exactly what was happening. I do know that it works now though. :-)
psampaio
12-13-2010, 02:15 PM
Right now i'm having this issue too, nothing seem to solve, i've even changed the server's date configuration.
Nothing worked:
- Add echo (" "); in scp/login.php;
- Handle the session.save_path properly
I was able to configure the path to /tmp/php and chmod it as 700 and as 777 and nothing happened
- Comment the line @header("Location: $dest"); in scp/login
This works but only until the first click on any link...
- Tweak the .htaccess file, changes about php session, etc;
- Open the database and change the settings about time limits, timeouts, etc.
So, right now i think i've tried every patch possbile in this forum, now it's time to register and ask for brand new help around.
Some things bothers me, some people say it is working for them now, but they don't publish the fix. There is some attiction with one or two members and still there is no fix... It's time to settle down and solve a problem that is around for long time...
psampaio
12-14-2010, 10:24 AM
There was an issue with lack of free space on one of the hard drives, as soon as it was fixed the system is back stable. Suddenly the backup file took half of the hard drive and the space left was zero.
This was really a silly mistake, anyway, if someone have this issue, check the free space left on the drive.
We also use Request Tracker, wich i personally hate, but i must keep it running... It also stopped working properly due to lack of free space...
buggybug
08-31-2011, 06:15 AM
Hallo,
i'm using v.1.6 und php 5.2.16.
in irregular intervals the error occurs.
all tipps here ain't working for me.
if i include "refresh session" i get an HTTP-Fehler 500 (Internal Server Error) error, after i removed the code, sometimes it works, sometimes only after a while again.
what i have observed is, that
1. first time i login in i have following URL:
/scp/login.php
2. redirected to Error "Authentication Required"
URL: /scp/index.php (screen)
if i comment out "("Location: $dest");" in /scp/login.php
i can login but the URL shows: /scp/login.php, if i now want to open a ticket i get redirected to the "authentication required" -Screen, but the URL shows:
/scp/tickets.php?id=1197
Its pretty bad, because we are using osticket in a productive enviroment, so if anyone can help it would be great!
buggybug
08-31-2011, 11:25 AM
I have the solution for my Problem!! finaly! :D
osticket saved the sessions as default in the wrong folder of the server! In the default-folder server the user has limited space to use. So everytime the tmp folder was full, no session-data could be saved anymore. :rolleyes:
so i used this post:
http://osticket.com/forums/project.php?s=&issueid=174&filter=petitions
to custumize the path to save the sessions. but for security reasons i did not use the webfolder for saving sessions, i would not recommend that.