Warning in Logs: Could not find the attribute

Still need help?

The Atlassian Community is here for you.

Ask the community

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
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:

<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:

<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:

<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"/>

 

 

 

 

Last modified on Dec 27, 2012

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.