get_basedn
if (get_basedn(databasetype, &inputbasedn) !=
static int get_basedn(char *service, char **basedn);