title: Alfresco with LDAP doesn't show user email addresses
body: <p>I have an Alfresco 5.0b instance with LDAP authentication configured. The authentication works fine, users can log in and use Alfresco, but their email values doesn't show up in Alfresco even if it's present in LDAP. The LDAP server stores the email values in the <code>mail</code> attribute.</p>
  
  <p>The <code>ldap-authentication.properties</code> file looks like this:</p>
  
  <pre><code>ldap.authentication.active=true
  ldap.authentication.allowGuestLogin=false
  ldap.authentication.userNameFormat=
  ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
  ldap.authentication.java.naming.provider.url=ldap://127.0.0.1:389
  ldap.authentication.java.naming.security.authentication=simple
  ldap.authentication.escapeCommasInBind=false
  ldap.authentication.escapeCommasInUid=false
  ldap.authentication.defaultAdministratorUserNames=
  ldap.synchronization.active=false
  ldap.synchronization.java.naming.security.authentication=simple
  ldap.synchronization.java.naming.security.principal=cn\=admin,dc\=ldap,dc\=local
  ldap.synchronization.java.naming.security.credentials=Password
  ldap.synchronization.queryBatchSize=0
  ldap.synchronization.attributeBatchSize=0
  ldap.synchronization.groupQuery=(objectclass\=posixGroup)
  ldap.synchronization.groupDifferentialQuery=(&amp;(objectClass\=posixGroup)(!(modifyTimestamp&lt;\={0})))
  ldap.synchronization.personQuery=(&amp;(objectclass\=inetOrgPerson)(memberOf=cn\=alfresco-users,ou\=groups,dc\=ldap,dc\=local))
  ldap.synchronization.personDifferentialQuery=(&amp;(objectclass\=inetOrgPerson)(!(modifyTimestamp&lt;\={0})))
  ldap.synchronization.groupSearchBase=ou\=groups,dc\=ldap,dc\=local
  ldap.synchronization.userSearchBase=ou\=people,dc\=ldap,dc\=local
  ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp
  ldap.synchronization.timestampFormat=yyyyMMddHHmmss'Z'
  ldap.synchronization.userIdAttributeName=uid
  ldap.synchronization.userFirstNameAttributeName=givenName
  ldap.synchronization.userLastNameAttributeName=sn
  ldap.synchronization.userEmailAttributeName=mail
  ldap.synchronization.userOrganizationalIdAttributeName=o
  ldap.synchronization.defaultHomeFolderProvider=largeHomeFolderProvider
  ldap.synchronization.groupIdAttributeName=cn
  ldap.synchronization.groupDisplayNameAttributeName=description
  ldap.synchronization.groupType=posixGroup
  ldap.synchronization.personType=inetOrgPerson
  ldap.synchronization.groupMemberAttributeName=memberUid
  ldap.synchronization.enableProgressEstimation=true
  ldap.authentication.java.naming.read.timeout=0
  </code></pre>
  
  <p>The <code>userEmailAttributeName</code> is set to <code>mail</code>, but it seems to be ineffective. How can be this fixed to have the email values present in Alfresco?</p>