You are looking to log every visitor to a specific page (example.com/this_page_only) into a specific user (this_user1)? This doesn't sound possible for many reasons. Mainly, security. If you were to do this any privileges given to this_user1 are effectively given to every user. Additionally, I do not believe you can have multiple IPs logged into the same user simultaneously.
Why are you looking to do this? Perhaps together we can come up with a better solution.
Hi DVkid, thanks for answering, first of all i must apologize, my problem is so much bigger, but i only ask for something i need and didn´t explain me better, let see if i can explain myself better without been to extensive ....
I need log my drupal against a Single Sign On server, then i have basically two needs, first, locate the code that do authenticate a user on Drupal and add my own code there (the single sign on auth on the server)
the second sounds more tricky because a user may be logged on the SSO (Single Sign On) server and not logged on Drupal, if so no matter what page he/she ask on the drupal site i will need to check first of all if is logged on the SSO if the answer is yes then some how i need to log the user into the drupal, do you understand me better now?
All code related with interaction with the SSO is already done, just missing the drupal part
A user logs in to your site (via the SSO server) and then attempts to visit a page on your Drupal site. However, they are not logged in on your Drupal site so they get a 403 Forbidden error. What you need to happen is at that point for instead of serving the Forbidden error to the user to instead check your SSO server to see if they are in fact logged in. I am in no way an SSO or Authentication expert but I would suggest perhaps having that code that checks if the user is logged in to the SSO on the custom error page for Forbidden. That way whenever a user calls for a page and they do not have the access privileges to view it then the server checks to see if the SSO server will give them the privileges.
However, check this thread out to see if it sheds any light on it in a manner better than I can. http://drupal.org/node/52824
You get my point very well DVkid, but the forbbiden page did not work for me, because even when he/she request a public page also i need to log him/her in, i know what to do for the auth just don't know where i put my code so i can make the validation every time someone ask for a page ... and my second doubt is how can i log a user throught php code ...
Hi DVkid, thanks for answering, first of all i must apologize, my problem is so much bigger, but i only ask for something i need and didn´t explain me better, let see if i can explain myself better without been to extensive ....
I need log my drupal against a Single Sign On server, then i have basically two needs, first, locate the code that do authenticate a user on Drupal and add my own code there (the single sign on auth on the server)
the second sounds more tricky because a user may be logged on the SSO (Single Sign On) server and not logged on Drupal, if so no matter what page he/she ask on the drupal site i will need to check first of all if is logged on the SSO if the answer is yes then some how i need to log the user into the drupal, do you understand me better now?
All code related with interaction with the SSO is already done, just missing the drupal part
Comments
Let me see if I
Let me see if I understand....
You are looking to log every visitor to a specific page (example.com/this_page_only) into a specific user (this_user1)? This doesn't sound possible for many reasons. Mainly, security. If you were to do this any privileges given to this_user1 are effectively given to every user. Additionally, I do not believe you can have multiple IPs logged into the same user simultaneously.
Why are you looking to do this? Perhaps together we can come up with a better solution.
Hi DVkid, thanks for
Hi DVkid, thanks for answering, first of all i must apologize, my problem is so much bigger, but i only ask for something i need and didn´t explain me better, let see if i can explain myself better without been to extensive ....
I need log my drupal against a Single Sign On server, then i have basically two needs, first, locate the code that do authenticate a user on Drupal and add my own code there (the single sign on auth on the server)
the second sounds more tricky because a user may be logged on the SSO (Single Sign On) server and not logged on Drupal, if so no matter what page he/she ask on the drupal site i will need to check first of all if is logged on the SSO if the answer is yes then some how i need to log the user into the drupal, do you understand me better now?
All code related with interaction with the SSO is already done, just missing the drupal part
Thanks ....
So just to make sure I'm
So just to make sure I'm getting this...
A user logs in to your site (via the SSO server) and then attempts to visit a page on your Drupal site. However, they are not logged in on your Drupal site so they get a 403 Forbidden error. What you need to happen is at that point for instead of serving the Forbidden error to the user to instead check your SSO server to see if they are in fact logged in. I am in no way an SSO or Authentication expert but I would suggest perhaps having that code that checks if the user is logged in to the SSO on the custom error page for Forbidden. That way whenever a user calls for a page and they do not have the access privileges to view it then the server checks to see if the SSO server will give them the privileges.
However, check this thread out to see if it sheds any light on it in a manner better than I can.
http://drupal.org/node/52824
Also, have you seen this?
http://drupal.org/project/cas
You get my point very well
You get my point very well DVkid, but the forbbiden page did not work for me, because even when he/she request a public page also i need to log him/her in, i know what to do for the auth just don't know where i put my code so i can make the validation every time someone ask for a page ... and my second doubt is how can i log a user throught php code ...
very thankfull, Damian ....
Same problem
Hi,
I have the same problem and would like to know if anyone could point me to the right direction, please.
Or, damianrr, did you wangle it yourself?
Any hints welcome.
Thanks and regards, Phil
Hi DVkid, thanks for
Hi DVkid, thanks for answering, first of all i must apologize, my problem is so much bigger, but i only ask for something i need and didn´t explain me better, let see if i can explain myself better without been to extensive ....
I need log my drupal against a Single Sign On server, then i have basically two needs, first, locate the code that do authenticate a user on Drupal and add my own code there (the single sign on auth on the server)
the second sounds more tricky because a user may be logged on the SSO (Single Sign On) server and not logged on Drupal, if so no matter what page he/she ask on the drupal site i will need to check first of all if is logged on the SSO if the answer is yes then some how i need to log the user into the drupal, do you understand me better now?
All code related with interaction with the SSO is already done, just missing the drupal part
Thanks ....