Hello. My F5 v11.4 and 11.3 devices have tacacs authentication to AD for admin access to gui and terminal. We do however create F5 local users for this to work. So use my MS AD user name and password to login to F5. F5 has tacacs and same username configured. This works. I now want to remove the need for local F5 users and just use remote role groups. Tacacs already use the group(s). I have configured what I believe is the correct remote-role but it doesnt work. Is tehre any test I can run from the F5 to see whether the remote-role is working? Thanks auth remote-role { role-info { My-Admin { attribute “memberOF=cn=Services-Full Access,ou=Sec Grps,ou=Resrc,dc=pc,dc=internal,dc=company,dc=com” console tmsh line-order 1000 role administrator user-partition All } } }
Could it be the Group Name and attrib string memberof need to match exactly? If so the AD group name contain a space and dashes [-]. When I try and enter it in Group Name it errors with 01070088:3: The requested object name (/Common/\My-Admin Full Access\) is invalid.
The AD group name is the same as ABC-Online Services-Full Access
Can you point the BIG-IP to your TACACS server instead and use that kind of authentication/authorization? We have remote role working with TACACS without issue, so I can assist further with that setup.
Hi Cory. I believe the F5 is configured for our tacacs servers. auth tacacs system-auth { accounting send-to-all-servers authentication use-all-servers protocol ip secret xxxxxxxxxxxx servers { 10.10.10.30 10.10.10.202 } service connection }
We then create F5 users which clone the AD usernames. auth user adusername { description “adusername” encrypted-password “!!” partition Common partition-access all role admin shell bash }
If I recall, I think we had to specify PPP as the service in order to get it to work.
This works. We can now login to the F5s using our AD username and password. When we change our AD password, we can use the new password when logging into the F5s. So no Remote Role Groups involved. For various reasons I would like to use groups instead of usernames. So “clone/mirror” AD groups on the F5. That way we just add users to the AD group and the relevant F5 access is available. No need to create F5 users.
So F5 <> tacacs <> AD is all good. Just the Remote Role Groups not working… I suspect it could be because of the AD group name, “ABC-Online Services-Full Access”? When I try and create a remote role group with that name it errors. 01070088:3: The requested object name (/Common/\ABC-Online Services-Full Access\) is invalid.
I know with TACACS the remote role group name must match verbatim the group name in TACACS. Try naming your remote role after the group used in TACACS. Keep in mind the remote role portion is for authorization.
OK, I am using the verbatim group name in TACACS, which seems to be the problem… as per the error. What do I need to do/escape to specify the group name in the group name field? When you say " remote role portion is for authorization", does this mean we can not get rid of the requirement to create F5 users?
Using remote role is the solution to not having to define local users. It moves the authentication and authorization piece to a remote source. It seems the back slash character is the issue. Are you putting that in the group name?
I think we had issues trying to get this to work and it had to do with spaces in the TACACS group name. Just something else to consider.
Hmm ok. I dont put backslashes in. The actual group name doesn’t have any backslashes, just spaces and dashes. I tried to escape them with backslashes e.g. “ABC-Online\ Services-Full\ Access” Is there any way to get these names “in”?
also the attribute contains spaces, but i assume thats less of an issue as its not complaining. got the known comma delimiter i suppose…
Is it possible that you could change the TACACS group name to not contain spaces?
Yeah my first thought too and in any normal case, trivial. In this case its very very painful to even suggest such a change. No problem, I’ll do this first just to eliminate it. Thanks
Always easier said than done. Is it possible to create a new TACACS group without spaces and then just move yourself into that group to test?
Have created new AD groups and configured tacacs accordingly. auth remote-role { role-info { ACS-OLS-Bigip-Admin { attribute “memberOF=cn=ACS-OLS-Bigip-Admin,ou=Secure Groups,ou=Resources,dc=pc,dc=internal,dc=acme,dc=net” console tmsh line-order 1001 role administrator user-partition All } ACS-OLS-Bigip-Readonly { attribute “memberOF=cn=ACS-OLS-Bigip-Readonly,ou=Secure Groups,ou=Resources,dc=pc,dc=internal,dc=acme,dc=net” console tmsh line-order 1000 role guest user-partition All } } } auth remote-user { } auth source { type tacacs } auth tacacs system-auth { accounting send-to-all-servers authentication use-all-servers protocol ip secret *********&*&*&*&*& servers { 10.10.10.10 10.10.10.11 } service connection }
Still cant login with AD users that are members of these groups. From logs Apr 4 15:01:21 lsr-int-dev1-mgmt alert httpd[28202]: pam_unix(httpd:account): could not identify user (from getpwnam(username)) Apr 4 15:01:40 lsr-int-dev1-mgmt alert httpd[28205]: pam_unix(httpd:account): could not identify user (from getpwnam(otherusersname)) TCPdump shows queries going to the tacacs server…