Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with 2 class user type.

Hi All,

I have ACS 5.2 and JUNOS 10.6.x  I setup 2  classes eng-class and ops-class  with read/write and read-only permission

here is my configuration on JUNOS

set system login class eng-class idle-timeout 15

set system login class eng-class permissions all

set system login user engineer full-name “Regional-Engineering”

set system login user engineer uid 2001

set system login user engineer class eng-class

set system login user engineer authentication plain-text-password xxxxxxx

set system login class ops-class idle-timeout 15

set system login class ops-class permissions [ view view-configuration ]

set system login user operator full-name “Regional-Operations”

set system login user operator uid 2002

set system login user operator class ops-class

set system login user operator authentication plain-text-password xxxxxxx

set system authentication-order tacplus password

set system tacplus-options no-cmd-attribute-value

set system tacplus-server xxxx.xxx.xxx.xxx secret xxxxxxxx

set system tacplus-server xxx.xxx.xxx.xxx timeout 5

set system tacplus-server xxx.xxx.xxx.xxx source-address xxx.xxx.xxx.

set system accounting events login

set system accounting events change-log

set system accounting events interactive-commands

set system accounting destination tacplus server xxx.xxx.xxx.xxx secret xxxxxxx

set system accounting destination tacplus server xxxx.xxx.xxx.xxx timeout 5

ACS   5.2

shell profile

junos-eng

attribute=local-user-name

value=engineer

junos-ops

attribute=local-user-name

value=operator

I have 2 separate Authorization policies for engineer and operator group.

Result,

1.  engineering group is working fine.

2.  the operator group its not working im unable to login to device under this group "authentication failed" but on the ACS logs its successfully authenticated.

3.  Web authentication is not also working for bot group.

Any advice?

rgds,

Marlon

thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Marlon,

Did you try sending back the class attribute itself instead of sending back the role attribute. I tried to look around for any tacacs examples from Juniper side and I do not see anything that appears with an attribute named "value" I do see a few references for the class attribute.

Here looks to be a set of attributes you can use in the junos 10.0 guide for remote authentication:

http://www.juniper.net/techpubs/en_US/junos10.0/information-products/topic-collections/config-guide-system-basics/authentication-user-remote-template-account-configuring.html

Can you make the changes and see if this works:

junos-eng

attribute=local-user-name

class=eng-class

junos-ops

attribute=local-user-name

class=ops-class

ALSO...can you see if you can map them straight into the permissions on the ACS side:

http://www.juniper.net/techpubs/en_US/junos10.0/information-products/topic-collections/config-guide-system-basics/access-privileges-levels-overview.html#id-permbit

Thanks,

Thanks,

Tarik Admani
*Please rate helpful posts*

Tarik Admani *Please rate helpful posts*

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Based on reading the article it looks like you will have to set the permissions as the attribute and the list of commands as the value...Try the following "permissions=access" and see if the following holds true...

access

Can view the access configuration in configuration mode using                      the show configuration operational mode command.

Thanks,

Tarik Admani
*Please rate helpful posts*

Tarik Admani *Please rate helpful posts*
14 REPLIES
New Member

Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with 2 c

Hi,

Hope anyone can help me about this problem.

Thanks.

New Member

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Anybody?

Sent from Cisco Technical Support iPad App

Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with 2 c

Marlon,

On your shell profile can you delete all the attributes and try to re-enter them in, I have seen in the past that if there is a leading it will still be sent in the tacacs resposne but will not be present if you revisit the shell profile. Give that a shot and let me know if that helps.

thanks,

Tarik Admani
*Please rate helpful posts*

Tarik Admani *Please rate helpful posts*
New Member

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Hi Tarik Admani,

Thanks for the advice, i have tried this as well and it still not working.

Thanks,

Marlon

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Marlon,

I tried to find some information on configuring tacacs for junos 10.6 but didnt find anything. Do you have a link to the documentation.

Did you create a local role engineer, and operator locally?

Thanks,

Tarik Admani
*Please rate helpful posts*

Tarik Admani *Please rate helpful posts*
New Member

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Hi,

Yes it is local account.

Sent from Cisco Technical Support iPad App

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Marlon,

Did you try sending back the class attribute itself instead of sending back the role attribute. I tried to look around for any tacacs examples from Juniper side and I do not see anything that appears with an attribute named "value" I do see a few references for the class attribute.

Here looks to be a set of attributes you can use in the junos 10.0 guide for remote authentication:

http://www.juniper.net/techpubs/en_US/junos10.0/information-products/topic-collections/config-guide-system-basics/authentication-user-remote-template-account-configuring.html

Can you make the changes and see if this works:

junos-eng

attribute=local-user-name

class=eng-class

junos-ops

attribute=local-user-name

class=ops-class

ALSO...can you see if you can map them straight into the permissions on the ACS side:

http://www.juniper.net/techpubs/en_US/junos10.0/information-products/topic-collections/config-guide-system-basics/access-privileges-levels-overview.html#id-permbit

Thanks,

Thanks,

Tarik Admani
*Please rate helpful posts*

Tarik Admani *Please rate helpful posts*
New Member

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Thanks,

I would like to try the " remote template" and do the restriction in the acs. Do you know how will i able to do it for allow commands and deny commands?

Sent from Cisco Technical Support iPad App

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Based on reading the article it looks like you will have to set the permissions as the attribute and the list of commands as the value...Try the following "permissions=access" and see if the following holds true...

access

Can view the access configuration in configuration mode using                      the show configuration operational mode command.

Thanks,

Tarik Admani
*Please rate helpful posts*

Tarik Admani *Please rate helpful posts*
New Member

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Thanks Tarik Admani,

Here is what i did.

-----using one template for all----

set system login class super-user-local idle-timeout 15

set system login class lsuper-user-local permissions all

set system login user remote full-name “Remote Users”

set system login user remote class super-user-local

in ACS

shell profile for enginineering

junos-admin

attribute=local-user-name

mandatory

value=remote

shell profile for ops

junos-ops

attribute=local-user-name

mandatory

value=remote

attribute=deny-commands

mandatory

value=configure  , list down alos other commands such as set. on a separate attribute. i.e.

attribute=deny-commands

mandatory

value=set

attribute=allow-commands

mandatory

valute=ping,  etc.....

then on my Access policy i have different auhtorization for each group of users which matches on my AD groups.

Thanks Tarik!!

New Member

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Hi,

One thing though is that my web gui login the tacacs doesnt work. only local accounts able to login on my web gui.

any advice.

thanks

marlon

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Do you see the authentication being sent to acs?

Sent from Cisco Technical Support iPad App

Tarik Admani *Please rate helpful posts*
New Member

Re: Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with

Actually that is a good question, no i dont see anything.

marlon

Setting up ACS 5.2 TACACS Authentication with JUNOS fwl with 2 c

HI,

Will this document provide any assistance:

https://www.juniper.net/techpubs/en_US/junos11.2/information-products/topic-collections/security/software-all/initial-config/index.html?topic-55468.html

Thanks,

Tarik Admani
*Please rate helpful posts*

Tarik Admani *Please rate helpful posts*
2677
Views
0
Helpful
14
Replies
CreatePlease to create content