>>ITEM: N00075
>>DATE: 07/09/96
>>TYPE: Information
>>TITLE: N_D_SCAN and N_D_WHOAMI return names with "CN=" prefix
>>PRODUCT(S):
NetLib 6.5x for Clipper
NetLib 2.5x for FoxPro
>>PLATFORM(S):
NetWare 4.1.
>>SUMMARY:
Names returned from the NetLib NDS functions (N_D_WHOAMI, N_D_SCAN, N_D_MEMBERS, etc.) include "CN=" prefix ("non-typeless" names).
>>MORE INFORMATION:
A "non-typeless" name contains the class prefix.
For example, user CN=THISUSER O=THISORG is actually composed of
Common Name (CN=) THISUSER and Organization (O=) THISORG.
The typeless form is THISUSER.THISORG.
Unless specifically altered by the System
Administrator, the default is non-typeless names.
>>RESOLUTION/FIX:
The System Administrator may set the default to "typeless" names.
Alternatively, use the undocumented NetLib function N_D_NAMING.
This function sets/gets the NDS Context flags. The syntax is:
{nCurrentSetting} := N_D_NAMING({nNewSetting})
{nNewSetting} has many potential values, but the value that
affects typeless names is 4. Since the setting is a bitmap,
not a value, use A_OR() to set the appropriate
bit value.
>>EXAMPLE(S):
#define DCV_TYPELESS_NAMES 4
* set typeless names
N_D_NAMING(A_OR(N_D_NAMING(),DCV_TYPELESS_NAMES))
? N_D_WHOAMI()
THISUSER.THISORG
* set non-typeless names
N_D_NAMING(A_AND(A_D_NAMING(),-1-DCV_TYPELESS_NAMES))
? N_D_WHOAMI()
CN=THISUSER O=THISORG
>>SEE ALSO: N00076
>>COPYRIGHT 1997 Communication Horizons
All rights reserved worldwide.
No distribution without specific consent of publisher.
Knowledgebase
Top Home