blob: e5ddba4be55df88eca5b22960dfd526c8bbd2dfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <stdio.h>
#include <string.h>
#include <syslog.h>
#include <slapi-plugin.h>
static Slapi_ComponentId *plugin_id = NULL;
Slapi_PluginDesc bindpdesc = {
.spd_id = "service_passwords",
.spd_vendor = "spline",
.spd_version = "1.0",
.spd_description = "preoperation plugin "
"to authenticate a bind against different passwords"
};
int service_passwords_init(Slapi_PBlock *pb)
{
int rc = 0;
rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, SLAPI_PLUGIN_CURRENT_VERSION);
rc |= slapi_pblock_set(pb, SLAPI_PLUGIN_DESCRIPTION, (void *) &bindpdesc);
rc |= slapi_pblock_get(pb, SLAPI_PLUGIN_IDENTITY, &plugin_id);
return rc;
}
|