summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-04-15 14:21:54 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-04-16 15:15:34 -0400
commit264be69c7615a1f65a21805b95a9dbd2736d1fb4 (patch)
tree223e59b96a67efca60acc7903ccc02bc88405d2e /src/providers
parent2a2f38ef88d78a36da6692d9c9a5af670d517a8e (diff)
downloadsssd-264be69c7615a1f65a21805b95a9dbd2736d1fb4.tar.gz
sssd-264be69c7615a1f65a21805b95a9dbd2736d1fb4.tar.xz
sssd-264be69c7615a1f65a21805b95a9dbd2736d1fb4.zip
Make ID provider init functions clearer
Using sssm_*_init() as the name of the initialization function for identity providers was a holdover from earlier development when we thought we would only have a single "provider" entry in the config file. As we have now separated out the initialization functions for auth, chpass and access, we should rename sssm_*_init() to sssm_*_id_init() for a cleaner interface.
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/data_provider_be.c2
-rw-r--r--src/providers/ipa/ipa_init.c10
-rw-r--r--src/providers/ldap/ldap_init.c6
-rw-r--r--src/providers/proxy.c4
4 files changed, 11 insertions, 11 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 239b92af4..69aba6ceb 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -95,7 +95,7 @@ struct sbus_interface be_interface = {
static struct bet_data bet_data[] = {
{BET_NULL, NULL, NULL},
- {BET_ID, CONFDB_DOMAIN_ID_PROVIDER, "sssm_%s_init"},
+ {BET_ID, CONFDB_DOMAIN_ID_PROVIDER, "sssm_%s_id_init"},
{BET_AUTH, CONFDB_DOMAIN_AUTH_PROVIDER, "sssm_%s_auth_init"},
{BET_ACCESS, CONFDB_DOMAIN_ACCESS_PROVIDER, "sssm_%s_access_init"},
{BET_CHPASS, CONFDB_DOMAIN_CHPASS_PROVIDER, "sssm_%s_chpass_init"},
diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c
index 10b9257a2..1689ac28e 100644
--- a/src/providers/ipa/ipa_init.c
+++ b/src/providers/ipa/ipa_init.c
@@ -92,9 +92,9 @@ int common_ipa_init(struct be_ctx *bectx)
return EOK;
}
-int sssm_ipa_init(struct be_ctx *bectx,
- struct bet_ops **ops,
- void **pvt_data)
+int sssm_ipa_id_init(struct be_ctx *bectx,
+ struct bet_ops **ops,
+ void **pvt_data)
{
struct sdap_id_ctx *ctx;
int ret;
@@ -263,9 +263,9 @@ int sssm_ipa_access_init(struct be_ctx *bectx,
return ENOMEM;
}
- ret = sssm_ipa_init(bectx, ops, (void **) &ipa_access_ctx->sdap_ctx);
+ ret = sssm_ipa_id_init(bectx, ops, (void **) &ipa_access_ctx->sdap_ctx);
if (ret != EOK) {
- DEBUG(1, ("sssm_ipa_init failed.\n"));
+ DEBUG(1, ("sssm_ipa_id_init failed.\n"));
goto done;
}
diff --git a/src/providers/ldap/ldap_init.c b/src/providers/ldap/ldap_init.c
index b1f053fbc..b74ffc215 100644
--- a/src/providers/ldap/ldap_init.c
+++ b/src/providers/ldap/ldap_init.c
@@ -46,9 +46,9 @@ struct bet_ops sdap_chpass_ops = {
.finalize = sdap_shutdown
};
-int sssm_ldap_init(struct be_ctx *bectx,
- struct bet_ops **ops,
- void **pvt_data)
+int sssm_ldap_id_init(struct be_ctx *bectx,
+ struct bet_ops **ops,
+ void **pvt_data)
{
struct sdap_id_ctx *ctx;
const char *urls;
diff --git a/src/providers/proxy.c b/src/providers/proxy.c
index 60d86b096..4da89cccd 100644
--- a/src/providers/proxy.c
+++ b/src/providers/proxy.c
@@ -1445,8 +1445,8 @@ static void *proxy_dlsym(void *handle, const char *functemp, char *libname)
return funcptr;
}
-int sssm_proxy_init(struct be_ctx *bectx,
- struct bet_ops **ops, void **pvt_data)
+int sssm_proxy_id_init(struct be_ctx *bectx,
+ struct bet_ops **ops, void **pvt_data)
{
struct proxy_ctx *ctx;
char *libname;