LDAP Search Result Reference
If the server was able to locate the entry referred to by the baseObject but could not search one or more non-local entries, the server may return one or more SearchResultReference messages, each containing a reference to another set of servers for continuing the operation.
If Avaya Aura® Device Services receives a SearchResultReference, it will attempt to resolve the returned LDAP URI, and launch a new query for each returned reference, with the same filter unless a new filter is included in the reference. Any new references will also be followed.
The following is an example of a case when a reference would be returned when a domain is queried about another domain in the forest.
Ie
Source domain, dc=ottawa,dc=valley,dc=eh
Child domain, dc=upper,dc=ottawa,dc=valley,dc=eh
ldapsearch -v -H ldap://ottawa.valley.eh:389 -b "dc=ottawa,dc=valley,dc=eh" "samaccountname=a.upper" mail msrtcsip-primaryuseraddress telephonenumber
ldap_initialize( ldap://ottawa.valley.eh:389/??base )
filter: samaccountname=a.upper
requesting: mail
# extended LDIF
#
# LDAPv3
# base <dc=ottawa,dc=valley,dc=eh> with scope subtree
# filter: samaccountname=a.upper
# requesting: mail
#
# search reference
ref: ldap://upper.ottawa.valley.eh/DC=upper,DC=ottawa,DC=valley,DC=eh
# search reference
ref: ldap://DomainDnsZones.ottawa.valley.eh/DC=DomainDnsZones,DC=ottawa,DC=val
ley,DC=eh
# search result
search: 2
result: 0 Success
# numResponses: 3
# numReferences: 2
LDAP Reference with Active Directory
If you have Active Directory as your Enterprise source and it uses integrated DNS, the forest root will have a ForestDNSZones partition, while all domains with integrated DNS will have a DomainDNSZones partition. The forest root will also contain the Configuration partition.
This means any query to the Active Directory source will return references to all of these partitions.
The following is an example of querying the forest root.
ldapsearch -v -H ldap://west.bytown.city:389 -b "dc=west,dc=bytown,dc=city" "samaccountname=a.west" mail
ldap_initialize( ldap://west.bytown.city:389/??base )
filter: samaccountname=a.west
requesting: mail
# extended LDIF
#
# LDAPv3
# base <dc=west,dc=bytown,dc=city> with scope subtree
# filter: samaccountname=a.west
# requesting: mail
#
# Able West, West Users, west.bytown.city
dn: CN=Able West,OU=West Users,DC=west,DC=bytown,DC=city
mail: a.west@Bytown.City
# search reference
ref: ldap://DomainDnsZones.west.bytown.city/DC=DomainDnsZones,DC=west,DC=bytown,DC=city
# search reference
ref: ldap://ForestDnsZones.west.bytown.city/DC=ForestDnsZones,DC=west,DC=bytown,DC=city
# search reference
ref: ldap://west.bytown.city/CN=Configuration,DC=west,DC=bytown,DC=city
# search result
search: 2
result: 0 Success
# numResponses: 5
# numEntries: 1
# numReferences: 3