Hi
Recently I had a problem on version 5.5 where certain users could not log in via PPTP. The windows error was "username or password is invalid on the domain". On inspection of /var/log/messages the error was "MSCHAP authentication failure". I knew that the passwords for PPTP are verified against the /etc/smbpasswd file. But the password was right as I could correctly browse the network with these usernames, and access shares on this server using the same username/password that I used while tying to login via PPTP.
Eventually I found the problem to be that there was a user with the same name as the server, and that all users that were added after this particular user were unable to login via PPTP. I found that if I edited the /etc/smbpasswd file and moved the entry for the user that had the same name as the server to the end of the file, then all user were able to login via PPTP again.
The problem appears to be that while libsmbpw is going through the /etc/smbpasswd it seems to not parse, or correctly parse lines after it encounters one with a username that is the same as the server name.
I spent many hours troubleshooting this, and I hope that this message could save someone some time if they encounter this problem.
Kind regards,
Paul McEnery
'LinuxIT - Experts in Open Source'
http://www.linuxit.com