[support] webserver_auth
Jamie Holly
hovercrafter at earthlink.net
Mon Nov 30 19:27:12 UTC 2009
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 at evergreen.edu <mailto:metzlerd at 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 at drupal.org
> <mailto:support-bounces at drupal.org>
> [mailto:support-bounces at drupal.org
> <mailto:support-bounces at drupal.org>] *On Behalf Of *Néstor
> *Sent:* Monday, November 30, 2009 8:43 AM
> *To:* support at drupal.org <mailto:support at drupal.org>;
> drupal at lists.nyphp.org <mailto:drupal at 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/ ]
>
>
More information about the support
mailing list