kFilterUserNameList & AddGroupsToList

Trying to log a non-registered user in to Domino via dsapi. The user needs to stay un-registered since we want a third party system to control user login and not leave any artifacts in the PNAB that would allow a user to login outside of the third party system authorization system.

User info is received via http headers, including username and group that they need to be assigned. Able to authenticate the user via dsapi, however, group assignment is not working. The following snippet of code is what is utilized:

DLLEXPORT int HttpFilterProc(FilterContext* context, unsigned int eventType, void* eventData)

{

case kFilterUserNameList:

return BuildUserNameList(context, (FilterUserNameList *)eventData);

}

int BuildUserNameList(FilterContext* context, FilterUserNameList* authData)

{

groupNamesAssigned = “Group1”;

fn_return = authData->PopulateUserNameList(context, (LMBCS*)groupNamesRetrieved, 1000, &numGroupNamesRetrieved, res, &errID);

fn_return = authData->AddGroupsToList(context, (LMBCS*)groupNamesAssigned, numGroupNamesAssigned, res, &errID);

return kFilterHandledEvent;

}

The user is assigned the “Group1” group initially, but attempts to navigate into the app cause an error:

“HTTP Web Server: Invalid POST Request Exception [/test.nsf/home_page_form?OpenForm&Seq=1]”

FYI: this entry in our notes.ini file:

CheckCacheBeforeDSAPI=1