Active Directory Authentication problem with ppp
hello all, I am always getting this error, when I am trying to authenticate user against Active Directory ad_recv: Access-Request packet from host 127.0.0.1 port 54512, id=249, length=151 Service-Type = Framed-User Framed-Protocol = PPP User-Name = "harry" MS-CHAP-Challenge = 0x7437d73ff6b61e500d046b77a88ecf34 MS-CHAP2-Response = 0x3f0098a0a16cb193cbb58c495977aa125765000000000000000073a5f468c08966d100e3963f8763bcb764d450f23800cade Calling-Station-Id = "192.168.1.1" NAS-IP-Address = 192.168.2.3 NAS-Port = 0# Executing section authorize from file /etc/raddb/sites-enabled/default+- entering group authorize {...}++[preprocess] returns ok++[chap] returns noop[mschap] Found MS-CHAP attributes. Setting 'Auth-Type = mschap'++[mschap] returns ok++[digest] returns noop[suffix] No '@' in User-Name = "harry", looking up realm NULL[suffix] No such realm "NULL"++[suffix] returns noop[eap] No EAP-Message, not doing EAP++[eap] returns noop[files] users: Matched entry DEFAULT at line 172++[files] returns ok++[expiration] returns noop++[logintime] returns noop[mschap] No Cleartext-Password configured. Cannot create LM-Password.[mschap] No Cleartext-Password configured. Cannot create NT-Password.[mschap] Creating challenge hash with username: harry[mschap] Told to do MS-CHAPv2 for harry with NT-Password[mschap] FAILED: No NT/LM-Password. Cannot perform authentication.[mschap] FAILED: MS-CHAP2-Response is incorrect Pacakages I have installed.samba.x86_64samba-client.x86_64samba-common.x86_64 samba-winbind.x86_64 samba-winbind-clients.x86_64 freeradius.x86_64radiusclient-ng-0.5.6-5.el6.x86_64 My /etc/pptp/option.pptpd is : name pptpdrefuse-paprefuse-chaprefuse-mschaprequire-mschap-v2require-mppe-128ms-dns 10.1.1.1proxyarpdebuglocknobsdcompnovjnovjccompnologfdauthnodefaultrouteplugin winbind.so#ntlm_auth-helper "/usr/bin/ntlm_auth --helper-protocol=ntlm-server-1"plugin radius.soplugin radattr.so And in /etc/radd/modules/mschap i have following mschap { use_mppe = yes require_encryption =yes require_strong = yes #with_ntdomain_hack = yesntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{Stripped-User-Name:-%{User-Name:-none}} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}"} AD connection is working well, if I do wbinfo -u it returns users from the AD. Both samba, nmb and winbind services are running. If I use only winbind without radius plugin it work but when I try to use radius plugin it complains the error I mentioned above. I have following this :http://wiki.freeradius.org/PopTop#Setting-up-the-Poptop-server and this one :http://www.members.optushome.com.au/~wskwok/poptop_ads_howto_8.htm All I am doing here is have a pptp server use radius and Active directory for authentication. I use freeraius so that I can do IP pool and other stuff. Any help or right direction would be great.
madal 30 wrote:
I am always getting this error, when I am trying to authenticate user against Active Directory
No, you're not.
[mschap] No Cleartext-Password configured. Cannot create LM-Password. [mschap] No Cleartext-Password configured. Cannot create NT-Password. [mschap] Creating challenge hash with username: harry [mschap] Told to do MS-CHAPv2 for harry with NT-Password [mschap] FAILED: No NT/LM-Password. Cannot perform authentication. [mschap] FAILED: MS-CHAP2-Response is incorrect
You didn't configure the mschap module to use ntlm_auth.
Pacakages I have installed.
That is useless information.
My /etc/pptp/option.pptpd is :
As is that.
And in /etc/radd/modules/mschap i have following mschap { use_mppe = yes require_encryption =yes require_strong = yes #with_ntdomain_hack = yes ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{Stripped-User-Name:-%{User-Name:-none}} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}" }
Well, the server isn't using that configuration. Go read the debug output to figure out why. Odds are you have TWO instances of the mschap module defined. Go fix that. Alan DeKok.
Thanks Alan, Now it is working as I wanted. It feels good when things works after trying trying and trying :)
Date: Fri, 6 Jul 2012 11:36:18 -0400 From: aland@deployingradius.com To: freeradius-users@lists.freeradius.org Subject: Re: Active Directory Authentication problem with ppp
madal 30 wrote:
I am always getting this error, when I am trying to authenticate user against Active Directory
No, you're not.
[mschap] No Cleartext-Password configured. Cannot create LM-Password. [mschap] No Cleartext-Password configured. Cannot create NT-Password. [mschap] Creating challenge hash with username: harry [mschap] Told to do MS-CHAPv2 for harry with NT-Password [mschap] FAILED: No NT/LM-Password. Cannot perform authentication. [mschap] FAILED: MS-CHAP2-Response is incorrect
You didn't configure the mschap module to use ntlm_auth.
Pacakages I have installed.
That is useless information.
My /etc/pptp/option.pptpd is :
As is that.
And in /etc/radd/modules/mschap i have following mschap { use_mppe = yes require_encryption =yes require_strong = yes #with_ntdomain_hack = yes ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --username=%{Stripped-User-Name:-%{User-Name:-none}} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}" }
Well, the server isn't using that configuration. Go read the debug output to figure out why.
Odds are you have TWO instances of the mschap module defined. Go fix that.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Alan DeKok -
madal 30