problem with HTTP_AUTH

Get help from other users here.

Moderators: Developer, Contributor

problem with HTTP_AUTH

Postby knumskull » May 23, 2011 4:36 am

hello,

iam trying to authenticate my users on mantis via HTTP_AUTH. I auth my complete site by apache.
Mantis did not recognize my authentication and always show me login-page.

I tried with existing and non-existing user.
Where can i find some information about my issue?

All notes on the web referencing to an older version. I am using 1.2.5

has someone an idea?
regards, K.
knumskull
 
Posts: 7
Joined: May 23, 2011 4:20 am

Re: problem with HTTP_AUTH

Postby istvanb » May 23, 2011 8:12 am

Do you mean you can not log in at all with any users?

Not sure about your problem, but maybe its related to http://www.mantisbt.org/bugs/view.php?id=11535

If so then comment the crypt as its shown in the issue. Also wondering what is your PHP version.
istvanb
 
Posts: 226
Joined: Aug 22, 2010 4:00 pm

Re: problem with HTTP_AUTH

Postby knumskull » May 23, 2011 8:59 am

no, thats not my problem.

I want to do login like SSO over http_auth.
I don't find any configuration hints, what i have to do.

I added following line into config_inc.php
Code: Select all
$g_login_method = 'HTTP_AUTH';


When i connect to my mantis-installation, i get the login-mask for accessing the site, but the login-information is not redirected to mantis-installation.

i hope u understand my problem.
Regards.
knumskull
 
Posts: 7
Joined: May 23, 2011 4:20 am

Re: problem with HTTP_AUTH

Postby atrol » May 23, 2011 9:17 am

I never used HTTP_AUTH myself, probably you have to remove the quotes
Code: Select all
$g_login_method = HTTP_AUTH;
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3632
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: problem with HTTP_AUTH

Postby Lapinkiller » May 23, 2011 9:34 am

Indeed, HTTP_AUTH is a constant :

# login methods
define( 'PLAIN', 0 );
define( 'CRYPT', 1 );
define( 'CRYPT_FULL_SALT', 2 );
define( 'MD5', 3 );
define( 'LDAP', 4 );
define( 'BASIC_AUTH', 5 );
define( 'HTTP_AUTH', 6 );
Lapinkiller,
French PHP developer
New look for your mantis : viewtopic.php?f=4&t=20055
Lapinkiller
 
Posts: 272
Joined: Jan 28, 2011 1:47 pm
Location: France

Re: problem with HTTP_AUTH

Postby knumskull » May 23, 2011 10:24 am

What you mean with constant?

i had a mistake above.
surely i defined it following way ...
Code: Select all
$g_login_method = 'HTTP_AUTH';


Is this in my case the right solution?
I think i am authenticated via webserver and mantis has only to use this. So if iam logged in, mantis redirect me to the main-page of my user and not showing me the login-page.

every hint is welcome.
Regards
knumskull
 
Posts: 7
Joined: May 23, 2011 4:20 am

Re: problem with HTTP_AUTH

Postby atrol » May 23, 2011 10:39 am

Seems you did not read my post.
You have to remove the quotes
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3632
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: problem with HTTP_AUTH

Postby knumskull » May 23, 2011 1:55 pm

@atrol:

Sorry. You're right. I did not see your post.
After I removed the quotes, my browser asking me for username & password.

But now I can't login. Mantis did not know my usernames. It is also impossible to login, after I added user in mantis manually.
It seems mantis don't know about the login-information.

Userinformation for http_auth (in apache) is coming from Kerberos-Server.
knumskull
 
Posts: 7
Joined: May 23, 2011 4:20 am


Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

cron