The major rule here is: Never store passwords in clear text - it is a major security risk. There is some information on how to do it here:
Password Storage: How to do it.[
^]
Storing them properly means you never have to search - but the question remains, who wants to search passwords anyway?