It seems that this should not be so hard; I am sure I am making a stupid mistake somewhere, but I just don't see it.
I am attempting to set up freeradius 0.9.3 (redhat) to use (initially) one of several Windows 2003 AD for authentication. I am, however, unable to get the first one to work. I have attached what I think are the relevant log and configuration sections. The Windows admin is not seeing any errors in her logs. On the radius side, it seems that radiusd is not able to negotiate a connection that the ldap server will accept. Any recommendations would be appreciated. --Bill --- ldap config from radiusd.conf ldap { server = "win-dc.win-dom.ctc.edu" port = 636 identity = "CN=User\\, Asteroid,OU=System Accounts,OU=CIS,OU=Accounts,DC=WIN-DOM,DC=ctc,DC=edu" password = "****" start_tls = yes basedn = "OU=Accounts,DC=WIN-DOM,DC=ctc,DC=edu" filter = "(SamAccountName=%u)" dictionary_mapping = ${raddbdir}/ldap.attrmap ldap_connections_number = 5 timeout = 4 timelimit = 3 net_timeout = 1 ldap_debug = 0x0028 } I have tried various combinations of port 636 or 389, start_tls yes or no with no sucsess. --- radiusd -X -A Module: Loaded LDAP ldap: server = "win-dc.win-dom.ctc.edu" ldap: port = 636 ldap: net_timeout = 1 ldap: timeout = 4 ldap: timelimit = 3 ldap: identity = "CN=User\, Asteroid,OU=System Accounts,OU=CIS,OU=Accounts,DC=WIN-DOM,DC=ctc,DC=edu" ldap: start_tls = yes ldap: password = "****" ldap: basedn = "OU=Accounts,DC=WIN-DOM,DC=ctc,DC=edu" ldap: filter = "(SamAccountName=%u)" ldap: default_profile = "(null)" ldap: profile_attribute = "(null)" ldap: password_header = "(null)" ldap: password_attribute = "(null)" ldap: access_attr = "(null)" ldap: groupname_attribute = "cn" ldap: groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))" ldap: groupmembership_attribute = "(null)" ldap: dictionary_mapping = "/etc/raddb/ldap.attrmap" ldap: ldap_debug = 40 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 /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 radiusSimultaneousUse 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 lmPassword mapped to RADIUS LM-Password rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration 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: 0x81078a8 Module: Instantiated ldap (ldap) <<snipped>> rad_recv: Access-Request packet from host 127.0.0.1:32792, id=174, length=58 User-Name = "jdummy" User-Password = "****" NAS-IP-Address = 255.255.255.255 NAS-Port = 1 modcall: entering group authorize for request 0 modcall[authorize]: module "preprocess" returns ok for request 0 modcall[authorize]: module "chap" returns noop for request 0 modcall[authorize]: module "eap" returns noop for request 0 rlm_realm: No '@' in User-Name = "jdummy", looking up realm NULL rlm_realm: No such realm "NULL" modcall[authorize]: module "suffix" returns noop for request 0 users: Matched DEFAULT at 276 modcall[authorize]: module "files" returns ok for request 0 modcall[authorize]: module "mschap" returns noop for request 0 rlm_ldap: - authorize rlm_ldap: performing user authorization for jdummy radius_xlat: '(SamAccountName=jdummy)' radius_xlat: 'OU=Accounts,DC=WIN-DOM,DC=ctc,DC=edu' ldap_get_conn: Got Id: 0 rlm_ldap: attempting LDAP reconnection rlm_ldap: (re)connect to win-dc.win-dom.ctc.edu:636, authentication 0 rlm_ldap: setting TLS mode to 1 rlm_ldap: starting TLS TLS: can't connect. rlm_ldap: ldap_start_tls_s() rlm_ldap: could not start TLS Can't contact LDAP server rlm_ldap: (re)connection attempt failed rlm_ldap: search failed ldap_release_conn: Release Id: 0 modcall[authorize]: module "ldap" returns fail for request 0 modcall: group authorize returns fail for request 0 There was no response configured: rejecting request 0 Server rejecting request 0. Finished request 0 -- or; if I use the default port, ans start_tls = no -- radius_xlat: 'OU=Accounts,DC=WIN-DOM,DC=ctc,DC=edu' ldap_get_conn: Got Id: 0 rlm_ldap: attempting LDAP reconnection rlm_ldap: (re)connect to win-dc.win-dom.ctc.edu:389, authentication 0 rlm_ldap: bind as CN=User\, Asteroid,OU=System Accounts,OU=CIS,OU=Accounts,DC=WIN-DOM,DC=ctc,DC=edu/**** to win-dc.win-dom.ctc.edu:389 rlm_ldap: waiting for bind result ... request 1 done rlm_ldap: CN=User\, Asteroid,OU=System Accounts,OU=CIS,OU=Accounts,DC=WIN-DOM,DC=ctc,DC=edu bind to win-dc.win-dom.ctc.edu:389 failed Strong authentication required rlm_ldap: (re)connection attempt failed - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html