Groups > Novell > NDS Client > Re: Multi-Language support for attribute names




Multi-Language support for attribute names

Multi-Language support for attribute names
Fri, 04 Mar 2005 21:07:55 GMT
I am writing an NLM that looks for group membership for a particular user.
I found some sample code on the Novell development site. 
The name of the sample program is GRPMEMBR.C (located at
http://developer.novell.com/support/sample/tids/membrgrp/grpmembr.c).

My question has to do with the attribute name that is passed into the
“NWDSPutAttrName” API.  Passing in an 
English string like "Group Membership" for the DS attribute name
seems
language dependent.  Will this work for all languages?  
Is there a NetWare API for looking up the appropriate string at runtime?


Code in question:

dscCode = NWDSPutAttrName(dContext, inBuf ;
               if ( dscCode < 0 )
                               {
                               goto _FreeBuf;
                               }


Thanks,

Jeffrey 

Post Reply
Re: Multi-Language support for attribute names
Fri, 04 Mar 2005 23:10:51 GMT
macfar wrote:

> My question has to do with the attribute name that is passed into the
> NWDSPutAttrName API.  Passing in an 
> English string like "Group Membership" for the DS attribute name
seems
> language dependent.  Will this work for all languages?  

Yes, it will work for all languages, because the eDirectory Attribute 
Names are English only (same counts for LDAP).

Post Reply
about | contact