<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
<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 name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 3 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri","sans-serif";}
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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"\8A3B\89E3\65B9\584A\6587\5B57 \5B57\5143";
margin:0cm;
margin-bottom:.0001pt;
font-size:9.0pt;
font-family:"Cambria","serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.a
{mso-style-name:"\8A3B\89E3\65B9\584A\6587\5B57 \5B57\5143";
mso-style-priority:99;
mso-style-link:\8A3B\89E3\65B9\584A\6587\5B57;
font-family:"Cambria","serif";}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</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=ZH-TW link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi all :<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I have install </span><span
lang=EN-US>freeradius-server-2.1.1 and I want use LDAP to do authentication. I have
set the radiusd configuration file (/usr/local/etc/raddb/radius.conf) about
ldap information as follows :<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>ldap {<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
server = "localhost"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
identity = "cn=Manager</span><span style='font-family:"新細明體","serif"'>¡A</span><span
lang=EN-US>dc=nchc</span><span style='font-family:"新細明體","serif"'>¡A</span><span
lang=EN-US>dc=org</span><span style='font-family:"新細明體","serif"'>¡A</span><span
lang=EN-US>dc=tw"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
password = hsuan<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
basedn = "dc=nchc</span><span style='font-family:"新細明體","serif"'>¡A</span><span
lang=EN-US>dc=org</span><span style='font-family:"新細明體","serif"'>¡A</span><span
lang=EN-US>dc=tw"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
filter =
(&(!(objectClass=alias))(uid=%{Stripped-User-Name:-%{User-Name}}))"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
start_tls = no<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
dictionary_mapping = ${raddbdir}/ldap.attrmap<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
ldap_connections_number = 5<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
ldap_connections_number = 5<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
password_header = "{crypt}"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
password_attribute =User-Password<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> timeout
= 4<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> timelimit
= 3<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> net_timeout
= 1<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>But when I using ¡§radius -X¡¨ to
start the radius server ,and in the client I using ¡§radtest ldapuser
ldapuser radius_server_ip 0 secret¡¨ ,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>The server shown the message :<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><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[ldap] performing user authorization for
ldapuser<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[ldap] WARNING: Deprecated conditional
expansion ":-". See "man unlang" for details<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[ldap] expand:
(&(!(objectClass=alias))(uid=%{Stripped-User-Name:-%{User-Name}}))"
-> (&(!(objectClass=alias))(uid=ldapuser))"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[ldap] expand: dc=nchc??dc=org??dc=tw
-> dc=nchc??dc=org??dc=tw<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_ldap: ldap_get_conn: Checking Id: 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_ldap: ldap_get_conn: Got Id: 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_ldap: attempting LDAP reconnection<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_ldap: (re)connect to localhost:389,
authentication 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_ldap: bind as
cn=Manager??dc=nchc??dc=org??dc=tw/hsuan to localhost:389<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_ldap: waiting for bind result ...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_ldap: LDAP login failed: check
identity, password settings in ldap section of radiusd.conf<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_ldap: (re)connection attempt failed<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[ldap] search failed<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_ldap: ldap_release_conn: Release Id: 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[ldap] returns fail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Invalid user: [ldapuser/ldapuser] (from
client my_radius_client_pc port 0)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Using Post-Auth-Type Reject<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>+- entering group REJECT {...}<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[attr_filter.access_reject]
expand: %{User-Name} -> ldapuser<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> attr_filter: Matched entry DEFAULT at
line 11<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[attr_filter.access_reject] returns
updated<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Delaying reject of request 3 for 1 seconds<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Going to the next request<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Waking up in 0.9 seconds.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Sending delayed reject for request 3<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Sending Access-Reject of id 128 to 192.168.2.1
port 49351<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Waking up in 4.9 seconds.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Cleaning up request 3 ID 128 with timestamp
+135542<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>Then the client receive the ¡§rad_recv:
Access-Reject packet from host 192.168.2.1 port 1812, id=22, length=20¡¨<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¡¦s the problem ? how can I fix
the error ?<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>Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Vicky<o:p></o:p></span></p>
</div>
</body>
</html>