I'm using SUSE 11.
The way in which I managed to fix it is by rebooting the system, going into grub.
Pressing 'e' on the boot loadeder and adding "init=/bin/bash" to the end to boot to a bash prompt.
Changed my password by using
Then unlocking my account by using
pam_tally2 -u $username -r
where the -r resets login attempt