Move get_by_name to LdapBase.

Change-Id: Id75a3c56aeb414c4bee9bcb606033f8f360637bc
Merge "Move get_by_name to LdapBase."