From 464f2172837ecc789f437aeff6806b0f2e6b9bc9 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 30 Nov 2015 02:11:26 +0100 Subject: Save plugin_id for internal operations --- service_passwords.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service_passwords.c b/service_passwords.c index 3d5ca6c..e5ddba4 100644 --- a/service_passwords.c +++ b/service_passwords.c @@ -4,6 +4,8 @@ #include +static Slapi_ComponentId *plugin_id = NULL; + Slapi_PluginDesc bindpdesc = { .spd_id = "service_passwords", .spd_vendor = "spline", @@ -18,5 +20,6 @@ int service_passwords_init(Slapi_PBlock *pb) 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; } -- cgit v1.2.3-1-g7c22