object not found or got ambiguous search result

Pramada Batchu pramada_batchu at yahoo.com
Tue Sep 23 23:34:25 CEST 2008


Hi,

I am using Active directory as datasource for radius. I am getting "rlm_ldap: object not found or got ambiguous search result". I have configured ldap section as follows:

        ldap {
                server = "192.168.0.1"
                identity = "cn=sjadmin,ou=WID,dc=ecrt,dc=local"
                password = symbol
                basedn = "ou=WID,dc=ecrt,dc=local"
                filter = "(sAMAccountName=%{Stripped-User-Name:-%{User-Name}})"
                start_tls = no
                access_attr = "dialupacces"
                dictionary_mapping = ${raddbdir}/ldap.attrmap
                ldap_connections_number = 5
                #password_header = "{SHA}"
                password_attribute = userPassword
                groupname_attribute = cn
                groupmembership_filter = "(|(&(objectClass=group)(member=%{control:Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{control:Ldap-UserDn})))"
                groupmembership_attribute = radiusGroupName
                timeout = 4
                timelimit = 3
                net_timeout = 1
                access_attr_used_for_allow = no
        }
ldap_build_search_req ATTRS:
    dn
ldap_send_initial_request
ldap_send_server_request
ldap_result ld 0x12026b140 msgid 7
ldap_chkResponseList ld 0x12026b140 msgid 7 all 1
ldap_chkResponseList returns ld 0x12026b140 NULL
wait4msg ld 0x12026b140 msgid 7 (timeout 4000000 usec)
wait4msg continue ld 0x12026b140 msgid 7 all 1
** ld 0x12026b140 Connections:
* host: 192.168.0.1  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Tue Sep 23 21:21:01 2008

** ld 0x12026b140 Outstanding Requests:
 * msgid 7,  origid 7, status InProgress
   outstanding referrals 0, parent count 0
** ld 0x12026b140 Response Queue:
   Empty
ldap_chkResponseList ld 0x12026b140 msgid 7 all 1
ldap_chkResponseList returns ld 0x12026b140 NULL
ldap_int_select
read1msg: ld 0x12026b140 msgid 7 all 1
read1msg: ld 0x12026b140 msgid 7 message type search-result
new result:  res_errno: 0, res_error: <>, res_matched: <>
read1msg: ld 0x12026b140 0 new referrals
read1msg:  mark request completed, ld 0x12026b140 msgid 7
request done: ld 0x12026b140 msgid 7
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 7, msgid 7)
ldap_free_connection 0 1
ldap_free_connection: refcnt 1
ldap_parse_result
rlm_ldap: object not found or got ambiguous search result
ldap_msgfree
rlm_ldap: ldap_release_conn: Release Id: 0


Thanks,
Pramada



      



More information about the Freeradius-Users mailing list