Connecting Tech Pros Worldwide Help | Site Map

Send User Name and Password to the Intranet Site??

LeoTD's Avatar
Newbie
 
Join Date: Oct 2007
Posts: 14
#1: Nov 12 '07
Dear all,
I have intranet site on Linux server using PHP where only people who have account can log in.
My site has a link to another intranet side on IIS using PHP. This site using Web authentication which IIS supported.
I want to deploy Single Sign On between them. It means when I login in PHP site, and click link to ASP site, i will login success in ASP site pass through authentication pop up windows. I am confused in the part where I have to send user name and password to open site in the browser without it asking for credentials in pop up window.

Can you help please??
Leo
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,439
#2: Nov 12 '07

re: Send User Name and Password to the Intranet Site??


Quote:

Originally Posted by LeoTD

Dear all,
I have intranet site on Linux server using PHP where only people who have account can log in.
My site has a link to another intranet side on IIS using PHP. This site using Web authentication which IIS supported.
I want to deploy Single Sign On between them. It means when I login in PHP site, and click link to ASP site, i will login success in ASP site pass through authentication pop up windows. I am confused in the part where I have to send user name and password to open site in the browser without it asking for credentials in pop up window.

Can you help please??

Leo

You'll have to post the code if you expect anyone to figure out what's wrong with it.
LeoTD's Avatar
Newbie
 
Join Date: Oct 2007
Posts: 14
#3: Nov 12 '07

re: Send User Name and Password to the Intranet Site??


Quote:

Originally Posted by ajaxrand

You'll have to post the code if you expect anyone to figure out what's wrong with it.

Dear ajaxrand,

I forgot give you my code. Sorry about that.
I try send username and pass through header but it not work. Here is my code:
Expand|Select|Wrap|Line Numbers
  1.  $auth=base64_encode($user.":".$pass);
  2.  $action = 'https://www.asp.com/index.asp'; 
  3.  header("Authorization: Basic $auth\r\n\r\n");
  4.  header("Location:".$action);
  5.  
If you have another solution please show me.
Thanks,
Leo
Reply