summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-06-10 14:49:58 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-06-12 21:28:06 -0400
commit6199bd6b41e8b280e65db4b4bb17a1c5c0444aa9 (patch)
treea4c92cd0bb17fbcb32af632a3cec354c182e4901 /src
parent1ed3a0d1d98ae410fcd716ec5c7202de2c082597 (diff)
downloadsssd-6199bd6b41e8b280e65db4b4bb17a1c5c0444aa9.tar.gz
sssd-6199bd6b41e8b280e65db4b4bb17a1c5c0444aa9.tar.bz2
sssd-6199bd6b41e8b280e65db4b4bb17a1c5c0444aa9.zip
LDAP: Make sdap_initgr_common_store() non-static
Move it to a private header so it can be reused by other initgroups C files.
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c14
-rw-r--r--src/providers/ldap/sdap_async_private.h8
2 files changed, 15 insertions, 7 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 34a8e36a..8524b137 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -196,13 +196,13 @@ fail:
return ret;
}
-static int sdap_initgr_common_store(struct sysdb_ctx *sysdb,
- struct sdap_options *opts,
- const char *name,
- enum sysdb_member_type type,
- char **sysdb_grouplist,
- struct sysdb_attrs **ldap_groups,
- int ldap_groups_count)
+int sdap_initgr_common_store(struct sysdb_ctx *sysdb,
+ struct sdap_options *opts,
+ const char *name,
+ enum sysdb_member_type type,
+ char **sysdb_grouplist,
+ struct sysdb_attrs **ldap_groups,
+ int ldap_groups_count)
{
TALLOC_CTX *tmp_ctx;
char **ldap_grouplist = NULL;
diff --git a/src/providers/ldap/sdap_async_private.h b/src/providers/ldap/sdap_async_private.h
index c107a838..c0faab50 100644
--- a/src/providers/ldap/sdap_async_private.h
+++ b/src/providers/ldap/sdap_async_private.h
@@ -106,6 +106,14 @@ int sdap_save_users(TALLOC_CTX *memctx,
int num_users,
char **_usn_value);
+int sdap_initgr_common_store(struct sysdb_ctx *sysdb,
+ struct sdap_options *opts,
+ const char *name,
+ enum sysdb_member_type type,
+ char **sysdb_grouplist,
+ struct sysdb_attrs **ldap_groups,
+ int ldap_groups_count);
+
errno_t get_sysdb_grouplist(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
const char *name,