<html>
<head>
</head>
<body>
HI<br>
The command line interface works fine with the RT internal Authentication,
but doesn't seems to work when I switch to the Apache Authentication.<br>
<br>
Apache Authentication by web, works fine!<br>
<br>
All I set for command line configuration are<br>
export RTDEBUG=3<br>
export RTSERVER=<a class="moz-txt-link-freetext" href="http://rt:8000/">http://rt:8000/</a> - this is the place I go in the web to access
RT.<br>
<br>
My UNIX username, the RT username and RT unix-username are same.<br>
<br>
Am I missing any setup???<br>
<br>
I looked at all the log files, rt.log (RT_Config) & error_log, rt_error_log
and rt_access_log (apache), no error msg, only got <br>
rt_access_log :<br>
128.250.37.70 - - [23/Mar/2004:10:32:06 +1100] "POST //REST/1.0/show HTTP/1.0"
401 470<br>
<br>
<i><b><br>
</b></i><b>with internal RTl Authentication</b> - work fine<br>
--------------------------------<br>
[vinita@mulga] bin [1:95] ./rt ls "queue='DBA'"<br>
Password: <br>
POST <a class="moz-txt-link-freetext" href="http://rt:8000//REST/1.0/search/ticket">http://rt:8000//REST/1.0/search/ticket</a><br>
Content-Length: 274<br>
Content-Type: multipart/form-data; boundary=xYzZY<br>
<br>
--xYzZY<br>
Content-Disposition: form-data; name="query"<br>
<br>
queue='DBA'<br>
--xYzZY<br>
Content-Disposition: form-data; name="orderby"<br>
<br>
<br>
--xYzZY<br>
Content-Disposition: form-data; name="user"<br>
<br>
vinita<br>
--xYzZY<br>
Content-Disposition: form-data; name="pass"<br>
<br>
XXXXXXX<br>
--xYzZY--<br>
<br>
HTTP/1.0 200 OK<br>
Cache-Control: no-cache, no-store<br>
Date: Mon, 22 Mar 2004 23:23:20 GMT<br>
Pragma: no-cache<br>
Server: Apache/1.3.29 (Unix) mod_perl/1.29<br>
Content-Type: text/plain; charset=UTF-8<br>
Client-Date: Mon, 22 Mar 2004 23:23:20 GMT<br>
Client-Peer: 128.250.37.70:3128<br>
Client-Response-Num: 1<br>
Proxy-Connection: close<br>
Set-Cookie: RT_SID_cs.mu.OZ.AU.8000=0e36f33cce273c54892e23fbac08c3b9; path=/<br>
X-Cache: MISS from calamari.cs.mu.OZ.AU<br>
<br>
RT/3.0.8 200 Ok<br>
<br>
1: testing 1 2 3<br>
2: ticket by vvj<br>
7: main dba fix<br>
8: sub DBA -1<br>
9: sub DBA -2<br>
<br>
<br>
1: testing 1 2 3<br>
2: ticket by vvj<br>
7: main dba fix<br>
8: sub DBA -1<br>
9: sub DBA -2<br>
[vinita@mulga] bin [1:96] <br>
<br>
<b>with Apache Authentication</b>, (add the .htaccess at doc root, then stop
start the apache)<br>
-------------------------------------<br>
[vinita@mulga] bin [1:107] ./rt show ticket/2<br>
Password: <br>
POST <a class="moz-txt-link-freetext" href="http://rt:8000//REST/1.0/show">http://rt:8000//REST/1.0/show</a><br>
Content-Length: 205<br>
Content-Type: multipart/form-data; boundary=xYzZY<br>
<br>
--xYzZY<br>
Content-Disposition: form-data; name="id"<br>
<br>
ticket/2<br>
--xYzZY<br>
Content-Disposition: form-data; name="user"<br>
<br>
vinita<br>
--xYzZY<br>
Content-Disposition: form-data; name="pass"<br>
<br>
XXXXXX<br>
--xYzZY--<br>
<br>
HTTP/1.0 401 Unauthorized<br>
Date: Mon, 22 Mar 2004 23:32:41 GMT<br>
Server: Apache/1.3.29 (Unix) mod_perl/1.29<br>
WWW-Authenticate: Basic realm="RT access"<br>
Content-Type: text/html; charset=iso-8859-1<br>
Client-Date: Mon, 22 Mar 2004 23:32:41 GMT<br>
Client-Peer: 128.250.37.70:3128<br>
Client-Response-Num: 1<br>
Proxy-Connection: close<br>
Title: 401 Authorization Required<br>
X-Cache: MISS from calamari.cs.mu.OZ.AU<br>
<br>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><br>
<HTML><HEAD><br>
<TITLE>401 Authorization Required</TITLE><br>
</HEAD><BODY><br>
<H1>Authorization Required</H1><br>
This server could not verify that you<br>
are authorized to access the document<br>
requested. Either you supplied the wrong<br>
credentials (e.g., bad password), or your<br>
browser doesn't understand how to supply<br>
the credentials required.<P><br>
<HR><br>
<ADDRESS>Apache/1.3.29 Server at rt.cs.mu.OZ.AU Port 8000</ADDRESS><br>
</BODY></HTML><br>
<br>
rt: Server error: Unauthorized (401)<br>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
warm regards
Vinita Vigine Murugiah
Email : <a class="moz-txt-link-abbreviated" href="mailto:vinita@cs.mu.oz.au">vinita@cs.mu.oz.au</a> Ph : (03) 8344 1273
</pre>
</body>
</html>