MRL
Welcome to the Discussions.
Password protection can be implemented at disk (HDD) level or at the System (OS) level. In the former, you may not even get to the desktop without the password. Can you (or, rather, the Mac) get to the desktop? Are you presented with a screenful of largeish framed icons of applications? If so, At Ease may be the installed program (depending on the age of the Mac and its installed OS).
At Ease can be 'uninstalled' with the install (floppy) disk, whereafter there are no further problems of access. However, if you do not have At Ease, which is now quite long in the tooth, your best recourse is to reformat the hard disk totally. This is, generally, the method to remove a disk-level password also. The loss of all software, to which you do not have title unless you have the install disks/CDs, is a collateral that you have to endure.