<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:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Arial","sans-serif";
color:black;
font-weight:normal;
font-style:normal;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1622345279;
mso-list-type:hybrid;
mso-list-template-ids:-169707600 -1256185322 67567619 67567621 67567617 67567619 67567621 67567617 67567619 67567621;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:"Arial","sans-serif";
mso-fareast-font-family:Calibri;
color:black;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Dear listmembers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">I have following setup:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]>Centos 6.4<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">freeradius version: radiusd: FreeRADIUS Version 2.1.12, for host x86_64-redhat-linux-gnu, built on Oct 3 2012 at 01:22:51<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">authorization & authentication in ldap (openldap)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What I am trying to achieve is:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">manage radius profiles completely in ldap with replyItems<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">return reply Items of multiple profiles to a user if he belongs to multiple profiles<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Example RADIUS Profiles:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">dn: uid=aosReadWrite,ou=profiles,ou=radius,dc=example,dc=com<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">cn: AOS Read-Write<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">objectClass: radiusObjectProfile<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">objectClass: radiusProfile<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">uid: aosReadWrite<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">radiusReplyItem: Alcatel-Access-Priv += "Alcatel-Read-Priv"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">radiusReplyItem: Alcatel-Access-Priv += "Alcatel-Write-Priv"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">radiusReplyItem: Alcatel-Access-Priv += "Alcatel-Admin-Priv"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">radiusReplyItem: Alcatel-Acce-Priv-F-W1 = 0xffffffff<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">radiusReplyItem: Alcatel-Acce-Priv-F-W2 = 0xffffffff<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">dn: uid=sosReadWrite,ou=profiles,ou=radius, dc=example,dc=com<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">cn: screenOS Read-Write<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">objectClass: radiusObjectProfile<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">objectClass: radiusProfile<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">uid: sosReadWrite<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">radiusReplyItem: NS-Admin-Privilege = "Root-Admin"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Example RADIUS User:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">dn: uid=hachmer,ou=users,ou=radius,dc=example,dc=com<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">cn: Tobias Hachmer<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">givenName: Tobias<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mail: tobias.hachmer@stadt-frankfurt.de<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">radiusServiceType: Administrative-User<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">sn: Hachmer<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">uid: hachmer<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">objectClass: top<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">objectClass: inetOrgPerson<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">objectClass: radiusProfile<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">userPassword:: …<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">radiusGroupName: aosReadWrite<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">radiusGroupName: sosReadWrite<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I don’t know how to configure FreeRADIUS to read the “radiusGroupName” attribute and attach the configured return Items to the return list.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Using unlang I am able to do this:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> if(Ldap-Group == "cn=aosReadWrite,ou=groups,ou=radius,dc=example,dc=com") {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> update reply {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Alcatel-Access-Priv = Alcatel-Read-Priv<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Alcatel-Access-Priv += Alcatel-Write-Priv<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Alcatel-Access-Priv += Alcatel-Admin-Priv<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Alcatel-Acce-Priv-F-W1 := 0xffffffff<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Alcatel-Acce-Priv-F-W2 := 0xffffffff<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Alcatel-Asa-Access := All<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> if(Ldap-Group == "cn=sosReadWrite,ou=groups,ou=radius, dc=example,dc=com ") {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> update reply {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> NS-Admin-Privilege := Root-Admin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This is working fine but has the disadvantage that I have to configure the return items static into freeradius configuration files.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I want to manage these profiles also in ldap. Is this possible?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Tobias Hachmer<o:p></o:p></span></p>
</div>
</body>
</html>