[geeklog-devel] Fwd: Windows Live Writer, now with AtomPub

Blaine Lang devel at portalparts.com
Sun Nov 11 13:33:40 EST 2007


I did some googling and found that adding the following to my .htaccess 
allowed me to test for the $_SERVER['REMOTE_USER']

RewriteEngine on
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
RewriteCond %{HTTP:Authorization} username=\"([^\"]+)\"

I had to change the code in ws_authenticate to look for 
$_SERVER['REMOTE_USER'] as I was not setting the gl_auth_header variable 
via this .htaccess change.

Testing some more but a basic text story was now posted ok.

Blaine

Blaine Lang wrote:
> The hoster has now upgraded ZEND Optimizer and the error does not 
> appear on each time I try to publish the story but I am still getting 
> the 401 error in livewritter and PHP_AUTH_USER is not set as per my 
> debug code in the WS_Authenticate function.
>
> I  have asked PSEK as well if they have any ideas what it would appear 
> the credentials are not being read in the headers.
>
> Dirk Haun wrote:
>> Blaine Lang wrote:
>>
>>  
>>> it writes a line in the atom/error.log file.
>>>     
>>
>> Hmm, that shouldn't happen.
>>
>>
>>  
>>> [09-Nov-2007 22:19:35] PHP Warning:  Zend Optimizer for PHP 5.2.x 
>>> cannot be found (expected at 
>>> '/usr/local/Zend/lib/zo/3.2.0/Optimizer/php-5.2.x/ZendOptimizer.so') 
>>> - try reinstalling the Zend Optimizer in Unknown on line 0
>>>     
>>
>> Sounds like something your host should look into.
>>
>> bye, Dirk
>>
>>
>>   
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://eight.pairlist.net/mailman/listinfo/geeklog-devel
>
>



More information about the geeklog-devel mailing list