Rdesktop Internal Licensing Error

If you get the following error message when running rdesktop to connect to a Remote Desktop to a Windows server

Autoselected keyboard map en-us
disconnect: Internal licensing error.

Then try running

rm ~/.rdesktop/licence* && rdesktop <windows server name>

There is a license file that gets created when using rdesktop. At some point Microsoft changed their remote desktop authentication, so you need to remove the license file each time before starting rdesktop.