summaryrefslogtreecommitdiffstats
path: root/src/confdb
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2012-03-29 04:39:42 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-04-24 09:19:42 -0400
commitd3f2fd9cb21cc10dce663a2f7d0deda07074e44e (patch)
treed67ea0f96ea4b0878577c304ccf5b5d1bab515d0 /src/confdb
parent20d0bc6d587f346238062df4da5edfde815e59b1 (diff)
downloadsssd-d3f2fd9cb21cc10dce663a2f7d0deda07074e44e.tar.gz
sssd-d3f2fd9cb21cc10dce663a2f7d0deda07074e44e.tar.xz
sssd-d3f2fd9cb21cc10dce663a2f7d0deda07074e44e.zip
Add conn_name to allow different names for domains and connections
Diffstat (limited to 'src/confdb')
-rw-r--r--src/confdb/confdb.c1
-rw-r--r--src/confdb/confdb.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c
index 04f02b5cc..0320797cd 100644
--- a/src/confdb/confdb.c
+++ b/src/confdb/confdb.c
@@ -727,6 +727,7 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb,
ret = ENOMEM;
goto done;
}
+ domain->conn_name = domain->name;
tmp = ldb_msg_find_attr_as_string(res->msgs[0],
CONFDB_DOMAIN_ID_PROVIDER,
diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h
index 370970b81..d0b383e56 100644
--- a/src/confdb/confdb.h
+++ b/src/confdb/confdb.h
@@ -170,6 +170,7 @@ struct config_file_ctx;
*/
struct sss_domain_info {
char *name;
+ char *conn_name;
char *provider;
int timeout;
bool enumerate;