what OS is the computer that you are running the script on?

If, you are running a Win2k/XP (or if you have ADSI installed) run this, what does it tell you?

Code:

$user = getobject("WinNT://@domain/@userid")
? "@@error =:" @error
? "@@serror=:" @serror
?
for each $group in $user.groups
? $group.name
next