- 论坛徽章:
- 0
|
1.freeradius的错误信息如下 radtest johnhhj johnhhj .....)
- adding new entry "cn=john he,ou=People,dc=aer,dc=com"
- rad_recv: Access-Request packet from host 127.0.0.1:32769, id=13, length=59
- User-Name = "johnhhj"
- User-Password = "johnhhj"
- NAS-IP-Address = 255.255.255.255
- NAS-Port = 0
- Processing the authorize section of radiusd.conf
- modcall: entering group authorize for request 8
- modcall[authorize]: module "preprocess" returns ok for request 8
- modcall[authorize]: module "chap" returns noop for request 8
- modcall[authorize]: module "mschap" returns noop for request 8
- rlm_realm: No '@' in User-Name = "johnhhj", looking up realm NULL
- rlm_realm: Found realm "NULL"
- rlm_realm: Proxying request from user johnhhj to realm NULL
- rlm_realm: Adding Realm = "NULL"
- rlm_realm: Authentication realm is LOCAL.
- modcall[authorize]: module "suffix" returns noop for request 8
- rlm_eap: No EAP-Message, not doing EAP
- modcall[authorize]: module "eap" returns noop for request 8
- users: Matched entry DEFAULT at line 153
- modcall[authorize]: module "files" returns ok for request 8
- rlm_ldap: - authorize
- rlm_ldap: performing user authorization for johnhhj
- radius_xlat: '(uid=johnhhj)'
- radius_xlat: 'ou=People,o=aer.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 127.0.0.1:389, authentication 0
- rlm_ldap: bind as cn=root,o=aer.com,c=UA/ to 127.0.0.1:389
- rlm_ldap: waiting for bind result ...
- rlm_ldap: cn=root,o=aer.com,c=UA bind to 127.0.0.1:389 failed Server is unwilling to perform
- rlm_ldap: (re)connection attempt failed
- rlm_ldap: search failed
- rlm_ldap: ldap_release_conn: Release Id: 0
- modcall[authorize]: module "ldap" returns fail for request 8
复制代码
modcall: leaving group authorize (returns fail) for request 8
2. radius.conf中ldap相关的配置
- ldap {
- server = "127.0.0.1"
- identity = "cn=root,o=aer.com"
- # password = mypass
- basedn = "ou=People,o=aer.com"
- filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
- password_attribute = userPassword
- access_attr = "People"
复制代码
3. ldap server中的记录如下:
- # # extended LDIF
- #
- # LDAPv3
- # base <> with scope subtree
- # filter: (objectclass=*)
- # requesting: ALL
- #
-
- # aer.com
- dn: dc=aer,dc=com
- objectClass: top
- objectClass: domain
- dc: aerohive
-
- # People, aer.com
- dn: ou=People,dc=aer,dc=com
- objectClass: top
- objectClass: organizationalUnit
- ou: People
-
- # Group, aer.com
- dn: ou=Group,dc=aer,dc=com
- objectClass: top
- objectClass: organizationalUnit
- ou: Group
-
- # johnhhj, People, aer.com
- dn: cn=johnhhj,ou=People,dc=aer,dc=com
- cn: johnhhj
- uid: johnhhj
- sn: JOHNHHJ
- userPassword:: am9obmhoag==
- telephoneNumber: 0571-88134606
- objectClass: inetOrgPerson
-
- # johnhhj2, People, aer.com
- dn: cn=johnhhj2,ou=People,dc=aer,dc=com
- cn: johnhhj2
- uid: johnhhj2
- sn: JOHNHHJ2
- userPassword:: am9obmhoajI=
- telephoneNumber: 0574-88134606
- objectClass: inetOrgPerson
复制代码
[ 本帖最后由 johnhhj 于 2007-5-23 11:40 编辑 ] |
|