Does anyone have, or can direct me to, a cgi wrapper than I can use for the login process when supplied with a username and password?

Specifically, I have chatroom software supplied by another vendor and I would like to authenticate the user based on their UBB credentials. I used to do this with DigiChat but the cgi script broke when I upgraded to UBB 6.7.

Jeff