Boot into single user mode (press Command-S at power on) and execute these commands:
root$ fsck -fy
root$ mount -uw /
root$ launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
root$ *dscl . -passwd /Users/username password
root$ reboot