|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Nick E. Milogradsky 2:5025/900 08 Dec 2004 16:16:16 To : All Subject : Re: freeradius + OpenLDAP = работает или нет ? -------------------------------------------------------------------------------- > > * hi > ** Nick E. Milogradsky => All > > на том же месте и почти по тому же вопросу :) Привет, привет ! Да нет, все сервисы работаю правильно через LDAP, но freeradius почему не хочет. >> Помогите понять, связка freeradius + OpenLDAP вообще работает или >> нет ? > > конечно работает. Верю. :-) [...] >> HELP !!! Если у кого-то работает вариант freeradius+OpenLDAP отзовитесь >> пожалуйста. > > значит это... читай FAQ, там есть строчка про smart-questions. вот там > по > ссылке почитай. > где, в конце концов, логи от radiusd, slapd? где конфиги? всему учить > надо, > как будто в первый раз в эху пишешь... Да читал я FAQ, все по облазил и не могу понять, что не так у меня. :-((( Вот логи и конфиги. # cat radiusd.conf ==== ... ldap { server = "localhost" identity = "cn=radius,dc=xxx,dc=xxx,dc=ppp,dc=ru" password = xxxxxxxxxxx basedn = "ou=users,dc=xxx,dc=xxx,dc=ppp,dc=ru" #filter = "(uid=%{Stripped-User-Name:-%{User-Name}})" filter = "(&(objectClass=posixAccount)(uid=%u))" start_tls = no dictionary_mapping = ${raddbdir}/ldap.attrmap ldap_connections_number = 5 #password_header = "{MD5}" password_attribute = userPassword # groupname_attribute = cn # groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUni queNames)(uniquemember=%{Ldap-UserDn} )))" # groupmembership_attribute = radiusGroupName timeout = 4 timelimit = 3 net_timeout = 1 compare_check_items = yes access_attr_used_for_allow = yes } ... authenticate { Auth-Type PAP { pap } Auth-Type CHAP { chap } Auth-Type MS-CHAP { mschap } pam unix Auth-Type LDAP { ldap } eap } preacct { preprocess # realmslash suffix # files } ... accounting { acct_unique detail # daily unix # wtmp file # ldap radutmp # sradutmp # main_pool } ... ==== ==== #/usr/sbin/radiusd -X -A ... Module: Loaded LDAP ldap: server = "localhost" ldap: port = 389 ldap: net_timeout = 1 ldap: timeout = 4 ldap: timelimit = 3 ldap: identity = "cn=radius,dc=xxx,dc=xxx,dc=ppp,dc=ru" ldap: tls_mode = no ldap: start_tls = no ldap: tls_cacertfile = "(null)" ldap: tls_cacertdir = "(null)" ldap: tls_certfile = "(null)" ldap: tls_keyfile = "(null)" ldap: tls_randfile = "(null)" ldap: tls_require_cert = "allow" ldap: password = "xxxxxxxxxxxxxxxxxxx" ldap: basedn = "ou=users,dc=xxx,dc=xxx,dc=ppp,dc=ru" ldap: filter = "(&(objectClass=posixAccount)(uid=%u))" ldap: base_filter = "(objectclass=radiusprofile)" ldap: default_profile = "(null)" ldap: profile_attribute = "(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=GroupOfUni queNames)(uniquemember=%{Ldap-UserDn})))" ldap: groupmembership_attribute = "(null)" ldap: dictionary_mapping = "/etc/raddb/ldap.attrmap" ldap: ldap_debug = 0 ldap: ldap_connections_number = 5 ldap: compare_check_items = yes ldap: access_attr_used_for_allow = yes ldap: do_xlat = yes rlm_ldap: Registering ldap_groupcmp for Ldap-Group rlm_ldap: Registering ldap_xlat with xlat_name ldap 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 sambaLMPassword mapped to RADIUS LM-Password rlm_ldap: LDAP sambaNTPassword mapped to RADIUS NT-Password rlm_ldap: LDAP sambaAcctFlags 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: 0x9522a50 Module: Instantiated ldap (ldap) ... # Пробую делать radtest: ===== # radtest test xxxxxxxxxxxx localhost 0 xxxxxxxxx Sending Access-Request of id 53 to 127.0.0.1:1812 User-Name = "test" User-Password = "xxxxxx" NAS-IP-Address = ciscoXXXX.xxx.xxx.ppp.ru NAS-Port = 0 rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=53, length=20 rad_decode: Received Access-Reject packet from 127.0.0.1:1812 with invalid signature (err=2)! (Shared secret is incorrect.) radclient: radclient.c:440: send_one_packet: Assertion `radclient->reply == ((void *)0)' failed. /usr/bin/radtest: line 53: 10804 Done ( echo "User-Name = \"$1\""; echo "User-Password = \"$2\""; echo "NAS-IP-Address = $nas"; echo "NAS-Port = $4"; if [ "$6" ]; then echo "Framed-Protocol = PPP"; fi ) 10805 Aborted | $radclient $DICTIONARY -x $3 auth $5 # ===== Результат radtest'а в протоколах работы сервера: ===== ... Ready to process requests. rad_recv: Access-Request packet from host 127.0.0.1:32769, id=53, length=56 User-Name = "test" User-Password = "\320Q\010,+\270\253\332\360\037I\223\215\302\\\362" NAS-IP-Address = 255.255.255.255 NAS-Port = 0 Processing the authorize section of radiusd.conf modcall: entering group authorize for request 0 modcall[authorize]: module "preprocess" returns ok for request 0 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module "eap" returns noop for request 0 modcall[authorize]: module "mschap" returns noop for request 0 rlm_ldap: - authorize rlm_ldap: performing user authorization for test radius_xlat: '(&(objectClass=posixAccount)(uid=test))' radius_xlat: 'ou=users,dc=xxx,dc=xxx,dc=ppp,dc=ru' 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 localhost:389, authentication 0 rlm_ldap: bind as cn=radius,dc=xxx,dc=xxx,dc=ppp,dc=ru/xxxxxxxxxx to localhost:389 rlm_ldap: waiting for bind result ... rlm_ldap: Bind was successful rlm_ldap: performing search in ou=users,dc=xxx,dc=xxx,dc=ppp,dc=ru, with filter (&(objectClass=posixAccount)(uid=test)) rlm_ldap: Added password xxxxxxxxxxxxx in check items rlm_ldap: looking for check items in directory... rlm_ldap: looking for reply items in directory... Invalid operator for item User-Password: reverting to '==' rlm_ldap: Pairs do not match. Rejecting user. rlm_ldap: ldap_release_conn: Release Id: 0 modcall[authorize]: module "ldap" returns reject for request 0 modcall: group authorize returns reject for request 0 Invalid user (rlm_ldap: Pairs do not match): [test/\320Q\010,+\270\253\332\360\037I\223\215\302\\\362] (from client localhost port 0) Delaying request 0 for 1 seconds Finished request 0 Going to the next request - --- Walking the entire request list --- Waking up in 1 seconds... - --- Walking the entire request list --- Waking up in 1 seconds... - --- Walking the entire request list --- Sending Access-Reject of id 53 to 127.0.0.1:32769 Waking up in 4 seconds... - --- Walking the entire request list --- Cleaning up request 0 ID 53 with timestamp 41b05403 Nothing to do. Sleeping until we see a request. ... ==== Помоги понять, что я не так делаю. > * bye Спасибо. ---- С уважением, Милоградский H.Э. --- Microsoft Outlook Express 6.00.2900.2180 * Origin: Comment is superfluous... (2:5025/900@fidonet) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/13384a203db5a.html, оценка из 5, голосов 10
|