Warning in Logs: Could not find the attribute
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When connected to a LDAP server, Fisheye fails to fetch some of the LDAP attributes and reports the following warning in the fisheye-debug-<date>.log file:
Exception
1
2012-12-06 12:01:30,117 WARN [btpool0-3394 ] fisheye LDAPAuth-extract - Could not find the attribute '' in LDAP
Cause
One of the LDAP attributes is missing from Fisheye configuration. In this example it was the displyName Attribute, as per the <FISHEYE_INST>/config.xml:
1
2
3
4
<ldap auto-add="true" url="<LDAP URL>"
base-dn="cn=users, dc=example, dc=atlassian, dc=com" filter="(uid=${USERNAME})
" uid-attr="uid" positive-cache-ttl="5 minutes" displayname-attr=""
resync="true" resyncPeriod="1 hour"/>
notice the displayname-attr="" is blank.
Resolution
Update this element:
1
2
3
4
<ldap auto-add="true" url="<LDAP URL>"
base-dn="cn=users, dc=example, dc=atlassian, dc=com" filter="(uid=${USERNAME})
" uid-attr="uid" positive-cache-ttl="5 minutes" displayname-attr=""
resync="true" resyncPeriod="1 hour"/>
as follows:
1
2
3
4
<ldap auto-add="true" url="<LDAP URL>"
base-dn="cn=users, dc=example, dc=atlassian, dc=com" filter="(uid=${USERNAME})
" uid-attr="uid" positive-cache-ttl="5 minutes" displayname-attr="displayName"
resync="true" resyncPeriod="1 hour"/>
Was this helpful?