Problem of character conversion
search cancel

Problem of character conversion

book

Article ID: 128462

calendar_today

Updated On:

Products

Top Secret Top Secret - LDAP

Issue/Introduction

A problem with character conversion between LDAP and TSS.
When these commands profResNameBean2.setTssresname(transform("TSOLA.£ACCT2")); profResNameBean6.setTssresname(transform("TSOLA.§ACCT6")); issued 
The result is TSOLA.1ACCT2 instead of TSOLA.£ACCT2 and TSOLA.5ACCT6 instead of TSOLA.§ACCT6 

Environment

z/os

Cause

The Wrong Codeset is being used
By default, LDAP codeset is set to IBM-1047.
This displays the special characters(§,£) in the resource name as 5 and 1 respectively.

Resolution

The correct codeset needs to be specified using the slapd.con file.
As per this example for codeset is IBM-297.
Substitute 'suffix' for 'host=yourhost,o=ca,c=us' database catss_utf suffix "host=yourhost,o=ca,c=us" naming_mode tss codeset IBM-297