Hi,
Depending on the softphone and CallManager version simply add a user through CCMADMIN > Global Directory, then associate the directory number with the user.
In IP Communicator (softphone) right-click > Properties, complete the directory username and password fields...
HTH
Peter
CCNA, Cisco Qualified Specialist