FW: Free Radius & Cisco
Hi, Thanks for Free Radius - I'm confident it will be just what we need. I have set it up on a Dell DL360 G5 running CentOS 2.3 and created simple clients.conf, raddb.conf and users files. Radtest and logins from a couple of clients are working well. However, when I try to move up from the absolute basics, e.g. to give my user who telnets to a Cisco switch an enabled priveledge leval it just doesn't work: the user logons OK but is still at the plain command prompt. I'm sure it's something simple I've missed and I'd be grateful if you could give me any pointers. I've looked through the mailing-list archive, and although one question is exactly the same Freeradius and Cisco (cisco-avpair = "shell:priv-lvl=15" doesn't work) I seem to have everything they have suggested in the answers? Thanks in advance for your help. Regards, Ian Here are some cuts from various files: Switch Config aaa authentication login nocusers group radius aaa authorization exec nocusers group radius aaa session-id common radius-server host 10.210.27.4 auth-port 1645 acct-port 1646 radius-server source-ports 1645-1646 line vty 0 4 exec-timeout 60 0 login authentication nocusers users dan Cleartext-Password := "password" Reply-Message = "Hello, %{User-Name}", Service-Type = Administrative-user, cisco-avpair = "shell:priv-lvl=15" ipj Cleartext-Password := "password" Reply-Message = "Hello, %{User-Name}", Service-Type = NAS-Prompt-User, cisco-avpair = "shell:priv-lvl=15" I also tried: dan Cleartext-Password := "password", Service-Type = Administrative-user, cisco-avpair = "shell:priv-lvl=15" Reply-Message = "Hello, %{User-Name}", Service-Type = Administrative-user, and dan Cleartext-Password := "password" Reply-Message = "Hello, %{User-Name}", Service-Type = "Administrative-user", # and Shell-user, and login and a few other things !-( cisco-avpair = "shell:priv-lvl=15" the login failed with the first alternate and logged on as a plain user on the second. Snips from radiusd -X output Sending Access-Accept of id 42 to 10.210.27.2 port 1645 Reply-Message = "Hello, ipj" Service-Type = NAS-Prompt-User Cisco-AVPair = "shell:priv-lvl=15" Sending Access-Accept of id 43 to 10.210.27.2 port 1645 Reply-Message = "Hello, dan" Service-Type = Administrative-User Cisco-AVPair = "shell:priv-lvl=15" Output from radtest [root@radius1 raddb]# radtest dan password radius1:1645 0 testing123 Sending Access-Request of id 33 to 10.210.27.4 port 1645 User-Name = "dan" User-Password = "password" NAS-IP-Address = 10.210.27.4 NAS-Port = 0 rad_recv: Access-Request packet from host 10.210.27.4 port 32770, id=33, length=55 User-Name = "dan" User-Password = "password" NAS-IP-Address = 10.210.27.4 NAS-Port = 0 +- entering group authorize {...} ++[preprocess] returns ok ++[chap] returns noop ++[mschap] returns noop [suffix] No '@' in User-Name = "dan", looking up realm NULL [suffix] No such realm "NULL" ++[suffix] returns noop [eap] No EAP-Message, not doing EAP ++[eap] returns noop ++[unix] returns notfound [files] users: Matched entry dan at line 11 [files] expand: Hello, %{User-Name} -> Hello, dan ++[files] returns ok ++[expiration] returns noop ++[logintime] returns noop ++[pap] returns updated Found Auth-Type = PAP +- entering group PAP {...} [pap] login attempt with password "password" [pap] Using clear text password "password" [pap] User authenticated successfully ++[pap] returns ok Login OK: [dan] (from client radius1 port 0) +- entering group post-auth {...} ++[exec] returns noop Sending Access-Accept of id 33 to 10.210.27.4 port 32770 Service-Type = Administrative-User Cisco-AVPair = "shell:priv-lvl=15" Reply-Message = "Hello, dan" Finished request 2. Going to the next request rad_recv: Access-Accept packet from host 10.210.27.4 port 1645, id=33, length=63 Waking up in 4.9 seconds. Service-Type = Administrative-User Cisco-AVPair = "shell:priv-lvl=15" Reply-Message = "Hello, dan" [root@radius1 raddb]# Cleaning up request 2 ID 33 with timestamp +62 Ready to process requests.
Does this linux version come with FreeRadius? Is this a recommended Linux for FreeRadius? Rgrds, Alex
Site Data and DocumentationYes, but good to check updated version from freeradius website. Most diastros have older versions of software compiled ----- Original Message ----- From: Alex Bahoor To: 'FreeRadius users mailing list' Sent: Thursday, December 03, 2009 2:13 AM Subject: FREERADIUS AND opensource suse 11.2 Does this linux version come with FreeRadius? Is this a recommended Linux for FreeRadius? Rgrds, Alex __________ Information from ESET NOD32 Antivirus, version of virus signature database 4656 (20091202) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ________________________________________________________________ 5 free Domains with Select Hosting Plans. Get yours! com net org info us name biz cc tv ws mobi ------------------------------------------------------------------------------ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html __________________________________________________ Buy a domain : http://www.1and1.com/?k_id=25085883
On 12/02/2009 07:13 PM, Alex Bahoor wrote:
Does this linux version come with FreeRadius?
Is this a recommended Linux for FreeRadius?
I can't speak for suse but Fedora always has current versions of FreeRADIUS. -- John Dennis <jdennis@redhat.com> Looking to carve out IT costs? www.redhat.com/carveoutcosts/
participants (4)
-
Alex Bahoor -
Charles -
John Dennis -
Johnston, Ian