files_init.c revision c0f9f5a0f6d71a1596ee3cef549b4b02295313c3
/*
SSSD
files_init.c - Initialization of the files provider
Copyright (C) 2016 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "providers/data_provider/dp.h"
#include "providers/files/files_private.h"
struct data_provider *provider,
const char *module_name,
void **_module_data)
{
struct files_id_ctx *ctx;
int ret;
const char *passwd_file = NULL;
const char *group_file = NULL;
/* So far this is mostly useful for tests */
if (passwd_file == NULL) {
passwd_file = "/etc/passwd";
}
if (group_file == NULL) {
group_file = "/etc/group";
}
return ENOMEM;
}
ctx);
goto done;
}
*_module_data = ctx;
done:
}
return ret;
}
void *module_data,
struct dp_method *dp_methods)
{
struct files_id_ctx *ctx;
return EINVAL;
}
ctx, struct files_id_ctx,
struct dp_id_data, struct dp_reply_std);
NULL, void,
struct dp_get_acct_domain_data, struct dp_reply_std);
return EOK;
}