EAP problem
Graham, Robert
rgraham at mem-ins.com
Thu Jun 30 22:29:21 CEST 2005
I am still having an issue autheniticating a user with EAP. I think Alan, has pointed out the issue in his previous reply, about LDAP not retrieving the User-Password from Active Directory. My understanding (as little as it may be) of the ldap section of the radiusd.conf file is the password_attribute is responsible for retrieving the password. Below is the ldap config section of radiusd.conf.
ldap {
server = "mem-dc.mem-ins.com"
basedn = "ou=mem users,dc=mem-ins,dc=com"
filter = "(sAMAccountName=%{Stripped-User-Name:-%{User-Name}})"
identity = "cn=administrator,ou=admin,ou=mem users,dc=mem-ins,dc=com"
password = {Secret}
start_tls = no
dictionary_mapping = ${raddbdir}/ldap.attrmap
ldap_connections_number = 5
password_attribute = userPassword
groupname_attribute = cn
groupmembership_filter = "(|(&(objectClass=GroupOfNames)(memberof=%{Ldap-UserDn}))(&(objectClass=Group)(member=%{Ldap-UserDn})))"
groupmembership_attribute = radiusGroupName
timeout = 4
timelimit = 3
net_timeout = 1
access_attr_used_for_allow = yes
}
but the output shows:
rad_recv: Access-Request packet from host 172.16.5.71:1645, id=144, length=85
User-Name = "rgraham"
Service-Type = Framed-User
Framed-MTU = 1500
NAS-IP-Address = 172.16.5.71
NAS-Port = 24
EAP-Message = 0x0200000c017267726168616d
Message-Authenticator = 0xc96d75a58b5af7b632fc0f3cc91876c8
rad_lowerpair: User-Name now 'rgraham'
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
modcall[authorize]: module "preprocess" returns ok for request 0
radius_xlat: '/var/log/radius/radacct/172.16.5.71/auth-detail-20050630'
rlm_detail: /var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/radius/radacct/172.16.5.71/auth-detail-20050630
modcall[authorize]: module "auth_log" returns ok for request 0
modcall[authorize]: module "attr_filter" returns noop for request 0
rlm_ldap: - authorize
rlm_ldap: performing user authorization for rgraham
radius_xlat: '(sAMAccountName=rgraham)'
radius_xlat: 'ou=mem users,dc=mem-ins,dc=com'
rlm_ldap: ldap_get_conn: Checking Id: 0
rlm_ldap: ldap_get_conn: Got Id: 0
rlm_ldap: attempting LDAP reconnection
rlm_ldap: (re)connect to mem-dc.mem-ins.com:389, authentication 0
rlm_ldap: bind as cn=administrator,ou=admin,ou=mem users,dc=mem-ins,dc=com/{secret} to mem-dc.mem-ins.com:389
rlm_ldap: waiting for bind result ...
rlm_ldap: Bind was successful
rlm_ldap: performing search in ou=mem users,dc=mem-ins,dc=com, with filter (sAMAccountName=rgraham)
rlm_ldap: looking for check items in directory...
rlm_ldap: looking for reply items in directory...
rlm_ldap: user rgraham authorized to use remote access
rlm_ldap: ldap_release_conn: Release Id: 0
modcall[authorize]: module "ldap" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0
modcall[authorize]: module "mschap" returns noop for request 0
rlm_realm: No '@' in User-Name = "rgraham", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 0
rlm_eap: EAP packet type response id 0 length 12
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 0
rlm_ldap: Entering ldap_groupcmp()
radius_xlat: 'ou=mem users,dc=mem-ins,dc=com'
radius_xlat: '(|(&(objectClass=GroupOfNames)(memberof=CN=Rgraham,OU=Columbia,OU=MEM Users,DC=mem-ins,DC=com))(&(objectClass=Group)(member=CN=Rgraham,OU=Columbia,OU=MEM Users,DC=mem-ins,DC=com)))'
rlm_ldap: ldap_get_conn: Checking Id: 0
rlm_ldap: ldap_get_conn: Got Id: 0
rlm_ldap: performing search in cn=domain users,ou=groups,ou=mem users,dc=mem-ins,dc=com, with filter (|(&(objectClass=GroupOfNames)(memberof=CN=Rgraham,OU=Columbia,OU=MEM Users,DC=mem-ins,DC=com))(&(objectClass=Group)(member=CN=Rgraham,OU=Columbia,OU=MEM Users,DC=mem-ins,DC=com)))
rlm_ldap::ldap_groupcmp: User found in group cn=domain users,ou=groups,ou=mem users,dc=mem-ins,dc=com
rlm_ldap: ldap_release_conn: Release Id: 0
users: Matched DEFAULT at 189
modcall[authorize]: module "files" returns ok for request 0
modcall: group authorize returns updated for request 0
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 0
rlm_eap: EAP Identity
rlm_eap: processing type md5
rlm_eap_md5: Issuing Challenge
modcall[authenticate]: module "eap" returns handled for request 0
modcall: group authenticate returns handled for request 0
Sending Access-Challenge of id 144 to 172.16.5.71:1645
Service-Type = Framed-User
Framed-Protocol = PPP
EAP-Message = 0x0101001604102a7c39455a6ffe060c3a06f4b9677974
Message-Authenticator = 0x00000000000000000000000000000000
State = 0xcb7b91555ab2be2ca5f6ebc82b06f0ec
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 172.16.5.71:1645, id=145, length=120
User-Name = "rgraham"
Service-Type = Framed-User
Framed-MTU = 1500
NAS-IP-Address = 172.16.5.71
NAS-Port = 24
State = 0xcb7b91555ab2be2ca5f6ebc82b06f0ec
EAP-Message = 0x0201001d0410db525b9aa0119fbbda00f3b61861beaf7267726168616d
Message-Authenticator = 0x0751751a6adfd81ae56487289f42da9e
rad_lowerpair: User-Name now 'rgraham'
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 1
modcall[authorize]: module "preprocess" returns ok for request 1
radius_xlat: '/var/log/radius/radacct/172.16.5.71/auth-detail-20050630'
rlm_detail: /var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/radius/radacct/172.16.5.71/auth-detail-20050630
modcall[authorize]: module "auth_log" returns ok for request 1
modcall[authorize]: module "attr_filter" returns noop for request 1
rlm_ldap: - authorize
rlm_ldap: performing user authorization for rgraham
radius_xlat: '(sAMAccountName=rgraham)'
radius_xlat: 'ou=mem users,dc=mem-ins,dc=com'
rlm_ldap: ldap_get_conn: Checking Id: 0
rlm_ldap: ldap_get_conn: Got Id: 0
rlm_ldap: performing search in ou=mem users,dc=mem-ins,dc=com, with filter (sAMAccountName=rgraham)
rlm_ldap: looking for check items in directory...
rlm_ldap: looking for reply items in directory...
rlm_ldap: user rgraham authorized to use remote access
rlm_ldap: ldap_release_conn: Release Id: 0
modcall[authorize]: module "ldap" returns ok for request 1
modcall[authorize]: module "chap" returns noop for request 1
modcall[authorize]: module "mschap" returns noop for request 1
rlm_realm: No '@' in User-Name = "rgraham", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 1
rlm_eap: EAP packet type response id 1 length 29
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 1
rlm_ldap: Entering ldap_groupcmp()
radius_xlat: 'ou=mem users,dc=mem-ins,dc=com'
radius_xlat: '(|(&(objectClass=GroupOfNames)(memberof=CN=Rgraham,OU=Columbia,OU=MEM Users,DC=mem-ins,DC=com))(&(objectClass=Group)(member=CN=Rgraham,OU=Columbia,OU=MEM Users,DC=mem-ins,DC=com)))'
rlm_ldap: ldap_get_conn: Checking Id: 0
rlm_ldap: ldap_get_conn: Got Id: 0
rlm_ldap: performing search in cn=domain users,ou=groups,ou=mem users,dc=mem-ins,dc=com, with filter (|(&(objectClass=GroupOfNames)(memberof=CN=Rgraham,OU=Columbia,OU=MEM Users,DC=mem-ins,DC=com))(&(objectClass=Group)(member=CN=Rgraham,OU=Columbia,OU=MEM Users,DC=mem-ins,DC=com)))
rlm_ldap::ldap_groupcmp: User found in group cn=domain users,ou=groups,ou=mem users,dc=mem-ins,dc=com
rlm_ldap: ldap_release_conn: Release Id: 0
users: Matched DEFAULT at 189
modcall[authorize]: module "files" returns ok for request 1
modcall: group authorize returns updated for request 1
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 1
rlm_eap: Request found, released from the list
rlm_eap: EAP/md5
rlm_eap: processing type md5
rlm_eap_md5: User-Password is required for EAP-MD5 authentication
rlm_eap: Handler failed in EAP/md5
rlm_eap: Failed in EAP select
modcall[authenticate]: module "eap" returns invalid for request 1
modcall: group authenticate returns invalid for request 1
auth: Failed to validate the user.
shouldn't the section:
rlm_ldap: looking for check items in directory...
rlm_ldap: looking for reply items in directory...
rlm_ldap: user rgraham authorized to use remote access
have something that reflects userpassword retrieved (rlm_ldap: UserPassword retrieved, or sometjing like that)?
Thanks
Robert Graham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20050630/b6cdac3e/attachment.html>
More information about the Freeradius-Users
mailing list