Does anyone have any working code for checking if a user is in a PTS group?

I have some code currently that uses the pr_Initialize and pr_IsAMemberOf 
functions, but it doesn't work, gives a bus error in pr_Initialize.  

Basically, I would like a routine that can be passed two strings, a user 
name and a group name, and return 1 or 0 depending on whether or not they 
are in the group.

Even a quick snippet on how to use some of the calls that have a 
rx_connection parameter would be helpful.

What would be really nice would be a copy of the source to pts. *grin*

-- Nathan

------------------------------------------------------------
Nathan Neulinger                  Univ. of Missouri - Rolla
EMail: [EMAIL PROTECTED]                    Computer Center
WWW: http://www.umr.edu/~nneul      SysAdmin: rollanet.org

Reply via email to