You can store user photos in the Domino® LDAP directory
and enable UserInfo to retrieve them. A third-party LDAP management
tool is required for adding a JPEG Photo field to Domino LDAP. Most LDAP
V3-compliant tools will work.
Before you begin
Configuring Business Card with an authenticated LDAP bind
account is highly recommended. Allowing Anonymous LDAP Schema write
access is a security risk and additional security changes to Domino Directory Access
Control List may be required to allow anonymous write access to the
Domino LDAP directory.
Procedure
- Use Domino Administrator
to enable Domino LDAP
directory write access. Within default Configuration Setting
Document LDAP, click Yes to Allow
LDAP users write access.
- Using the third party LDAP tool, connect to the Domino LDAP server and
bind as a Domino Administrator.
Once a successful connection is made, select a user and add an Attribute.
The Attribute name for the Domino LDAP directory
should be specified as: jpegphoto;binary and
the type should be selected as binary. Note the name being used for
the attribute. If you use just jpegPhoto or Photo as
the name, depending on the LDAP tool, you might not be able to store
images in the field. The -;binary is required
for the Domino LDAP
directory to understand the binary data.
- Use the third-party LDAP tool to import the JPEG or GIF
photo into the new field.
Note: The size of the image should
be smaller than 45 KB (recommended: 10 KB).
- Use ldapsearch or the LDAP tool to check
that the photo has uploaded successfully
- Log in to the Integrated Solutions Console.
- Click .
- In the Sametime Community Servers list,
click the deployment name of the server with the connectivity information
that you want to change.
- Click the Business Card tab.
- In the Business Card Contents section, select the Photo attribute,
and then click Add to include it in the business
card.
- In the Attribute Definition section,
choose User Defined as the attribute value
for Photo.
- In the User Defined column following Photo,
type jpegphoto;binary.
- Click OK.
- Open the LDAP server's Domino Directory (names.nsf)
in a Notes® client.
- Expand the , and select the Configurations view.
Open this document in Edit mode and click the
Basic tab. Enable the Use these settings as the default
settings for all servers option. The LDAP tab appears.
- Click the LDAP tab. Click Choose Fields that
Anonymous Users Can Query via LDAP.
- Click New in the window that
displays.
- Type jpegphoto in the field and
click OK to save the value. Click OK again
to close the window.
- Save and close the document.
- Restart the LDAP server. From the server console, type tell
ldap quit and then load ldap.
- Using LDAP tool or ldapsearch, check
if you can anonymously retrieve jpegPhoto.
See
"ldapsearch utility" in the Domino Administrator
Help at https://www.ibm.com/developerworks/lotus/documentation/domino/
- Browse to UserInfoConfig.xml file
within the Domino Install
folder. In the "Details" section, check to make sure Photo field
is set to jpegPhoto;binary.
<Detail Id="Photo" FieldName="jpegPhoto;binary" Type="image/jpeg" />
- Restart the Sametime® Community
Server.