Searching for entries that contain attributes with language tags

Use this information to search for entries that contain attributes with language tags.

Procedure

  1. Enter the following command.
    idsldapsearch -b "o=sample" "cn=Mark Anthony" sn
    The following results are returned:
    cn=Mark Anthony,o=sample
    sn=Anthony
    sn;lang-spanish=Antonio
    Note: Only sn;lang-spanish is displayed in the output.
  2. Enter the following command.
    idsldapsearch -b "o=sample" "sn;lang-spanish=Antonio"
    The following results are returned:
    cn=Mark Anthony,o=sample
    sn;lang-spanish=Antonio
    Note: Only sn;lang-spanish is displayed in the output.
  3. Enter the following command.
    idsldapsearch -b "o=sample" "sn;lang-spanish=Antonio"
    The entire entry is returned as follows:
    cn=Mark Anthony,o=sample
    objectclass=person
    objectclass=top
    cn=Mark Anthony
    sn=Anthony
    sn;lang-spanish=Antonio