odissey: print available users during debug bootstrap
@@ -292,4 +292,14 @@ void od_schemeprint(od_scheme_t *scheme, od_log_t *log)
od_log(log, NULL, " pool_min %d", route->pool_min);
od_log(log, NULL, " pool_max %d", route->pool_max);
}
+ if (! od_listempty(&scheme->users)) {
+ od_log(log, NULL, "users");
+ od_listforeach(&scheme->users, i) {
+ od_schemeuser_t *user;
+ user = od_container_of(i, od_schemeuser_t, link);
+ od_log(log, NULL, " <%s>", user->user);
+ if (user->password)
+ od_log(log, NULL, " password '****'");
+ }
+ }
}
