autentication against active directory does not work
hey there i have a trouble in my freeradius im trying to autenticate user to active directory there is my config at http://pastebin.ca/1205169 any help ? regards
luis a wrote:
hey there i have a trouble in my freeradius im trying to autenticate user to active directory
there is my config
Perhaps part of the problem is that the documentation says very clearly what to do: run the server in debugging mode. There's no point in looking at the configuration you posted. We need the output of "radiusd -X". This requirement is in the FAQ, README, INSTALL, and nearly daily on this list. Alan DeKok.
--- El vie, 19/9/08, Alan DeKok <aland@deployingradius.com> escribió: De: Alan DeKok <aland@deployingradius.com> Asunto: Re: autentication against active directory does not work Para: luis.azunet@yahoo.es, "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Fecha: viernes, 19 septiembre, 2008 5:42 luis a wrote:
hey there i have a trouble in my freeradius im trying to autenticate user to active directory
there is my config
Perhaps part of the problem is that the documentation says very clearly what to do: run the server in debugging mode. i have read allready the documentation at http://deployingradius.com/documents/configuration/active_directory.html my freeradius debug is pasted at http://pastebin.ca/1206001 regards .. Luis There's no point in looking at the configuration you posted. We need the output of "radiusd -X". This requirement is in the FAQ, README, INSTALL, and nearly daily on this list. Alan DeKok.
Don't CC me on messages you send to the list. I *do* read the list, in case you didn't know. luis a wrote:
my freeradius debug is pasted at
Perhaps you could try reading it. It contains information about what's going wrong, and suggestions for how to fix it. You've also edited the default configurations, and broken the server. You've also edited the configuration files so that it's *not* doing authentication against active directory. Read the instructions on my web page (deployingradius.com) for a step by step guide to configuring Active Directory for authentication. Alan DeKok.
i have read allready the documentation at http://deployingradius.com/documents/configuration/active_directory.html
Read it again.
my freeradius debug is pasted at
1. You are using an outdated version of the server which has a default entry in users file setting Auth-Type Sistem if all else fails. Upgrade or at least comment that out since you have removed "unix" from the configuration. 2. Read the obvious WARNING in the debug and fix that. 3. You have configured AD integration (ntlm_auth) in mschap module. And then sent pap request. No wonder it's not working. Send mschap requests. Ivan Kalik Kalik Informatika ISP
Have you verified that Samba was joined to your domain successfully using wbinfo -t? You should see " checking the trust secret via RPC calls succeeded" If that is successful try: [root@ras ~]# ntlm_auth --username your_user --password users_password --domain your_ad_domain --request-nt-key Should see: NT_STATUS_OK: Success (0x0) If the two steps above aren't successful you will need to correct those issues first before proceeding. In the mschap module my ntlm_auth configuration is as follows: ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --domain=%{mschap:NT-Domain} --username=%{mschap:User-Name} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}" Good luck. -----Original Message----- From: freeradius-users-bounces+kevin.smith=emp.shentel.com@lists.freeradius.or g [mailto:freeradius-users-bounces+kevin.smith=emp.shentel.com@lists.freer adius.org] On Behalf Of tnt@kalik.net Sent: Friday, September 19, 2008 3:40 PM To: freeradius-users@lists.freeradius.org Subject: Re: autentication against active directory does not work
i have read allready the documentation at http://deployingradius.com/documents/configuration/active_directory.htm l
Read it again.
my freeradius debug is pasted at
1. You are using an outdated version of the server which has a default entry in users file setting Auth-Type Sistem if all else fails. Upgrade or at least comment that out since you have removed "unix" from the configuration. 2. Read the obvious WARNING in the debug and fix that. 3. You have configured AD integration (ntlm_auth) in mschap module. And then sent pap request. No wonder it's not working. Send mschap requests. Ivan Kalik Kalik Informatika ISP - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
thanks --------------------------------- radtest luis x 127.0.0.1 0 123 Sending Access-Request of id 189 to 127.0.0.1 port 1812 User-Name = "luis" User-Password = "x" NAS-IP-Address = 255.255.255.255 NAS-Port = 0 rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=189, length=20 rad_verify: Received Access-Reject packet from client 127.0.0.1 port 1812 with invalid signature (err=2)! (Shared secret is incorrect.) that means that i need to config nas server ? or do i need to config one more line in radiusd.conf ? or means that account does not har ras access ? now im receiving this rad_recv: Access-Request packet from host 127.0.0.1:44072, id=189, length=72 User-Name = "luis" User-Password = "\324\322pv\373m\025\215d\005|j\230Ys,\271\323\014\344\234>^\206\270\335\305S\343\347>D" NAS-IP-Address = 255.255.255.255 NAS-Port = 0 Processing the authorize section of radiusd.conf modcall: entering group authorize for request 0 modcall[authorize]: module "preprocess" returns ok for request 0 modcall[authorize]: module "chap" returns noop for request 0 modcall[authorize]: module "mschap" returns noop for request 0 rlm_realm: No '@' in User-Name = "luis", looking up realm NULL rlm_realm: No such realm "NULL" modcall[authorize]: module "suffix" returns noop for request 0 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module "eap" returns noop for request 0 users: Matched entry DEFAULT at line 152 modcall[authorize]: module "files" returns ok for request 0 modcall: leaving group authorize (returns ok) for request 0 rad_check_password: Found Auth-Type System auth: type "System" ERROR: Unknown value specified for Auth-Type. Cannot perform requested action. auth: Failed to validate the user. WARNING: Unprintable characters in the password. ? Double-check the shared secret on the server and the NAS! Delaying request 0 for 1 seconds Finished request 0 Going to the next request --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Sending Access-Reject of id 189 to 127.0.0.1 port 44072 Waking up in 4 seconds... ------------------------------- --- El vie, 19/9/08, Kevin Smith <Kevin.Smith@emp.shentel.com> escribió: De: Kevin Smith <Kevin.Smith@emp.shentel.com> Asunto: RE: autentication against active directory does not work Para: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Fecha: viernes, 19 septiembre, 2008 8:07 Have you verified that Samba was joined to your domain successfully using wbinfo -t? You should see " checking the trust secret via RPC calls succeeded" If that is successful try: [root@ras ~]# ntlm_auth --username your_user --password users_password --domain your_ad_domain --request-nt-key Should see: NT_STATUS_OK: Success (0x0) If the two steps above aren't successful you will need to correct those issues first before proceeding. In the mschap module my ntlm_auth configuration is as follows: ntlm_auth = "/usr/bin/ntlm_auth --request-nt-key --domain=%{mschap:NT-Domain} --username=%{mschap:User-Name} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}" Good luck. -----Original Message----- From: freeradius-users-bounces+kevin.smith=emp.shentel.com@lists.freeradius.or g [mailto:freeradius-users-bounces+kevin.smith=emp.shentel.com@lists.freer adius.org] On Behalf Of tnt@kalik.net Sent: Friday, September 19, 2008 3:40 PM To: freeradius-users@lists.freeradius.org Subject: Re: autentication against active directory does not work
i have read allready the documentation at http://deployingradius.com/documents/configuration/active_directory.htm l
Read it again.
my freeradius debug is pasted at
1. You are using an outdated version of the server which has a default entry in users file setting Auth-Type Sistem if all else fails. Upgrade or at least comment that out since you have removed "unix" from the configuration. 2. Read the obvious WARNING in the debug and fix that. 3. You have configured AD integration (ntlm_auth) in mschap module. And then sent pap request. No wonder it's not working. Send mschap requests. Ivan Kalik Kalik Informatika ISP - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi,
now im receiving this
<edit>
ERROR: Unknown value specified for Auth-Type. Cannot perform requested action. auth: Failed to validate the user. WARNING: Unprintable characters in the password. ? Double-check the shared secret on the server and the NAS!
<snip!> you are still having a shared secret problem. double check your clients.conf file (where the NAS secret is for FreeRADIUS end) and then check the value you've put on your NAS alan
radtest luis x 127.0.0.1 0 123
Default shared secret for localhost is testing123, not 123. That will take care of:
WARNING: Unprintable characters in the password. ? Double-check the >shared secret on the server and the NAS!
radtest sends a pap request. You want to test mschap. You can set up a real NAS or use something like JRadius Simulator.
or do i need to config one more line in radiusd.conf ?
You can configure ntlm_auth as an authentication script that will run on pap requests. It will be more than one line. You will need to create Auth-Type for it and then force it if all else fails. Not straightforward.
or means that account does not har ras access ?
You haven't reached AD yet. Ivan Kalik Kalik Informatika ISP
participants (5)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Kevin Smith -
luis a -
tnt@kalik.net