Hi to all,
i know, there are already many postings about this topic, but i didn't get it work. So
please help me!!
I want to authenticate users via EAP-MD5 and LDAP in a NDS. But seems, that rlm_ldap
doesnt get a password from nds !?
Can anybody help me?
Thx!
-------------------------radiusd -X -----------------------------
Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file: /usr/local/radius/etc/raddb/clients.conf
main: prefix = "/usr/local/radius"
main: localstatedir = "/usr/local/radius/var"
main: logdir = "/usr/local/radius/var/log/radius"
main: libdir = "/usr/local/radius/lib"
main: radacctdir = "/usr/local/radius/var/log/radius/radacct"
main: hostname_lookups = no
read_config_files: reading dictionary
read_config_files: reading clients
read_config_files: reading realms
read_config_files: reading naslist
main: max_request_time = 30
main: cleanup_delay = 10
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = yes
main: log_stripped_names = yes
main: log_auth = yes
main: log_auth_badpass = yes
main: log_auth_goodpass = yes
main: pidfile = "/usr/local/radius/var/run/radiusd/radiusd.pid"
main: bind_address = 192.168.10.130 IP address [192.168.10.130]
main: user = "root"
main: group = "(null)"
main: usercollide = no
main: lower_user = "no"
main: lower_pass = "no"
main: nospace_user = "no"
main: nospace_pass = "no"
main: proxy_requests = no
security: max_attributes = 200
security: reject_delay = 1
main: debug_level = 0
read_config_files: entering modules setup
Module: Library search path is /usr/local/radius/lib
Module: Loaded eap
eap: default_eap_type = "md5"
eap: timer_expire = 60
rlm_eap: Loaded and initialized the type md5
tls: private_key_file = "/usr/local/openssl/ssl/certs/cert-srv.pem"
tls: certificate_file = "/usr/local/openssl/ssl/certs/cert-srv.pem"
tls: CA_file = "/usr/local/openssl/ssl/certs/cacert.pem"
tls: private_key_password = "whatever"
tls: dh_file = "/usr/src/802/cert/dh"
tls: random_file = "/usr/src/802/cert/random"
tls: fragment_size = 1024
tls: include_length = yes
rlm_eap_tls: conf N ctx stored
rlm_eap: Loaded and initialized the type tls
Module: Instantiated eap (eap)
Module: Loaded preprocess
preprocess: huntgroups = "/usr/local/radius/etc/raddb/huntgroups"
preprocess: hints = "/usr/local/radius/etc/raddb/hints"
preprocess: with_ascend_hack = no
preprocess: ascend_channels_per_line = 23
preprocess: with_ntdomain_hack = no
preprocess: with_specialix_jetstream_hack = no
preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded LDAP
ldap: server = "192.168.10.100"
ldap: port = 389
ldap: net_timeout = 10
ldap: timeout = 20
ldap: timelimit = 20
ldap: ldap_cache_timeout = 0
ldap: ldap_cache_size = 0
ldap: identity = "cn=Administrator,cn=Users,dc=upn,dc=com"
ldap: start_tls = no
ldap: password = ""
ldap: basedn = "cn=Users,dc=upn,dc=com"
ldap: filter = "(sAMAccountName=%U)"
ldap: default_profile = "(null)"
ldap: profile_attribute = "(null)"
ldap: access_group = "(null)"
ldap: password_header = "(null)"
ldap: password_attribute = "userPassword"
ldap: access_attr = "(null)"
ldap: groupname_attribute = "cn"
ldap: groupmembership_filter =
"(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
ldap: dictionary_mapping = "/usr/local/radius/etc/raddb/ldap.attrmap"
ldap: ldap_debug = 0
ldap: ldap_connections_number = 5
ldap: compare_check_items = no
ldap: access_attr_used_for_allow = yes
conns: (nil)
rlm_ldap: reading ldap<->radius mappings from file
/usr/local/radius/etc/raddb/ldap.attrmap
rlm_ldap: LDAP radiusCheckItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusReplyItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusAuthType mapped to RADIUS Auth-Type
rlm_ldap: LDAP npSessionsAllowed mapped to RADIUS Simultaneous-Use
rlm_ldap: LDAP radiusCalledStationId mapped to RADIUS Called-Station-Id
rlm_ldap: LDAP radiusCallingStationId mapped to RADIUS Calling-Station-Id
rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
rlm_ldap: LDAP lmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP radiusServiceType mapped to RADIUS Service-Type
rlm_ldap: LDAP radiusFramedProtocol mapped to RADIUS Framed-Protocol
rlm_ldap: LDAP radiusFramedIPAddress mapped to RADIUS Framed-IP-Address
rlm_ldap: LDAP radiusFramedIPNetmask mapped to RADIUS Framed-IP-Netmask
rlm_ldap: LDAP radiusFramedRoute mapped to RADIUS Framed-Route
rlm_ldap: LDAP radiusFramedRouting mapped to RADIUS Framed-Routing
rlm_ldap: LDAP radiusFilterId mapped to RADIUS Filter-Id
rlm_ldap: LDAP radiusFramedMTU mapped to RADIUS Framed-MTU
rlm_ldap: LDAP radiusFramedCompression mapped to RADIUS Framed-Compression
rlm_ldap: LDAP radiusLoginIPHost mapped to RADIUS Login-IP-Host
rlm_ldap: LDAP radiusLoginService mapped to RADIUS Login-Service
rlm_ldap: LDAP radiusLoginTCPPort mapped to RADIUS Login-TCP-Port
rlm_ldap: LDAP radiusCallbackNumber mapped to RADIUS Callback-Number
rlm_ldap: LDAP radiusCallbackId mapped to RADIUS Callback-Id
rlm_ldap: LDAP radiusFramedIPXNetwork mapped to RADIUS Framed-IPX-Network
rlm_ldap: LDAP radiusClass mapped to RADIUS Class
rlm_ldap: LDAP radiusSessionTimeout mapped to RADIUS Session-Timeout
rlm_ldap: LDAP radiusIdleTimeout mapped to RADIUS Idle-Timeout
rlm_ldap: LDAP radiusTerminationAction mapped to RADIUS Termination-Action
rlm_ldap: LDAP radiusLoginLATService mapped to RADIUS Login-LAT-Service
rlm_ldap: LDAP radiusLoginLATNode mapped to RADIUS Login-LAT-Node
rlm_ldap: LDAP radiusLoginLATGroup mapped to RADIUS Login-LAT-Group
rlm_ldap: LDAP radiusFramedAppleTalkLink mapped to RADIUS Framed-AppleTalk-Link
rlm_ldap: LDAP radiusFramedAppleTalkNetwork mapped to RADIUS Framed-AppleTalk-Network
rlm_ldap: LDAP radiusFramedAppleTalkZone mapped to RADIUS Framed-AppleTalk-Zone
rlm_ldap: LDAP radiusPortLimit mapped to RADIUS Port-Limit
rlm_ldap: LDAP radiusLoginLATPort mapped to RADIUS Login-LAT-Port
conns: 0x80c5438
Module: Instantiated ldap (upn_ldap)
ldap: server = "192.168.10.230"
ldap: port = 636
ldap: net_timeout = 1
ldap: timeout = 4
ldap: timelimit = 3
ldap: ldap_cache_timeout = 0
ldap: ldap_cache_size = 0
ldap: identity = "CN=admin,OU=CW,OU=KIP,O=DE"
ldap: start_tls = no
ldap: password = "admin"
ldap: basedn = "OU=CW,OU=KIP,O=DE"
ldap: filter = "(givenName=%U)"
ldap: default_profile = "(null)"
ldap: profile_attribute = "(null)"
ldap: access_group = "(null)"
ldap: password_header = "(null)"
ldap: password_attribute = "userPassword"
ldap: access_attr = "(null)"
ldap: groupname_attribute = "cn"
ldap: groupmembership_filter =
"(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
ldap: dictionary_mapping = "/usr/local/radius/etc/raddb/ldap.attrmap"
ldap: ldap_debug = 0
ldap: ldap_connections_number = 5
ldap: compare_check_items = no
ldap: access_attr_used_for_allow = yes
conns: (nil)
rlm_ldap: reading ldap<->radius mappings from file
/usr/local/radius/etc/raddb/ldap.attrmap
rlm_ldap: LDAP radiusCheckItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusReplyItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusAuthType mapped to RADIUS Auth-Type
rlm_ldap: LDAP npSessionsAllowed mapped to RADIUS Simultaneous-Use
rlm_ldap: LDAP radiusCalledStationId mapped to RADIUS Called-Station-Id
rlm_ldap: LDAP radiusCallingStationId mapped to RADIUS Calling-Station-Id
rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
rlm_ldap: LDAP lmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP radiusServiceType mapped to RADIUS Service-Type
rlm_ldap: LDAP radiusFramedProtocol mapped to RADIUS Framed-Protocol
rlm_ldap: LDAP radiusFramedIPAddress mapped to RADIUS Framed-IP-Address
rlm_ldap: LDAP radiusFramedIPNetmask mapped to RADIUS Framed-IP-Netmask
rlm_ldap: LDAP radiusFramedRoute mapped to RADIUS Framed-Route
rlm_ldap: LDAP radiusFramedRouting mapped to RADIUS Framed-Routing
rlm_ldap: LDAP radiusFilterId mapped to RADIUS Filter-Id
rlm_ldap: LDAP radiusFramedMTU mapped to RADIUS Framed-MTU
rlm_ldap: LDAP radiusFramedCompression mapped to RADIUS Framed-Compression
rlm_ldap: LDAP radiusLoginIPHost mapped to RADIUS Login-IP-Host
rlm_ldap: LDAP radiusLoginService mapped to RADIUS Login-Service
rlm_ldap: LDAP radiusLoginTCPPort mapped to RADIUS Login-TCP-Port
rlm_ldap: LDAP radiusCallbackNumber mapped to RADIUS Callback-Number
rlm_ldap: LDAP radiusCallbackId mapped to RADIUS Callback-Id
rlm_ldap: LDAP radiusFramedIPXNetwork mapped to RADIUS Framed-IPX-Network
rlm_ldap: LDAP radiusClass mapped to RADIUS Class
rlm_ldap: LDAP radiusSessionTimeout mapped to RADIUS Session-Timeout
rlm_ldap: LDAP radiusIdleTimeout mapped to RADIUS Idle-Timeout
rlm_ldap: LDAP radiusTerminationAction mapped to RADIUS Termination-Action
rlm_ldap: LDAP radiusLoginLATService mapped to RADIUS Login-LAT-Service
rlm_ldap: LDAP radiusLoginLATNode mapped to RADIUS Login-LAT-Node
rlm_ldap: LDAP radiusLoginLATGroup mapped to RADIUS Login-LAT-Group
rlm_ldap: LDAP radiusFramedAppleTalkLink mapped to RADIUS Framed-AppleTalk-Link
rlm_ldap: LDAP radiusFramedAppleTalkNetwork mapped to RADIUS Framed-AppleTalk-Network
rlm_ldap: LDAP radiusFramedAppleTalkZone mapped to RADIUS Framed-AppleTalk-Zone
rlm_ldap: LDAP radiusPortLimit mapped to RADIUS Port-Limit
rlm_ldap: LDAP radiusLoginLATPort mapped to RADIUS Login-LAT-Port
conns: 0x80c63a8
Module: Instantiated ldap (nds_ldap)
Module: Loaded files
files: usersfile = "/usr/local/radius/etc/raddb/users"
files: acctusersfile = "/usr/local/radius/etc/raddb/acct_users"
files: compat = "no"
[/usr/local/radius/etc/raddb/users]:8 WARNING! Changing 'User-Password =' to
'User-Password ==' ?for comparing RADIUS attribute in check item list for user bob
Module: Instantiated files (files)
Module: Loaded detail
detail: detailfile =
"/usr/local/radius/var/log/radius/radacct/%{Client-IP-Address}/detail"
detail: detailperm = 384
detail: dirperm = 493
detail: locking = no
Module: Instantiated detail (detail)
Module: Loaded System
unix: cache = no
unix: passwd = "/etc/passwd"
unix: shadow = "/etc/shadow"
unix: group = "/etc/group"
unix: radwtmp = "/usr/local/radius/var/log/radius/radwtmp"
unix: usegroup = no
unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded radutmp
radutmp: filename = "/usr/local/radius/var/log/radius/radutmp"
radutmp: username = "%{User-Name}"
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on IP address 192.168.10.130, ports 1812/udp and 1813/udp.
Ready to process requests.
rad_recv: Access-Request packet from host 192.168.10.15:15224, id=64, length=81
Message-Authenticator = 0xc6c3687001f099ee8c1e4339b401c502
User-Name = "NDS\\hans"
NAS-IP-Address = 192.168.10.15
NAS-Port = 17
EAP-Message = "\002F\000\r\001NDS\\hans"
Framed-MTU = 1000
modcall: entering group authorize
hints: Matched DEFAULT at 5
modcall[authorize]: module "preprocess" returns ok
users: Matched DEFAULT at 14
modcall[authorize]: module "files" returns ok
modcall[authorize]: module "eap" returns updated
modcall: group authorize returns updated
modcall: entering group autztype
rlm_ldap: - authorize
rlm_ldap: performing user authorization for hans
radius_xlat: '(givenName=hans)'
radius_xlat: 'OU=CW,OU=KIP,O=DE'
ldap_get_conn: Got Id: 0
rlm_ldap: attempting LDAP reconnection
rlm_ldap: (re)connect to 192.168.10.230:636, authentication 0
rlm_ldap: setting TLS mode to 1
rlm_ldap: bind as CN=admin,OU=CW,OU=KIP,O=DE/admin to 192.168.10.230:636
rlm_ldap: waiting for bind result ...
rlm_ldap: performing search in OU=CW,OU=KIP,O=DE, with filter (givenName=hans)
rlm_ldap: looking for check items in directory...
rlm_ldap: looking for reply items in directory...
rlm_ldap: user hans authorized to use remote access
ldap_release_conn: Release Id: 0
modcall[authorize]: module "nds_ldap" returns ok
modcall: group autztype returns ok
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate
rlm_eap: processing type md5
rlm_eap_md5: Issuing Challenge
modcall[authenticate]: module "eap" returns ok
modcall: group authenticate returns ok
Login OK: [hans/<no User-Password attribute>] (from client Enterasys-Switch port 17)
Sending Access-Challenge of id 64 to 192.168.10.15:15224
EAP-Message =
"\001@\000\026\004\020\303/\001\261\301\206\260\000\251\300>+\365&\261\034"
Message-Authenticator = 0x00000000000000000000000000000000
State = 0x666ece2758fff050dfdf6c3db7810cca286476db
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 11 seconds...
rad_recv: Access-Request packet from host 192.168.10.15:15224, id=65, length=120
Message-Authenticator = 0xdad49162195642d5695252767fde0631
User-Name = "NDS\\hans"
State = 0x666ece2758fff050dfdf6c3db7810cca286476db
NAS-IP-Address = 192.168.10.15
NAS-Port = 17
Framed-MTU = 1000
EAP-Message =
"\002@\000\036\004\020\245\246\210Y=\231\373\225@\023^&\252\3510\340NDS\\hans"
modcall: entering group authorize
hints: Matched DEFAULT at 5
modcall[authorize]: module "preprocess" returns ok
users: Matched DEFAULT at 14
modcall[authorize]: module "files" returns ok
modcall[authorize]: module "eap" returns updated
modcall: group authorize returns updated
modcall: entering group autztype
rlm_ldap: - authorize
rlm_ldap: performing user authorization for hans
radius_xlat: '(givenName=hans)'
radius_xlat: 'OU=CW,OU=KIP,O=DE'
ldap_get_conn: Got Id: 0
rlm_ldap: performing search in OU=CW,OU=KIP,O=DE, with filter (givenName=hans)
rlm_ldap: looking for check items in directory...
rlm_ldap: looking for reply items in directory...
rlm_ldap: user hans authorized to use remote access
ldap_release_conn: Release Id: 0
modcall[authorize]: module "nds_ldap" returns ok
modcall: group autztype returns ok
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate
rlm_eap: Request found, released from the list
rlm_eap: EAP_TYPE - md5
rlm_eap: processing type md5
rlm_eap_md5: No password configured for this user
modcall[authenticate]: module "eap" returns invalid
modcall: group authenticate returns invalid
auth: Failed to validate the user.
Login incorrect: [hans/<no User-Password attribute>] (from client Enterasys-Switch
port 17)
Delaying request 1 for 1 seconds
Finished request 1
Going to the next request
Waking up in 11 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 64 with timestamp 3d6cdfdf
Sending Access-Reject of id 65 to 192.168.10.15:15224
EAP-Message = "\004A\000\004"
Message-Authenticator = 0x00000000000000000000000000000000
Cleaning up request 1 ID 65 with timestamp 3d6cdfdf
Nothing to do. Sleeping until we see a request.
------------------------ users -------------------------------------
DEFAULT HINT == UPN, Autz-Type := UPN_LDAP
DEFAULT HINT == NDS, Autz-Type := NDS_LDAP
DEFAULT HINT == ROOT, Auth-Type := System
client Auth-Type := EAP
---------------------------radiusd.conf----------------------------
modules {
eap {
default_eap_type = md5
md5 {
}
tls {
private_key_password = whatever
private_key_file = /usr/local/openssl/ssl/certs/cert-srv.pem
certificate_file = /usr/local/openssl/ssl/certs/cert-srv.pem
CA_file = /usr/local/openssl/ssl/certs/cacert.pem
dh_file = /usr/src/802/cert/dh
random_file = /usr/src/802/cert/random
fragment_size = 1024
include_length = yes
}
}
preprocess {
hints = ${confdir}/hints
}
files {
usersfile = ${confdir}/users
acctusersfile = ${confdir}/acct_users
compat = no
}
ldap upn_ldap {
server = 192.168.10.100
port = 389
start_tls = no
identity = "cn=Administrator,cn=Users,dc=upn,dc=com"
password =
basedn = "cn=Users,dc=upn,dc=com"
filter = "(sAMAccountName=%U)"
ldap_cache_timeout = 0
ldap_cache_size = 0
ldap_connection_number = 10
#password_header = "{md5}"
password_attribute = userPassword
}
ldap nds_ldap {
server = 192.168.10.230
port = 636
start_tls = no
identity = "CN=admin,OU=CW,OU=KIP,O=DE"
password = admin
basedn = "OU=CW,OU=KIP,O=DE"
filter = "(givenName=%U)"
ldap_cache_timeout = 0
ldap_cache_size = 0
ldap_connection_number = 10
# password_header = "{md5}"
password_attribute = userPassword
# ldap_debug = 3
timeout = 4
timelimit = 3
net_timeout = 1
check_items = yes
}
}
authorize {
preprocess
autztype UPN_LDAP {
upn_ldap
}
autztype NDS_LDAP {
nds_ldap
}
files
eap
}
authenticate {
eap
}
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html