What are you wanting to accomplish with this...
1. just store all kinds of passwords securely in a database for users to retrieve. If this is all you need, you may look at using MySQL with PHP and serve secure webpages with the passwords, as ONE option.
2. Or does the database need to feed to passwords to applications? That of course is more involved.
2. Server as a central authentication point for infrastructure access? In that case, ONE option would be to look at LDAP, such as OpenLDAP
OpenLDAP