I am using the webserver_auth module with drupal 6.12 / Apache 2.2 in a windows 2003 server to take advantage of the NTLM and Active Directory in windows and automatically sign in the user when they access our local intranet site.
I look at the phpinfo.php page and it knows each different user when I take a look at _SERVER["REMOTE_USER"] and REMOTE_USER
The weird thing is that when I access the site it knows me 'user20'. But when user1 access the site it recognizes 'user1' but when 'user2' or 'user3' or any other user after that access the intranet site, it logs other users as 'user1' I go back and access the intranet site and it still knows me as 'user20'
I have not done anything special to tell drupal that 'user20' is special.
I do not understand, I had this working last month and then I re-installed the module and it is not working now.
PHP knows who the user is but Drupal automatically sign on users as the first 'user1'
The only differences between user20 and any other user is that user20 is the main admin user but why does it treats all other users as the same user?
Any ideas?
Thanks,
Néstor :-)
I'd check session/cookie settings to make sure you understand how long these sessions are supposed to last. It's possible that you're drupal session is outlasting your browser session. Also, verify that this behavior exists even after you explicitly click the logout link in drupal (that should eliminate this as a problem).
webserver_auth doesn't do anything if the user is already logged into drupal, and the default drupal install often leaves you logged in across browser sessions. (Depending on your php.ini settings of course).
________________________________
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Néstor Sent: Monday, November 30, 2009 8:43 AM To: support@drupal.org; drupal@lists.nyphp.org Subject: [support] webserver_auth
I am using the webserver_auth module with drupal 6.12 / Apache 2.2 in a windows 2003 server to take advantage of the NTLM and Active Directory in windows and automatically sign in the user when they access our local intranet site.
I look at the phpinfo.php page and it knows each different user when I take a look at _SERVER["REMOTE_USER"] and REMOTE_USER
The weird thing is that when I access the site it knows me 'user20'. But when user1 access the site it recognizes 'user1' but when 'user2' or 'user3' or any other user after that access the intranet site, it logs other users as 'user1' I go back and access the intranet site and it still knows me as 'user20'
I have not done anything special to tell drupal that 'user20' is special.
I do not understand, I had this working last month and then I re-installed the module and it is not working now.
PHP knows who the user is but Drupal automatically sign on users as the first 'user1'
The only differences between user20 and any other user is that user20 is the main admin user but why does it treats all other users as the same user?
Any ideas?
Thanks,
Néstor :-)
OK, after looking at the problem more I found out thatDrupal knows the user but I have added a block with the following code to display the users name: <?php global $user; if ($user->uid) { print(t('Welcome <b>'));
* print (t($user->name)); * print (t('</b>')); }else { ?> <a href="<?php print base_path() ?>user/" >Log in / register</a> <?php } ?>
the statement "print(t($user->name)); Is the one that is at fault. Some how it displays other users name but when I go to the http://www.drupal/user link the account is the correct user and the block is still displaying someone else.
I will try displaying the _SERVER["REMOTE_USER"]
:-)
On Mon, Nov 30, 2009 at 8:54 AM, Metzler, David metzlerd@evergreen.eduwrote:
I'd check session/cookie settings to make sure you understand how long these sessions are supposed to last. It's possible that you're drupal session is outlasting your browser session. Also, verify that this behavior exists even after you explicitly click the logout link in drupal (that should eliminate this as a problem).
webserver_auth doesn't do anything if the user is already logged into drupal, and the default drupal install often leaves you logged in across browser sessions. (Depending on your php.ini settings of course).
*From:* support-bounces@drupal.org [mailto:support-bounces@drupal.org] *On Behalf Of *Néstor *Sent:* Monday, November 30, 2009 8:43 AM *To:* support@drupal.org; drupal@lists.nyphp.org *Subject:* [support] webserver_auth
I am using the webserver_auth module with drupal 6.12 / Apache 2.2 in a windows 2003 server to take advantage of the NTLM and Active Directory in windows and automatically sign in the user when they access our local intranet site.
I look at the phpinfo.php page and it knows each different user when I take a look at _SERVER["REMOTE_USER"] and REMOTE_USER
The weird thing is that when I access the site it knows me 'user20'. But when user1 access the site it recognizes 'user1' but when 'user2' or 'user3' or any other user after that access the intranet site, it logs other users as 'user1' I go back and access the intranet site and it still knows me as 'user20'
I have not done anything special to tell drupal that 'user20' is special.
I do not understand, I had this working last month and then I re-installed the module and it is not working now.
PHP knows who the user is but Drupal automatically sign on users as the first 'user1'
The only differences between user20 and any other user is that user20 is the main admin user but why does it treats all other users as the same user?
Any ideas?
Thanks,
Néstor :-)
-- [ Drupal support list | http://lists.drupal.org/ ]
I would only wrap the "Welcome" in a t() function, since you won't have translations for things like usernames or HTML tags. Then you could add translations in for Welcome down the road if you wanted. So it would be:
print t('Welcome').' <b>'.$user->name.'</b>;
Jamie Holly http://www.intoxination.net http://www.hollyit.net
Néstor wrote:
OK, after looking at the problem more I found out thatDrupal knows the user but I have added a block with the following code to display the users name:
<?php global $user; if ($user->uid) { print(t('Welcome <b>')); * print (t($user->name)); * print (t('</b>')); }else { ?>
<a href="<?php print base_path() ?>user/" >Log in / register</a>
<?php } ?>
the statement "print(t($user->name)); Is the one that is at fault. Some how it displays other users name but when I go to the http://www.drupal/user link the account is the correct user and the block is still displaying someone else.
I will try displaying the _SERVER["REMOTE_USER"]
:-)
On Mon, Nov 30, 2009 at 8:54 AM, Metzler, David <metzlerd@evergreen.edu mailto:metzlerd@evergreen.edu> wrote:
I'd check session/cookie settings to make sure you understand how long these sessions are supposed to last. It's possible that you're drupal session is outlasting your browser session. Also, verify that this behavior exists even after you explicitly click the logout link in drupal (that should eliminate this as a problem). webserver_auth doesn't do anything if the user is already logged into drupal, and the default drupal install often leaves you logged in across browser sessions. (Depending on your php.ini settings of course). ------------------------------------------------------------------------ *From:* support-bounces@drupal.org <mailto:support-bounces@drupal.org> [mailto:support-bounces@drupal.org <mailto:support-bounces@drupal.org>] *On Behalf Of *Néstor *Sent:* Monday, November 30, 2009 8:43 AM *To:* support@drupal.org <mailto:support@drupal.org>; drupal@lists.nyphp.org <mailto:drupal@lists.nyphp.org> *Subject:* [support] webserver_auth I am using the webserver_auth module with drupal 6.12 / Apache 2.2 in a windows 2003 server to take advantage of the NTLM and Active Directory in windows and automatically sign in the user when they access our local intranet site. I look at the phpinfo.php page and it knows each different user when I take a look at _SERVER["REMOTE_USER"] and REMOTE_USER The weird thing is that when I access the site it knows me 'user20'. But when user1 access the site it recognizes 'user1' but when 'user2' or 'user3' or any other user after that access the intranet site, it logs other users as 'user1' I go back and access the intranet site and it still knows me as 'user20' I have not done anything special to tell drupal that 'user20' is special. I do not understand, I had this working last month and then I re-installed the module and it is not working now. PHP knows who the user is but Drupal automatically sign on users as the first 'user1' The only differences between user20 and any other user is that user20 is the main admin user but why does it treats all other users as the same user? Any ideas? Thanks, Néstor :-) -- [ Drupal support list | http://lists.drupal.org/ ]
Jamie,
I tried as you suggested and it still displays the wrong user. IT will display the first correct user but the second user sees the display of the first users name althought the http://drupal/user link displays the correct user.
How to display the current user?
I will just not display the user name and just have the 'Welcome' . There ius got to be a way to display the user name just like the drupl/user page displays it.
This gave 3 days of trouble until today when I discovered that the problem was the small script I had included in a block.
Thanks,
Néstor :-)
On Mon, Nov 30, 2009 at 11:27 AM, Jamie Holly hovercrafter@earthlink.netwrote:
I would only wrap the "Welcome" in a t() function, since you won't have translations for things like usernames or HTML tags. Then you could add translations in for Welcome down the road if you wanted. So it would be:
print t('Welcome').' <b>'.$user->name.'</b>;
Jamie Holly http://www.intoxination.net http://www.hollyit.net
Néstor wrote:
OK, after looking at the problem more I found out thatDrupal knows the user but I have added a block with the following code to display the users name:
<?php global $user; if ($user->uid) { print(t('Welcome <b>')); * print (t($user->name)); * print (t('</b>')); }else { ?>
<a href="<?php print base_path() ?>user/" >Log in / register</a>
<?php } ?>
the statement "print(t($user->name)); Is the one that is at fault. Some how it displays other users name but when I go to the http://www.drupal/user link the account is the correct user and the block is still displaying someone else.
I will try displaying the _SERVER["REMOTE_USER"]
:-)
On Mon, Nov 30, 2009 at 8:54 AM, Metzler, David <metzlerd@evergreen.edu mailto:metzlerd@evergreen.edu> wrote:
I'd check session/cookie settings to make sure you understand how long these sessions are supposed to last. It's possible that you're drupal session is outlasting your browser session. Also, verify that this behavior exists even after you explicitly click the logout link in drupal (that should eliminate this as a problem). webserver_auth doesn't do anything if the user is already logged into drupal, and the default drupal install often leaves you logged in across browser sessions. (Depending on your php.ini settings of course).
*From:* support-bounces@drupal.org <mailto:support-bounces@drupal.org> [mailto:support-bounces@drupal.org <mailto:support-bounces@drupal.org>] *On Behalf Of *Néstor *Sent:* Monday, November 30, 2009 8:43 AM *To:* support@drupal.org <mailto:support@drupal.org>; drupal@lists.nyphp.org <mailto:drupal@lists.nyphp.org> *Subject:* [support] webserver_auth I am using the webserver_auth module with drupal 6.12 / Apache 2.2 in a windows 2003 server to take advantage of the NTLM and Active Directory in windows and automatically sign in the user when they access our local intranet site. I look at the phpinfo.php page and it knows each different user when I take a look at _SERVER["REMOTE_USER"] and REMOTE_USER The weird thing is that when I access the site it knows me 'user20'. But when user1 access the site it recognizes 'user1' but when 'user2' or 'user3' or any other user after that access the intranet site, it logs other users as 'user1' I go back and access the intranet site and it still knows me as 'user20' I have not done anything special to tell drupal that 'user20' is special. I do not understand, I had this working last month and then I re-installed the module and it is not working now. PHP knows who the user is but Drupal automatically sign on users as the first 'user1' The only differences between user20 and any other user is that user20 is the main admin user but why does it treats all other users as the same user? Any ideas? Thanks, Néstor :-) -- [ Drupal support list | http://lists.drupal.org/ ]-- [ Drupal support list | http://lists.drupal.org/ ]
Does anyone know of a theme that contains a "shuttermenu" like the ones used by the following two sites? I'd really like to implement something similar, but would like to avoid re-inventing the wheel if I can. I know it's done with CSS, but I'm still working my way up the learning ladder.
http://www.countyofsb.org/default.aspx
Thanks very much,
Leslie
Leslie Friesen Polk County Information Systems Friesen.Leslie@co.polk.or.us 503-623-0713
If you mean the "Living" menu on the County of Santabarbara page, check out project Nice Menus.
http://drupal.org/project/nice_menus
You 'd need to override CSS (fix the heights and set a background image in your theme header) but the dropdowns are virtually the same.
Dave
________________________________
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of LESLIE FRIESEN Sent: Monday, November 30, 2009 12:19 PM To: support@drupal.org Subject: [support] theme/menu
Does anyone know of a theme that contains a "shuttermenu" like the ones used by the following two sites? I'd really like to implement something similar, but would like to avoid re-inventing the wheel if I can. I know it's done with CSS, but I'm still working my way up the learning ladder.
http://www.countyofsb.org/default.aspx
Thanks very much,
Leslie
Leslie Friesen Polk County Information Systems Friesen.Leslie@co.polk.or.us 503-623-0713
Hi Leslie,
Not quite sure what you mean by "shuttermenu". Those look like very simple "drop-down" menus.
There are a few modules in Drupal that do that in addition to some themes coming with that functionality.
Check out the "Nice Menus" module. http://drupal.org/project/nice_menus Best,
Shai
On Mon, Nov 30, 2009 at 3:19 PM, LESLIE FRIESEN < FRIESEN.LESLIE@co.polk.or.us> wrote:
Does anyone know of a theme that contains a "shuttermenu" like the ones used by the following two sites? I'd really like to implement something similar, but would like to avoid re-inventing the wheel if I can. I know it's done with CSS, but I'm still working my way up the learning ladder.
http://www.countyofsb.org/default.aspx
Thanks very much,
Leslie
Leslie Friesen Polk County Information Systems Friesen.Leslie@co.polk.or.us 503-623-0713
-- [ Drupal support list | http://lists.drupal.org/ ]
Do you mean the way the drop-downs cover the image? Setting the height via css to a Nice Menus style dropdown should do it. -Don-
_____
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of LESLIE FRIESEN Sent: Monday, November 30, 2009 3:19 PM To: support@drupal.org Subject: [support] theme/menu
Does anyone know of a theme that contains a "shuttermenu" like the ones used by the following two sites? I'd really like to implement something similar, but would like to avoid re-inventing the wheel if I can. I know it's done with CSS, but I'm still working my way up the learning ladder.
http://www.countyofsb.org/default.aspx
Thanks very much,
Leslie
Leslie Friesen Polk County Information Systems Friesen.Leslie@co.polk.or.us 503-623-0713
Thank you to all that answered with suggestions. I'm going to give the nice_menu module a try....and for those of you that offered private assistance, as soon as I've got something tangible for you to look at, I would love your opinion and suggestions!
Thanks again,
Leslie
On 11/30/2009 at 12:19 PM, in message 4B13B845.2EB7.00F4.3@co.polk.or.us, "LESLIE FRIESEN" FRIESEN.LESLIE@co.polk.or.us wrote:
Does anyone know of a theme that contains a "shuttermenu" like the ones used by the following two sites? I'd really like to implement something similar, but would like to avoid re-inventing the wheel if I can. I know it's done with CSS, but I'm still working my way up the learning ladder.
http://www.countyofsb.org/default.aspx
Thanks very much,
Leslie
Leslie Friesen Polk County Information Systems Friesen.Leslie@co.polk.or.us 503-623-0713