Try a google search on LDAP, the Lightweight Directory Access Protocol. An OpenScource implementation can be found here http://www.openldap.org/

Maybe that is what you are looking for.