Hi,

I'm having trouble getting the module to work. I assume it's just me that have misconfigured something, but I can't seem to figure out what it is.
I'm hosting Apache 2.2 on a RHEL 6.7 server with Drupal 7.37. I've configured NTLM so that I can contact our Microsoft Active Directory. I've checked that it works by running the #wbinfo -u command, which returns our AD users, so I assume that NTLM is working. I use the Simple LDAP module to create the AD integration with the site, and it works just fine, the users can login with their AD accounts without any troubles.
I've enabled all the options in the webserver_auth module (though I've tried many combinations of the options), and I've entered our Email domain. Nothing is entered in the Login URL & Logout URL.
Now, when I go to my site nothing happens (even though I'm accessing the site from a PC & user that's knows by our AD) if I try to login normally, it just redirects me to the home page, and I stay as the anonymous user.
I've tried in IE, FF and Chrome.

This is my first post on drupal.org, so please tell me if the topic is placed wrongly, or if I need to write more info.

Sincerely Emil.

Comments

Emil8250 created an issue. See original summary.

Emil8250’s picture

Oh, and I can add that Kerberos is also configured and working.
If I execute #kinit - V It prompts for a password for the currently logged in AD account, and replies with "Authenticated to Kerberos v5.

gaards’s picture

Do you have any errors in admin/reports/dblog? Have you tried inserting values in the Login and Logout URLs (for example: front page url in both)? Did you try to login with an account that doesn't exist in Drupal?

Emil8250’s picture

I'll check The logs tommorow, and upload Them.

I'm not sure what I'm supposed to insert into The URL's? I've tried to go to The URL's, and try to login, but I get access denied.

And yes, I've tried both existing and non existing accounts.

Thanks for your time!

Emil8250’s picture

Okay, I've tried to insert values into the Login and logout URL's, but that didn't change anything.
When I check the logs at admin/reports/dblog, I don't get any new entries when I access the login url (or the front page). This is the case if I access it with a known drupal user, or with an unknown user.
Oh, and for the record, I'm binding to the AD with an account that only have read access to the AD, but I don't assume that's a problem, as I don't need to make AD changes?

gaards’s picture

Do you have code like this in your Apache virtualhost configuration file for your site, or in your Drupal .htaccess?

AuthType NTLM
require valid-user

Without this webserver_auth won't work because authentication isn't delegated to the web server.

There is also a page on NTML authentication here on drupal.org: https://www.drupal.org/node/44718

Emil8250’s picture

Hmm, I don't recall configuring anything NTLM related in my virtualhost config file (I don't use the .htaccess file), I really hope that this is what's causing me such troubles. I'll check it as the first thing tomorrow!

Emil8250’s picture

I had this in my httpd.conf file:

<Directory "/var/www/auth">
  AuthName "NTLM Authentication thingy"
  NTLMAuth on
  NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
  NTLMBasicAuthoritative on
  AuthType NTLM
  require valid-user
</Directory>

I tried adding this:

<Directory "/var/www/html">
  AuthName "NTLM Authentication thingy"
  NTLMAuth on
  NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
  NTLMBasicAuthoritative on
  AuthType NTLM
  require valid-user
</Directory>

As I have my site in the root (/var/www/html). This just gave me an internal Error.
I read somewhere that KeepAlive is default Off on fedora based distros, so I enabled that, and added:

<Files ntlmsso_magic.php>
...
</Files>

to my Directory scope.
Now I'm able to access the site, but I still can't login. And there's still no new log entries.
When this didn't work, I tried following the guide you linked, and installed the AuthenNTLM module for apache, and the perl_mod.
Still this didn't make any changes...

Emil8250’s picture

I fixed the issue by using Kerberos authentication, and then use the right keytab...

Emil8250’s picture

Status: Active » Closed (works as designed)