PDA

View Full Version : Indexing sites while require basic authentication


Carl Mikkelsen
04-09-2004, 02:01 PM
I am trying to index an intranet site that requires basis authentication. How do I set the realm, userid, and password to be used for that sub-site?

vinyl-junkie
04-09-2004, 05:10 PM
First of all, welcome to the phpDig forum, Carl. We're glad you could join us!

This thread (http://www.phpdig.net/showthread.php?s=&threadid=363) doesn't address authentication specifically, but it might offer some insight into how to get where you want to go.

Hope this helps. :)

Carl Mikkelsen
04-10-2004, 11:35 AM
I read the thread, which addressed how to limit search returns to a portion of the index database. What I need to do is supply a username and password along with the http request.

Do you think it necessary for me to study how phpdig fetches web content, and see if there are additional parameters that can be passed? For instance, the http client classes for perl provide authentication parameters, as well as the linux utility wget.

Carl Mikkelsen
04-10-2004, 11:41 AM
I tried a different search and found a thread about this. I'll try that Monday and see if all work then.

Carl Mikkelsen
04-30-2004, 07:17 AM
Just to follow up and summarize:

The answer is to enter urls of the form:

http://UserName:Password@domain/path

into the phpdig admin form. The UserName and PassWord are used for basic authentication.

Carl Mikkelsen
04-30-2004, 07:23 AM
Just to follow up and summarize (last attempt got confused by smileys):

The answer is to enter urls of the form:

http://UserName:Password@domain/path


into the phpdig admin form. The UserName and PassWord are used for basic authentication.

Carl Mikkelsen
04-30-2004, 07:24 AM
Smileys are in my way today.

The smiley face in the answer(s) above should be the colon character ":", followed by a "P".