Passing username within URL
Moderator: crythias
Passing username within URL
Hi, I've set up OTRS v2.4.8 Windows version to be used as an internal IT Helpdesk.
Customers will be our internal staff. They will use the Customer Panel interface to log tickets (requests) for IT help, search on existing etc.
Our OTRS Customer login username is the same as their Windows login. Windows makes this available as the USERNAME variable.
Is there any way to pass the Windows USERNAME variable to the OTRS Customer login Username field within a URL? This would save our customers needing to type it to gain access via the Customer Panel.
I've tried "http://servername/otrs/customer.pl.username=$USERNAME" and that didn't work. I was wondering if there was something that could be used within the URL that would work.
thanks!
Customers will be our internal staff. They will use the Customer Panel interface to log tickets (requests) for IT help, search on existing etc.
Our OTRS Customer login username is the same as their Windows login. Windows makes this available as the USERNAME variable.
Is there any way to pass the Windows USERNAME variable to the OTRS Customer login Username field within a URL? This would save our customers needing to type it to gain access via the Customer Panel.
I've tried "http://servername/otrs/customer.pl.username=$USERNAME" and that didn't work. I was wondering if there was something that could be used within the URL that would work.
thanks!
Re: Passing username within URL
Hi, you can try this:Gunz wrote: Is there any way to pass the Windows USERNAME variable to the OTRS Customer login Username field within a URL? This would save our customers needing to type it to gain access via the Customer Panel.
Code: Select all
http://example.com/otrs/customer.pl?Action=Login&User=yourname
Please look at using Single Sign On for a real nice solution; no loggin in required:
http://wiki.otrs.org/index.php?title=Im ... ith_Apache
Regards,
Mike
huntingbears.nl - @michielbeijen on Twitter
Re: Passing username within URL
Thanks Mike. I'll take a look at single sign-on.
--Wayne
--Wayne
Re: Passing username within URL
OK... I'm stumped when I'm setting up single sign-on.
The Instructions state:
Add the following statements to the <Directory> block of your cgi-bin directory:
<Directory "d:/otrs/bin/cgi-bin/">
SSPIAuth On
SSPIAuthoritative On
SSPIDomain pdc.example.com
SSPIUsernameCase lower
SSPIOfferBasic On
Require valid-user
Options +ExecCGI -Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I have no idea of what file this is asking me to update with this information? Does anyone know where this should go?
As well, am I correct in thinking I have to change the line SSPIDomain pdc.example.com and update "pdc.example.com" to my own domain?
All help, very much appreciated.
--Wayne
The Instructions state:
Add the following statements to the <Directory> block of your cgi-bin directory:
<Directory "d:/otrs/bin/cgi-bin/">
SSPIAuth On
SSPIAuthoritative On
SSPIDomain pdc.example.com
SSPIUsernameCase lower
SSPIOfferBasic On
Require valid-user
Options +ExecCGI -Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I have no idea of what file this is asking me to update with this information? Does anyone know where this should go?
As well, am I correct in thinking I have to change the line SSPIDomain pdc.example.com and update "pdc.example.com" to my own domain?
All help, very much appreciated.
--Wayne
Re: Passing username within URL
Sure, you should change pdc.example.com to your own PDC address.Gunz wrote:OK... I'm stumped when I'm setting up single sign-on.
The Instructions state:
Add the following statements to the <Directory> block of your cgi-bin directory:
<Directory "d:/otrs/bin/cgi-bin/">
SSPIAuth On
SSPIAuthoritative On
SSPIDomain pdc.example.com
SSPIUsernameCase lower
SSPIOfferBasic On
Require valid-user
Options +ExecCGI -Includes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I have no idea of what file this is asking me to update with this information? Does anyone know where this should go?
As well, am I correct in thinking I have to change the line SSPIDomain pdc.example.com and update "pdc.example.com" to my own domain?
All help, very much appreciated.
--Wayne
It should be added to the <directory> block in the Apache configuration file. And that would be in [path\to\otrs]Apache\conf\httpd.conf - you can open the file with a text editor such as Wordpad. You'll find the appropriate section near the bottom of the file.
--
Mike
huntingbears.nl - @michielbeijen on Twitter
Re: Passing username within URL
Thanks again Mike!
--Wayne
--Wayne
-
- Znuny newbie
- Posts: 67
- Joined: 14 Mar 2012, 15:08
- Znuny Version: OTRS2
Re: Passing username within URL
I have followed all the instructions mentioned here at http://wiki.otterhub.org/index.php?titl ... ith_Apache
But i am getting the following error
But i am getting the following error
Can you please tell what wrong am i doing..I made the required changes in config.pm and httpd.conf as explained in the article.[Tue Jan 8 11:41:26 2013][Notice][Kernel::System::Auth::HTTPBasicAuth::Auth] User: No $ENV{REMOTE_USER} or $ENV{HTTP_REMOTE_USER} !(REMOTE_ADDR: 127.0.0.1).
[Tue Jan 8 11:41:26 2013][Error][Kernel::System::User::UserLookup][724] Need UserLogin or UserID!
■ TRIPTI RAI // PROJECT ENGINEER, ETIM GTEC
Office: +91 20 66056464 //Mobile: +91 9503019176 // // Whirlpool Corporation // www.WhirlpoolCorp.com
Whirlpool Corporation // www.WhirlpoolCorp.com
Office: +91 20 66056464 //Mobile: +91 9503019176 // // Whirlpool Corporation // www.WhirlpoolCorp.com
Whirlpool Corporation // www.WhirlpoolCorp.com
-
- Znuny newbie
- Posts: 67
- Joined: 14 Mar 2012, 15:08
- Znuny Version: OTRS2
Re: Passing username within URL
??
■ TRIPTI RAI // PROJECT ENGINEER, ETIM GTEC
Office: +91 20 66056464 //Mobile: +91 9503019176 // // Whirlpool Corporation // www.WhirlpoolCorp.com
Whirlpool Corporation // www.WhirlpoolCorp.com
Office: +91 20 66056464 //Mobile: +91 9503019176 // // Whirlpool Corporation // www.WhirlpoolCorp.com
Whirlpool Corporation // www.WhirlpoolCorp.com
Re: Passing username within URL
I've seen this error when you use HTTP Basic Auth in OTRS but Apache received no user data... It happened to me when people tried to get to OTRS from a computer not in Domain.
Hope it helps
Hope it helps
OTRS 5.0.15 on CentOSLinux with MariaDB database connected to an Active Directory for Agents and Customers.
-
- Znuny newbie
- Posts: 67
- Joined: 14 Mar 2012, 15:08
- Znuny Version: OTRS2
Re: Passing username within URL
Hey..Thanks ..That was exactly my problem..Although i solved it before..Thanks for your input!
■ TRIPTI RAI // PROJECT ENGINEER, ETIM GTEC
Office: +91 20 66056464 //Mobile: +91 9503019176 // // Whirlpool Corporation // www.WhirlpoolCorp.com
Whirlpool Corporation // www.WhirlpoolCorp.com
Office: +91 20 66056464 //Mobile: +91 9503019176 // // Whirlpool Corporation // www.WhirlpoolCorp.com
Whirlpool Corporation // www.WhirlpoolCorp.com