Jump to content

Apache & NTLM / Windows Domain Auto-Login


labmixz

Recommended Posts

I really hate this...

 

Usually when I get someone asking for an auto-login using Active Direction based on the user whom is logged into that computer, I usually make sure their web-server is IIS, because I can never seem to get Apache working with this...

 

Granted, I can get Apache / PHP to do a LDAP query and check for the username / password, all that works fine, however, the user is prompted for the username/password... I tried using the old apache_ntlm mod, which is out-dated for the most recent stable build of apache, so that doesn't help much... but either way I've tried that mod a year ago and it didn't work then and doesn't work now... it allows you to prompt the user for a username / password and then authenticate, but I can do that on my own without an apache mod...

 

Does anyone know how (if possible) to get an Apache mod that will check the currently logged on user of the domain within Windows, then (ie: they are already logged on to the domain) then pass that user variable to the php $_SERVER['REMOTE_USER']; or even the $_SERVER['PHP_AUTH_USER']; -- either will work... I just can't have the user being prompted for a username/password.

 

Right now my other solution is a horrid one... to have one IIS server basically as a "gateway" which the sole purpose of it is to authenticate the logged in user, then pass the variables to the Apache server. I have to do this because they have other things setup that absolutely will not work in IIS... (mods and addons to Apache)

 

Any help would be much appreciated.

 

Thanks,

Henry

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.