Just thought I'd leave a note: you can get working source code for CIFS authentication out of the fetchmail source code; it was a simple cut and paste job for me to make it work. If you wanted to upgrade OpenAFS for windows so that it would use encrypted authentication (instead of the random username scheme) you could use that code to do it.