HP UX Red Hat Direry Server Software manual File contents are then converted to UTF-8, 550

Models: UX Red Hat Direry Server Software

1 638
Download 638 pages 23.73 Kb
Page 570
Image 570

Appendix A. LDAP Data Interchange Format

employees to be able to view directory information in their native language. When adding directory entries, the directory administrator chooses to provide attribute values in both English and French. When adding a directory entry for a new employee, Babs Jensen, the administrator does the following:

1.The administrator creates a file, street.txt, with the French street address value:

1 rue de l'Université

2.The file contents are then converted to UTF-8:

iconv -t UTF-8 -o output.txt street.txt

3.The following LDIF entry is created using the UTF-8 value of the street address value for streetAddress;lang-fr.

dn: uid=bjensen,ou=people,dc=example,dc=com

objectclass: top

objectclass: person

objectclass: organizationalPerson

name: Babs Jensen

cn: Babs Jensen

sn: Jensen

uid: bjensen

streetAddress: 1 University Street

streetAddress;lang-en: 1 University Street

streetAddress;lang-fr:: AasljdoaAJASI023909jaASJaonasd0ADS

preferredLanguage: fr

The double colons after the attribute name and subtype indicate that the value is binary base-64 encoded.

Users accessing this directory entry with an LDAP client with the preferred language set to English will see the address 1 University Street. Users accessing the directory with an LDAP client with the preferred language set to French will see the address 1 rue de l'Université.

550

Page 570
Image 570
HP UX Red Hat Direry Server Software manual File contents are then converted to UTF-8, 550