Groups > Novell > NDS Client > Re: NWDSModifyObject returns 0x8890




NWDSModifyObject returns 0x8890

NWDSModifyObject returns 0x8890
Mon, 28 Mar 2005 22:07:46 GMT
Hello,

I'm trying to modify the Group Membership/Security Equals of an account.   
When I make the actual NWDSModifyObject call I get an 0x8890 error on 
the NWDSModifyObject call.  

The following is some pseudo code.

GroupNDSContext = "NDS:\\TRENTO3-TREE\Cont\Group1"
UserNDSContext = "NDS:\\TRENTO3-TREE\Cont\User1"

// Setup incoming data
WideCharToMultiByte(CP_ACP, 0, GroupNDSContext + 5, wcslen
(GroupNDSContext) - 5, strGroupContext, MAX_DN_CHARS, NULL, NULL);

WideCharToMultiByte(CP_ACP, 0, UserNDSContext + 5, wcslen
(UserNDSContext) - 5, strUserContext, MAX_DN_CHARS, NULL, NULL);

// Add the value into our pBuf
ccode = NWDSPutChangeAndVal(contextHandle, pBuf, DS_ADD_VALUE, "Group 
Membership", SYN_DIST_NAME, strGroupContext);
    
ccode = NWDSPutChangeAndVal(contextHandle, pBuf, DS_ADD_VALUE, "Security 
Equals", SYN_DIST_NAME, strGroupContext);
    
ccode = NWDSModifyObject(contextHandle, strUserContext, 
&lIterationHandle, 0, pBuf);

Any thoughts?

Thanks,

Post Reply
Re: NWDSModifyObject returns 0x8890
Tue, 29 Mar 2005 08:46:22 GMT
Shane wrote:
> Hello,
> 
> I'm trying to modify the Group Membership/Security Equals of an account.  

> When I make the actual NWDSModifyObject call I get an 0x8890 error on 
> the NWDSModifyObject call.  
> 
> The following is some pseudo code.
> 
> GroupNDSContext = "NDS:\\TRENTO3-TREE\Cont\Group1"
> UserNDSContext = "NDS:\\TRENTO3-TREE\Cont\User1"
> 
> // Setup incoming data
> WideCharToMultiByte(CP_ACP, 0, GroupNDSContext + 5, wcslen
> (GroupNDSContext) - 5, strGroupContext, MAX_DN_CHARS, NULL, NULL);
> 
> WideCharToMultiByte(CP_ACP, 0, UserNDSContext + 5, wcslen
> (UserNDSContext) - 5, strUserContext, MAX_DN_CHARS, NULL, NULL);
> 
> // Add the value into our pBuf
> ccode = NWDSPutChangeAndVal(contextHandle, pBuf, DS_ADD_VALUE, "Group

> Membership", SYN_DIST_NAME, strGroupContext);
>     
> ccode = NWDSPutChangeAndVal(contextHandle, pBuf, DS_ADD_VALUE,
"Security 
> Equals", SYN_DIST_NAME, strGroupContext);
>     
> ccode = NWDSModifyObject(contextHandle, strUserContext, 
> &lIterationHandle, 0, pBuf);
> 
> Any thoughts?
> 
> Thanks,
> 
> Shane
Hi Shane,

I don't see any problem  in your code, but I think it is better to use 
NWDSAddSecurityEquiv so both object get updated.

Post Reply
Re: NWDSModifyObject returns 0x8890
Wed, 30 Mar 2005 02:27:30 GMT
If that or something else resolves the problem, will you post back?  Also if
it doesn't...  I'm interested in this issue.

Thanks
Susan

Post Reply
about | contact