(find_db_spec): match realm-less as the default realm.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21462 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -85,9 +85,12 @@ find_db_spec(kadm5_server_context *ctx)
|
|||||||
while ((d = hdb_dbinfo_get_next(info, d)) != NULL) {
|
while ((d = hdb_dbinfo_get_next(info, d)) != NULL) {
|
||||||
const char *p = hdb_dbinfo_get_realm(context, d);
|
const char *p = hdb_dbinfo_get_realm(context, d);
|
||||||
|
|
||||||
if(strcmp(ctx->config.realm, p) != 0)
|
/* match default (realm-less) */
|
||||||
|
if(p != NULL && strcmp(ctx->config.realm, p) != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
p = hdb_dbinfo_get_dbname(context, d);
|
||||||
|
if (p)
|
||||||
ctx->config.dbname = strdup(p);
|
ctx->config.dbname = strdup(p);
|
||||||
|
|
||||||
p = hdb_dbinfo_get_acl_file(context, d);
|
p = hdb_dbinfo_get_acl_file(context, d);
|
||||||
|
Reference in New Issue
Block a user