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
Comment #2
Emil8250 commentedOh, 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.
Comment #3
gaards commentedDo 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?
Comment #4
Emil8250 commentedI'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!
Comment #5
Emil8250 commentedOkay, 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?
Comment #6
gaards commentedDo you have code like this in your Apache virtualhost configuration file for your site, or in your Drupal .htaccess?
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
Comment #7
Emil8250 commentedHmm, 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!
Comment #8
Emil8250 commentedI had this in my httpd.conf file:
I tried adding this:
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:
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...
Comment #9
Emil8250 commentedI fixed the issue by using Kerberos authentication, and then use the right keytab...
Comment #10
Emil8250 commented