summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-07-11 15:17:14 +0000
committerTimothy Pearson <[email protected]>2013-07-11 15:17:14 +0000
commitc1ea876011563af4976360a96d42f90d6ef5bcf2 (patch)
treeea7277062a0b4a4c8487231893b873c8beb1e455
parentf35e568ef49de330e089a774a857d0bddbc89787 (diff)
parent638b0c3338e9209a023e7fb5b96eff330915adac (diff)
downloadkcmldapcontroller-c1ea876011563af4976360a96d42f90d6ef5bcf2.tar.gz
kcmldapcontroller-c1ea876011563af4976360a96d42f90d6ef5bcf2.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/kcmldapcontroller
-rw-r--r--acl-updater/plugin/interface.c2
-rw-r--r--acl-updater/plugin/plugin.cpp13
m---------admin0
3 files changed, 8 insertions, 7 deletions
diff --git a/acl-updater/plugin/interface.c b/acl-updater/plugin/interface.c
index d3ca381..da85863 100644
--- a/acl-updater/plugin/interface.c
+++ b/acl-updater/plugin/interface.c
@@ -28,5 +28,5 @@ int plugin_init (Slapi_PBlock *pb);
int internal_plugin_init (Slapi_PBlock *pb);
__attribute__ ((visibility ("default"))) int plugin_init (Slapi_PBlock *pb) {
- internal_plugin_init(pb);
+ return internal_plugin_init(pb);
} \ No newline at end of file
diff --git a/acl-updater/plugin/plugin.cpp b/acl-updater/plugin/plugin.cpp
index f67fe0b..38ef221 100644
--- a/acl-updater/plugin/plugin.cpp
+++ b/acl-updater/plugin/plugin.cpp
@@ -65,8 +65,9 @@ post_modify (Slapi_PBlock *pb)
/* Make sure it was successful, don't process errors */
rc = slapi_pblock_get (pb, SLAPI_RESULT_CODE, &code);
return_val_if_fail (rc >= 0, -1);
- if (code != LDAP_SUCCESS)
+ if (code != LDAP_SUCCESS) {
return 0;
+ }
/* Get out the DN and normalize it */
rc = slapi_pblock_get (pb, SLAPI_MODIFY_TARGET, &dn);
@@ -134,7 +135,7 @@ plugin_destroy (Slapi_PBlock *pb)
extern "C" int internal_plugin_init (Slapi_PBlock *pb)
{
- char **argv = NULL, *arg, *value;
+ char **argv = NULL;
int argc = 0;
int rc, i;
@@ -174,19 +175,19 @@ extern "C" int internal_plugin_init (Slapi_PBlock *pb)
if (slapi_pblock_set (pb, SLAPI_PLUGIN_VERSION, (void*)plugin_compat_ver) != 0 ||
slapi_pblock_set (pb, SLAPI_PLUGIN_DESCRIPTION, (void*)(&plugin_description)) != 0 ||
slapi_pblock_set (pb, SLAPI_PLUGIN_DESTROY_FN, (void*)plugin_destroy)) {
- log_plugin ("error registering plugin");
+ log_plugin ("error registering plugin %s\n", PLUGIN_NAME);
return -1;
}
ldapManagerObject = new LDAPManager(realmname, "ldapi://");
- /* Setup the entry add/mobify functions */
+ /* Setup the entry add/modify functions */
if (slapi_pblock_set (pb, SLAPI_PLUGIN_POST_MODIFY_FN, (void*)post_modify) != 0) {
- log_plugin ("error registering plugin hooks");
+ log_plugin ("error registering plugin hooks for %s\n", PLUGIN_NAME);
return -1;
}
- log_plugin ("%s initialized", PLUGIN_NAME);
+ log_plugin ("%s initialized\n", PLUGIN_NAME);
return 0;
}
diff --git a/admin b/admin
-Subproject 4027b878fb556a51ed29affd578e78aa7099748
+Subproject 65ecce459d54e772303052de50d08557ba9cc7e