diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2015-11-24 02:55:55 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2015-11-30 02:16:41 +0100 |
commit | e0e28b45f9415e6d21fc6e52904f8c1ed1cb6118 (patch) | |
tree | c7616764b389edf8cc7cc0291cf49065066e1e87 /service_passwords.c | |
parent | 205fd2d988145dd4772d9086fa5fff9229827513 (diff) | |
download | ldap-plugin-e0e28b45f9415e6d21fc6e52904f8c1ed1cb6118.tar.gz ldap-plugin-e0e28b45f9415e6d21fc6e52904f8c1ed1cb6118.tar.bz2 ldap-plugin-e0e28b45f9415e6d21fc6e52904f8c1ed1cb6118.zip |
Basic plugin structure
Diffstat (limited to 'service_passwords.c')
-rw-r--r-- | service_passwords.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/service_passwords.c b/service_passwords.c new file mode 100644 index 0000000..3d5ca6c --- /dev/null +++ b/service_passwords.c @@ -0,0 +1,22 @@ +#include <stdio.h> +#include <string.h> +#include <syslog.h> + +#include <slapi-plugin.h> + +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); + return rc; +} |