免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3061 | 回复: 0
打印 上一主题 下一主题

[ldap] 求助,freeradis和ldap server认证失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-21 21:08 |只看该作者 |倒序浏览
1.freeradius的错误信息如下radtest johnhhj johnhhj .....)


  1. adding new entry "cn=john he,ou=People,dc=aer,dc=com"
  2. rad_recv: Access-Request packet from host 127.0.0.1:32769, id=13, length=59
  3.         User-Name = "johnhhj"
  4.         User-Password = "johnhhj"
  5.         NAS-IP-Address = 255.255.255.255
  6.         NAS-Port = 0
  7.   Processing the authorize section of radiusd.conf
  8. modcall: entering group authorize for request 8
  9.   modcall[authorize]: module "preprocess" returns ok for request 8
  10.   modcall[authorize]: module "chap" returns noop for request 8
  11.   modcall[authorize]: module "mschap" returns noop for request 8
  12.     rlm_realm: No '@' in User-Name = "johnhhj", looking up realm NULL
  13.     rlm_realm: Found realm "NULL"
  14.     rlm_realm: Proxying request from user johnhhj to realm NULL
  15.     rlm_realm: Adding Realm = "NULL"
  16.     rlm_realm: Authentication realm is LOCAL.
  17.   modcall[authorize]: module "suffix" returns noop for request 8
  18.   rlm_eap: No EAP-Message, not doing EAP
  19.   modcall[authorize]: module "eap" returns noop for request 8
  20.     users: Matched entry DEFAULT at line 153
  21.   modcall[authorize]: module "files" returns ok for request 8
  22. rlm_ldap: - authorize
  23. rlm_ldap: performing user authorization for johnhhj
  24. radius_xlat:  '(uid=johnhhj)'
  25. radius_xlat:  'ou=People,o=aer.com'
  26. rlm_ldap: ldap_get_conn: Checking Id: 0
  27. rlm_ldap: ldap_get_conn: Got Id: 0
  28. rlm_ldap: attempting LDAP reconnection
  29. rlm_ldap: (re)connect to 127.0.0.1:389, authentication 0
  30. rlm_ldap: bind as cn=root,o=aer.com,c=UA/ to 127.0.0.1:389
  31. rlm_ldap: waiting for bind result ...
  32. rlm_ldap: cn=root,o=aer.com,c=UA bind to 127.0.0.1:389 failed Server is unwilling to perform
  33. rlm_ldap: (re)connection attempt failed
  34. rlm_ldap: search failed
  35. rlm_ldap: ldap_release_conn: Release Id: 0
  36.   modcall[authorize]: module "ldap" returns fail for request 8
复制代码

modcall: leaving group authorize (returns fail) for request 8



2. radius.conf中ldap相关的配置


  1.         ldap {
  2.                 server = "127.0.0.1"
  3.                 identity = "cn=root,o=aer.com"
  4. #               password = mypass
  5.                 basedn = "ou=People,o=aer.com"
  6.                 filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
  7.                 password_attribute = userPassword
  8.                 access_attr = "People"
复制代码





3. ldap server中的记录如下:

  1. # # extended LDIF
  2. #
  3. # LDAPv3
  4. # base <> with scope subtree
  5. # filter: (objectclass=*)
  6. # requesting: ALL
  7. #

  8. # aer.com
  9. dn: dc=aer,dc=com
  10. objectClass: top
  11. objectClass: domain
  12. dc: aerohive

  13. # People, aer.com
  14. dn: ou=People,dc=aer,dc=com
  15. objectClass: top
  16. objectClass: organizationalUnit
  17. ou: People

  18. # Group, aer.com
  19. dn: ou=Group,dc=aer,dc=com
  20. objectClass: top
  21. objectClass: organizationalUnit
  22. ou: Group

  23. # johnhhj, People, aer.com
  24. dn: cn=johnhhj,ou=People,dc=aer,dc=com
  25. cn: johnhhj
  26. uid: johnhhj
  27. sn: JOHNHHJ
  28. userPassword:: am9obmhoag==
  29. telephoneNumber: 0571-88134606
  30. objectClass: inetOrgPerson

  31. # johnhhj2, People, aer.com
  32. dn: cn=johnhhj2,ou=People,dc=aer,dc=com
  33. cn: johnhhj2
  34. uid: johnhhj2
  35. sn: JOHNHHJ2
  36. userPassword:: am9obmhoajI=
  37. telephoneNumber: 0574-88134606
  38. objectClass: inetOrgPerson

复制代码

[ 本帖最后由 johnhhj 于 2007-5-23 11:40 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP