Re: [PHP] basic authentication usage

2013-06-10 Thread Julian Wanke
I just mentioned that as an example. For this authentification the server sends a Authorization header. The client's browser requests the credentials from the user and save them in the RAM. Now the client's browser sends the credentials to the server. And what's important: The browser sends th

Re: [PHP] basic authentication usage

2013-06-10 Thread Jim Giner
On 6/10/2013 4:33 PM, Julian Wanke wrote: I think that the problem here is, that the unset of the $_SERVER["PHP_AUTH_USER"] variable is not affecting the client's browser. If you've got a directory protection, the browser needs a restart to show the login dialog before. I may be wrong because I'm

Re: [PHP] basic authentication usage

2013-06-10 Thread Julian Wanke
I think that the problem here is, that the unset of the $_SERVER["PHP_AUTH_USER"] variable is not affecting the client's browser. If you've got a directory protection, the browser needs a restart to show the login dialog before. I may be wrong because I'm using forms normally but the Authentifi

[PHP] basic authentication usage

2013-06-10 Thread Jim Giner
Trying to learn how this works for a simple security need I have. Nothing serious, hence this experiment. My code: if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo 'You have chosen not to signin'; e

Re: [PHP] basic authentication and redirection

2010-03-03 Thread Robert Cummings
Jay Blanchard wrote: [snip] In certain circumstances controlled by my users, I'd like to redirect my users to another site, a third party whom we have contracted with. The second site uses basic authentication with a simple username and password. Can I write my PHP code so my users do not have

RE: [PHP] basic authentication and redirection

2010-03-03 Thread Jay Blanchard
[snip] In certain circumstances controlled by my users, I'd like to redirect my users to another site, a third party whom we have contracted with. The second site uses basic authentication with a simple username and password. Can I write my PHP code so my users do not have to login (or even kno

Re: [PHP] basic authentication and redirection

2010-03-03 Thread Rene Veerman
depends on how that site does its authentication... if it's a form, it may need an extra setting to allow you to go to a specific page on that site after authentication. On Wed, Mar 3, 2010 at 8:25 PM, Bill Rausch wrote: > > > Hi there, > > In certain circumstances controlled by my users, I'd li

[PHP] basic authentication and redirection

2010-03-03 Thread Bill Rausch
Hi there, In certain circumstances controlled by my users, I'd like to redirect my users to another site, a third party whom we have contracted with. The second site uses basic authentication with a simple username and password. Can I write my PHP code so my users do not have to login (or e

Re: [PHP] Basic Authentication

2009-01-15 Thread tedd
At 12:46 PM -0500 1/15/09, Jason Pruim wrote: Hey tedd, One thing I just thought of that I'm sure you checked but just in case... With the current system do they have any way of adding new users to it? If so... there would be info in a file that had the algorithm info you need... Other then

RE: [PHP] Basic Authentication

2009-01-15 Thread tedd
At 9:11 AM -0600 1/15/09, Boyd, Todd M. wrote: tedd, It would appear your Standard DES and MD5 labels are actually both MD5. Also--there is more than just Standard DES. Once DES was determined to be relatively IN-secure, more algorithms like Triple DES, G-DES, DES-X, LOKI89, and ICE were create

Re: [PHP] Basic Authentication

2009-01-15 Thread tedd
At 7:56 PM -0500 1/14/09, Andrew Ballard wrote: I didn't get that from your original post at all. You asked how to "create an encoded password string that would work in a .htaccess file using basic authentication." Yes, but that was before I knew that generating a password from the command lin

Re: [PHP] Basic Authentication

2009-01-15 Thread tedd
At 12:42 AM +0100 1/15/09, Edmund Hertle wrote: I think I do not really understand your problem... searching for standard crypt algorithms? google, wikipedia and such should help. I solved the problem myself, which basically meant there was no way to determine what the algorithm was except for

Re: [PHP] Basic Authentication

2009-01-15 Thread Jason Pruim
On Jan 15, 2009, at 12:32 PM, tedd wrote: At 11:43 PM + 1/14/09, Ashley Sheridan wrote: > Surely that's a good thing then? Security through obscurity and all that... Ash Ash: Certainly it's a good thing -- until the client asks for another password. At this point, I have four log

Re: [PHP] Basic Authentication

2009-01-15 Thread tedd
At 11:43 PM + 1/14/09, Ashley Sheridan wrote: > Surely that's a good thing then? Security through obscurity and all that... Ash Ash: Certainly it's a good thing -- until the client asks for another password. At this point, I have four logon and password combinations to use. I can tell

RE: [PHP] Basic Authentication

2009-01-15 Thread Boyd, Todd M.
> -Original Message- > From: tedd [mailto:tedd.sperl...@gmail.com] > Sent: Wednesday, January 14, 2009 5:18 PM > To: Shawn McKenzie; php-general@lists.php.net > Subject: Re: [PHP] Basic Authentication > > At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: > > >

Re: [PHP] Basic Authentication

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 6:17 PM, tedd wrote: > At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: >> >> >> As others have said, use crypt(). >> http://php.net/manual/function.crypt.php has Example #2 Using crypt() >> with htpasswd. > > > Thanks, but that doesn't really solve my problem. > > You see,

Re: [PHP] Basic Authentication

