42sd Absent Member.
Absent Member.
1221 views

Updating User NetID

I posted this via google groups and it never showed up.. so at some point,
there might be a dupe, but here we are...

---

I'm trying my first foray into GroupWise programming and I'm attempting
to update a user's netID, which is essentially the dn of the user. The
user has been renamed, in my test instance, from afcsmb1 to afcsmb2.

I get a hold of the IADUser object and try the following...

if(strcmp((char *)&Name, "afcsmb1")==0)
{
printf("Found usern");
pIADUser->get_NetID(&bstrName);
strcpy(DN, FROM_OLE_STRING(bstrName));
SysFreeString(bstrName);
strcpy(DN, "afcsmb2.AFC.FIELD.WMATA");
pIADUser->put_NetID(ConvertToUnicode(DN));
//pIADUser->MoveWithinTree( ConvertToUnicode(DN));
pIADUser->Commit();

printf("Didn't crash %sn", DN);
}

Is there anything I'm missing? As you can see, I've tried both
put_NetID and MoveWithinTree. I'm renaming users the LDF and would
like to either rename them in Groupwise, which I don't think is easily
possible, or get them in a position to do a massive graft operation on
a container to relink the eDir account and Groupwise.

Thanks in advance for any help/ideas.

Scott

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.