LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-01-2012, 05:28 PM   #1
daftTrunk
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
[NTLM] Authentication error with mod_auth_ntlm_winbind on Apache server


Hello,

I have trouble setting up SSO on an apache server with the mod_auth_ntlm_winbind module.

Apologies for any bad english.

More on the background: Internal website needs seamless authentication (no need to input login/password). Apache server is set up on linux machine. People are accessing the website from windows machines. I looked up on internet and decided to go for mod_auth_ntlm_winbind module. http://adldap.sourceforge.net/wiki/d...authentication

More on the problem: When trying to load pages i am asked for login/password to authenticate (which should not happen since it is supposed to be seamless) and even when providing good login/password the authentication fails.

This is my apache error_log:

[debug] mod_auth_ntlm_winbind.c(1019): [client ip] doing ntlm auth dance
[debug] mod_auth_ntlm_winbind.c(483): [client ip] Launched ntlm_helper, pid ***
[debug] mod_auth_ntlm_winbind.c(653): [client ip] creating auth user
[debug] mod_auth_ntlm_winbind.c(704): [client ip] parsing reply from helper to YR ADSFDDGuhkdsvIHJUGFVGFFBf
[debug] mod_auth_ntlm_winbind.c(742): [client ip] got response: TT TRIOASDFYBTdfDGFTFDsnvudnsofOHGEWCHIFRgf
[debug] mod_auth_ntlm_winbind.c(412): [client ip] sending back RFDTGTRFGTFFHTRTSSSDPKIQSTJHIfdhrsdrferwfeDGFHGFYHN
[debug] mod_auth_ntlm_winbind.c(1019): [client ip] doing ntlm auth dance
[debug] mod_auth_ntlm_winbind.c(485): [client ip] Using existing auth helper 12556
[debug] mod_auth_ntlm_winbind.c(704): [client ip] parsing reply from helper to KK FDHGFHHFHGFdgfqqwdrckinuliFGGERBHYUXEUTO
[debug] mod_auth_ntlm_winbind.c(742): [client ip] got response: NA NT_STATUS_NO_SUCH_USER
[debug] mod_auth_ntlm_winbind.c(766): [client ip] user not authenticated: NT_STATUS_NO_SUCH_USER

I thus went looking into winbindd.log and the attempt of connexion I saw was with following user: "[internalURLofmywebsite]\[loginIprovidedInDialogBox]"

The most worrying is that I don't see any attempt with automticly provided username.(Authentication should be seamless and what I see in winbindd.log is directly linked to the username I entered in the dialog box). Then since there is no link between the url of my website and my ActiveDirectory DOMAIN i understand i have a NT_STATUS_NO_SUCH_USER.

I provided below my different configurations. Any help would be great. My two questions are: how to check an authomatic attempt of authentication was done (or why it doesn't seem to happen for me), and then more generaly, where does the username and domain "comes from" in NTLM SSO?

-ntlm_auth --helper-protocol=squid-2.5-basic works fine from the command line:

ntlm_auth --helper-protocol=squid-2.5-basic
DOMAIN\myuser myPassword
OK



-I had authorization problem on winbindd_privileged but fixed it with:

chmod 750 /var/run/samba/winbindd_privileged



-Apache httpd.conf (website is in htdocs)

KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<Directory /usr/local/apache2/htdocs>
AllowOverride All
Order allow,deny
Allow from all
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>



-nsswitch

passwd: files winbind
shadow: files winbind
group: files winbind
hosts: files dns

-Samba smb.conf
workgroup = MYDOMAIN
password server = *****
realm = MYDOMAIN.COM
security = ads
allow trusted domains = no
idmap domains = MYDOMAIN
idmap config MYDOMAIN: default = yes
idmap config MYDOMAIN: backend = rid
idmap config MYDOMAIN: range = 16777216-33554431
idmap alloc config: range 16777216-33554431
template shell = /bin/bash
winbind use default domain = true
winbind offline logon = yes


Thanks a lot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTLM authentication PHP sci3ntist Programming 1 05-20-2010 08:52 PM
Apache mod_auth_ntlm_winbind - need a way to restrict to AD groups z-man5 Linux - Server 6 03-27-2009 03:57 PM
Squid NTLM authentication stevehh Linux - Networking 0 02-06-2007 10:06 AM
NTLM authentication. TheRealDeal Linux - Networking 4 10-12-2006 07:36 PM
Squid and NTLM Authentication codedv Linux - Networking 5 07-16-2006 03:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration