<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have freeradius 2.1.12 of rhel6 which uses freeipa as an ldap backend. All is working fine.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The config I have setup is as follows:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ldap group sys_admins = contains users who get privileges to authenticate and login radius based devices (cisco routers/switches, ucs, f5, brocade).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Radius config for ldap module checks group sys_admins for membership. (/etc/raddb/modules/ldap)<o:p></o:p></p>
<p class="MsoNormal"> groupname_attribute = cn<o:p></o:p></p>
<p class="MsoNormal"> groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{check:Ldap-UserDn})))"<o:p></o:p></p>
<p class="MsoNormal"> groupmembership_attribute = sys_admins<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In /etc/raddb/users I have…<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">DEFAULT Ldap-Group == "cn=sys_admins,cn=groups,cn=accounts,dc=mydomain,dc=com"<o:p></o:p></p>
<p class="MsoNormal"> Auth-Type :=Accept,<o:p></o:p></p>
<p class="MsoNormal"> Service-Type = "NAS-Prompt-User",<o:p></o:p></p>
<p class="MsoNormal"> Cisco-AVPair = "shell:roles*\"admin network-admin vdc-admin\"",<o:p></o:p></p>
<p class="MsoNormal"> Cisco-AVPair += "shell:priv-lvl=15",<o:p></o:p></p>
<p class="MsoNormal"> Fall-Through = No,<o:p></o:p></p>
<p class="MsoNormal"> F5-LTM-User-Role = 0,<o:p></o:p></p>
<p class="MsoNormal"> F5-LTM-User-Info-1 = administrator,<o:p></o:p></p>
<p class="MsoNormal"> F5-LTM-User-Partition = common,<o:p></o:p></p>
<p class="MsoNormal"> F5-LTM-User-Shell = tmsh,<o:p></o:p></p>
<p class="MsoNormal"> Brocade-Auth-Role+= "admin",<o:p></o:p></p>
<p class="MsoNormal"> Brocade-AVPairs1+= "HomeLF=0",<o:p></o:p></p>
<p class="MsoNormal"> Brocade-AVPairs2+= "LFRoleList=admin:0-255",<o:p></o:p></p>
<p class="MsoNormal"> Brocade-AVPairs3+= "ChassisRole=admin"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">DEFAULT Auth-Type := Reject<o:p></o:p></p>
<p class="MsoNormal"> Reply-Message="You do not have permission to access this device.",<o:p></o:p></p>
<p class="MsoNormal"> Fall-Through = Yes<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is all working fine.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My problem is that I need to have a user setup in ldap for monitoring purposes (using icinga), which should be a read only based user for the ucs and not have access to the brocade, f5 or other cisco devices.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve tried a lot of different configs and nothing has worked. Adding a specific user definition to /etc/raddb/users with appropriate privilege levels doesn’t help as it seems to still require that the user belong to the ldap group sys_admins,
which means they get access to all devices.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anyone know of a way to have multiple user definitions in /etc/raddb/users with ldap backends with differing privilege levels?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could the ldap module be duplicated like the files module which allows a second users file?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is it even possible? Any alternatives?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Les<o:p></o:p></p>
</div>
</body>
</html>