You should be aware of the following issues when coding for sybmapname:
Take care with the sample sybmapname.c program and any modifications to it. Avoid code that may segfault, that may call exit(), that may call system calls(), that may change UNIX signals, or make any blocking calls. Improper coding or calls may interfere with the Adaptive Server engine currently running.
Coding errors in sybmapname are not
Sybase’s responsibility. The code is owned and supported
by the user.
Code defensively, check all pointers before de-referencing them, and avoid system calls. This must be a quick name filtering function.
Avoid use of 'goto'
statements
since, depending on the platform, these can have unexpected side
effects.
When multiple realms are used, you should take care
to map the user principal names to a suitable login name to reflect
the realm information. For example, if there are two users whose
user principal names are userA@REALMONE
and userB@REALMTWO
.
They are mapped to the login names userA_REALMONE
and userB_REALMTWO
respectively
instead of userA
or userB
.
This is for distinguishing the two users who belong to different
realms.