diff options
author | Pete Rowley <prowley@redhat.com> | 2007-11-06 15:57:15 -0800 |
---|---|---|
committer | Pete Rowley <prowley@redhat.com> | 2007-11-06 15:57:15 -0800 |
commit | 24d5777bd682636b36b96193c2ec2c8bcb6f684f (patch) | |
tree | c0beab7c5fc76b4447b3ed6acd960614f684c0d8 /ipa-server/ipa-slapi-plugins/dna | |
parent | 22493d9b9fbc0b6a2e35397ab7b6a62740fcfe7a (diff) | |
download | freeipa-24d5777bd682636b36b96193c2ec2c8bcb6f684f.tar.gz freeipa-24d5777bd682636b36b96193c2ec2c8bcb6f684f.tar.xz freeipa-24d5777bd682636b36b96193c2ec2c8bcb6f684f.zip |
Add posix auto gen for single master case
Diffstat (limited to 'ipa-server/ipa-slapi-plugins/dna')
-rw-r--r-- | ipa-server/ipa-slapi-plugins/dna/dna-conf.ldif | 7 | ||||
-rw-r--r-- | ipa-server/ipa-slapi-plugins/dna/dna.c | 18 |
2 files changed, 13 insertions, 12 deletions
diff --git a/ipa-server/ipa-slapi-plugins/dna/dna-conf.ldif b/ipa-server/ipa-slapi-plugins/dna/dna-conf.ldif index a133fcf4..02532b4e 100644 --- a/ipa-server/ipa-slapi-plugins/dna/dna-conf.ldif +++ b/ipa-server/ipa-slapi-plugins/dna/dna-conf.ldif @@ -1,13 +1,14 @@ dn: cn=ipa-dna,cn=plugins,cn=config +changetype: add objectclass: top objectclass: nsSlapdPlugin objectclass: extensibleObject cn: ipa-dna nsslapd-pluginpath: libipa-dna-plugin -nsslapd-plugininitfunc: dna_init -nsslapd-plugintype: postoperation +nsslapd-plugininitfunc: ipa_dna_init +nsslapd-plugintype: preoperation nsslapd-pluginenabled: on nsslapd-pluginid: ipa-dna nsslapd-pluginversion: 1.0 nsslapd-pluginvendor: Red Hat -nsslapd-plugindescription: Distributed numeric assignment plugin +nsslapd-plugindescription: IPA Distributed numeric assignment plugin diff --git a/ipa-server/ipa-slapi-plugins/dna/dna.c b/ipa-server/ipa-slapi-plugins/dna/dna.c index 7c8dad1a..bafe4410 100644 --- a/ipa-server/ipa-slapi-plugins/dna/dna.c +++ b/ipa-server/ipa-slapi-plugins/dna/dna.c @@ -65,7 +65,7 @@ #include <sys/stat.h> #endif -#define DNA_PLUGIN_SUBSYSTEM "dna-plugin" +#define DNA_PLUGIN_SUBSYSTEM "ipa-dna-plugin" #define DNA_PLUGIN_VERSION 0x00010000 #define DNA_DN "cn=ipa-dna,cn=plugins,cn=config" /* temporary */ @@ -84,8 +84,8 @@ #define DNA_FILTER "dnaFilter" #define DNA_SCOPE "dnaScope" -#define FEATURE_DESC "Distributed Numeric Assignment" -#define PLUGIN_DESC "Distributed Numeric Assignment plugin" +#define FEATURE_DESC "IPA Distributed Numeric Assignment" +#define PLUGIN_DESC "IPA Distributed Numeric Assignment plugin" static Slapi_PluginDesc pdesc = { FEATURE_DESC, "FreeIPA project", "FreeIPA/1.0", @@ -125,7 +125,7 @@ static Slapi_Mutex *g_new_value_lock; * DNA plug-in management functions * */ -int dna_init(Slapi_PBlock *pb); +int ipa_dna_init(Slapi_PBlock *pb); static int dna_start(Slapi_PBlock *pb); static int dna_close(Slapi_PBlock *pb); static int dna_postop_init(Slapi_PBlock *pb); @@ -235,12 +235,12 @@ char * getPluginDN() ------------- adds our callbacks to the list */ -int dna_init( Slapi_PBlock *pb ) +int ipa_dna_init( Slapi_PBlock *pb ) { int status = DNA_SUCCESS; char * plugin_identity=NULL; - slapi_log_error( SLAPI_LOG_TRACE, DNA_PLUGIN_SUBSYSTEM , "--> dna_init\n"); + slapi_log_error( SLAPI_LOG_TRACE, DNA_PLUGIN_SUBSYSTEM , "--> ipa_dna_init\n"); /** * Store the plugin identity for later use. @@ -267,7 +267,7 @@ int dna_init( Slapi_PBlock *pb ) slapi_register_plugin( "postoperation", /* op type */ 1, /* Enabled */ - "dna_init", /* this function desc */ + "ipa_dna_init", /* this function desc */ dna_postop_init, /* init func for post op */ PLUGIN_DESC, /* plugin desc */ NULL, /* ? */ @@ -276,11 +276,11 @@ int dna_init( Slapi_PBlock *pb ) ) { slapi_log_error( SLAPI_LOG_FATAL, DNA_PLUGIN_SUBSYSTEM, - "dna_init: failed to register plugin\n" ); + "ipa_dna_init: failed to register plugin\n" ); status = DNA_FAILURE; } - slapi_log_error( SLAPI_LOG_TRACE, DNA_PLUGIN_SUBSYSTEM , "<-- dna_init\n"); + slapi_log_error( SLAPI_LOG_TRACE, DNA_PLUGIN_SUBSYSTEM , "<-- ipa_dna_init\n"); return status; } |