2009-01-14 Thread TG
[PHP] Basic Authentication > At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: > > > > > >As others have said, use crypt(). > >http://php.net/manual/function.crypt.php has Example #2 Using crypt() > >with htpasswd. > > > Thanks, but that doesn't really

Re: [PHP] Basic Authentication

2009-01-14 Thread Edmund Hertle
2009/1/15 tedd > At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: > >> >> >> As others have said, use crypt(). >> http://php.net/manual/function.crypt.php has Example #2 Using crypt() >> with htpasswd. >> > > > Thanks, but that doesn't really solve my problem. > > You see, I know the password and

Re: [PHP] Basic Authentication

2009-01-14 Thread Chris
tedd wrote: At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: As others have said, use crypt(). http://php.net/manual/function.crypt.php has Example #2 Using crypt() with htpasswd. Thanks, but that doesn't really solve my problem. You see, I know the password and I know the encoded result --

Re: [PHP] Basic Authentication

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 18:17 -0500, tedd wrote: > At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: > > > > > >As others have said, use crypt(). > >http://php.net/manual/function.crypt.php has Example #2 Using crypt() > >with htpasswd. > > > Thanks, but that doesn't really solve my problem. > > You

Re: [PHP] Basic Authentication

2009-01-14 Thread tedd
At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: As others have said, use crypt(). http://php.net/manual/function.crypt.php has Example #2 Using crypt() with htpasswd. Thanks, but that doesn't really solve my problem. You see, I know the password and I know the encoded result -- what I don'

Re: [PHP] Basic Authentication

2009-01-14 Thread Shawn McKenzie
tedd wrote: >> What it is depends on what encryption routines you have installed. >> >> The algorithm to authenticate detects the algorithm based on the hash. >> >> 32-char : MD5 >> $1$ : SHA-1 >> $2$ : SHA-2 >> etc. >> (Apologies if I got my tokens/algorithms wrong) >> >> If you just toss

Re: [PHP] Basic Authentication

2009-01-14 Thread Edmund Hertle
2009/1/14 tedd > What it is depends on what encryption routines you have installed. >> >> The algorithm to authenticate detects the algorithm based on the hash. >> >> 32-char : MD5 >> $1$ : SHA-1 >> $2$ : SHA-2 >> etc. >> (Apologies if I got my tokens/algorithms wrong) >> >> If you just t

Re: [PHP] Basic Authentication

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 2:34 PM, tedd wrote: >> What it is depends on what encryption routines you have installed. >> >> The algorithm to authenticate detects the algorithm based on the hash. >> >> 32-char : MD5 >> $1$ : SHA-1 >> $2$ : SHA-2 >> etc. >> (Apologies if I got my tokens/algorit

Re: [PHP] Basic Authentication

2009-01-14 Thread TG
an 2009 12:31:15 -0500 Subject: [PHP] Basic Authentication > Hi gang: > > Let's say that I don't want to use the htpasswd command from the UNIX > shell to generate an encoded password -- how else can I create an > encoded password string that would work in a .h

Re: [PHP] Basic Authentication

2009-01-14 Thread tedd
What it is depends on what encryption routines you have installed. The algorithm to authenticate detects the algorithm based on the hash. 32-char : MD5 $1$ : SHA-1 $2$ : SHA-2 etc. (Apologies if I got my tokens/algorithms wrong) If you just toss MD5s in there, it should work, I think, i

Re: [PHP] Basic Authentication

2009-01-14 Thread ceo
What it is depends on what encryption routines you have installed. The algorithm to authenticate detects the algorithm based on the hash. 32-char : MD5 $1$ : SHA-1 $2$ : SHA-2 etc. (Apologies if I got my tokens/algorithms wrong) If you just toss MD5s in there, it should work,

Re: [PHP] Basic Authentication

2009-01-14 Thread tedd
At 12:51 PM -0500 1/14/09, Andrew Ballard wrote: On Wed, Jan 14, 2009 at 12:36 PM, Stuart wrote: 2009/1/14 tedd : Let's say that I don't want to use the htpasswd command from the UNIX shell to generate an encoded password -- how else can I create an encoded password string that would wor

Re: [PHP] Basic Authentication

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 12:36 PM, Stuart wrote: > 2009/1/14 tedd : >> Let's say that I don't want to use the htpasswd command from the UNIX shell >> to generate an encoded password -- how else can I create an encoded password >> string that would work in a .htaccess file using basic authentication

Re: [PHP] Basic Authentication

2009-01-14 Thread Stuart
2009/1/14 tedd : > Let's say that I don't want to use the htpasswd command from the UNIX shell > to generate an encoded password -- how else can I create an encoded password > string that would work in a .htaccess file using basic authentication? AFAIK it's an MD5 hash, nothing more complicated th

[PHP] Basic Authentication

2009-01-14 Thread tedd
Hi gang: Let's say that I don't want to use the htpasswd command from the UNIX shell to generate an encoded password -- how else can I create an encoded password string that would work in a .htaccess file using basic authentication? Cheers, tedd -- --- http://sperling.com http://anci

[PHP] Basic Authentication with IIS

2002-01-23 Thread SpamSucks86
With apache, you can easily match up a L/P to an htpasswd file. With IIS, the user has to be created as the windows level. I'm moving a site from an apache server to an IIS server, and need to figure out an easy way to do basic authentication. I guess putting a chunk of code at the top of every sc