<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 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.<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> rad_recv: Access-Request packet from
host radius_client_ip port 35833, id=168, length=60<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
User-Name = "ldapuser"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
User-Password = "ldapuser"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
NAS-IP-Address = 127.0.0.1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
NAS-Port = 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>+- entering group authorize {...}<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[preprocess] returns ok<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[chap] returns noop<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[mschap] returns noop<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[suffix] No '@' in User-Name =
"ldapuser", looking up realm NULL<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[suffix] Found realm "NULL"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[suffix] Adding Realm = "NULL"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[suffix] Authentication realm is LOCAL.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[suffix] returns ok<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[eap] No EAP-Message, not doing EAP<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[eap] returns noop<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[files] returns noop<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[unix] returns updated<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[sql] expand: %{User-Name}
-> ldapuser<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[sql] sql_set_user escaped user -->
'ldapuser'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_sql (sql): Reserving sql socket id: 2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[sql] expand: SELECT id,
username, attribute, value,
op FROM
radcheck WHERE username
=
'%{SQL-User-Name}'
ORDER BY id -> SELECT id, username, attribute, value,
op FROM
radcheck WHERE
username =
'ldapuser' ORDER BY
id<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[sql] expand: SELECT
groupname FROM
radusergroup WHERE
username =
'%{SQL-User-Name}'
ORDER BY priority -> SELECT
groupname FROM
radusergroup WHERE
username =
'ldapuser' ORDER BY
priority<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_sql (sql): Released sql socket id: 2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[sql] User ldapuser not found<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[sql] returns notfound<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:
(uid=%{Stripped-User-Name:-%{User-Name}}) -> (uid=ldapuser)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[ldap] expand: o=My Org,c=UA -> o=My
Org,c=UA<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,o=My
Org,c=UA/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 2 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 2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Sending Access-Reject of id 168 to radius_server_ip
port 35833<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 2 ID 168 with timestamp
+1020<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>The error looks like “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>what’s the problem ??<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>Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Vicky<o:p></o:p></span></p>
</div>
</body>
</html>