Jim Lebay <[EMAIL PROTECTED]> writes:
: 
: 
: Help!  I can't get the following code to work.  I'm trying to fetch a
: user's PTS group memberships.  The basic idea is: 
: 
:     setpag();
:     ka_UserAuthenticateGeneral( user, passwd);
:     pr_ListMembers( user, &groups);
:     ktc_ForgetAllTokens();

The problem is probably that the pts init is in a different pag
than the pts call. You're doing:

  setpag();
  pr_Initialize();
  ka_UserAuthenticateGeneral() + setpag();
  pr_ListMembers();
  ktc_ForgetAllTokens();

Try:

  ka_UserAuthenticateGeneral() + setpag();
  pr_Initialize();
  pr_ListMembers();
  pr_End();
  ktc_ForgetAllTokens();

BTW, if you don't get pr_End() in there, you'll generate more traffic
to the pts server, as the last pts call never gets acked by the
client.

Hope this helps.


William

Reply via email to