void repl_session_plugin_call_agmt_init_cb(Repl_Agmt *ra) { void *cookie = NULL; Slapi_DN *replarea = NULL; repl_session_plugin_agmt_init_cb initfunc = NULL; slapi_log_err(SLAPI_LOG_PLUGIN, repl_plugin_name, "repl_session_plugin_call_agmt_init_cb - Begin\n"); if (_ReplSessionAPI) { initfunc = (repl_session_plugin_agmt_init_cb)_ReplSessionAPI[REPL_SESSION_PLUGIN_AGMT_INIT_CB]; } if (initfunc) { replarea = agmt_get_replarea(ra); if (!replarea) { slapi_log_err(SLAPI_LOG_ERR, repl_plugin_name, "repl_session_plugin_call_agmt_init_cb- Aborted - No replication area\n"); return; } cookie = (*initfunc)(replarea); slapi_sdn_free(&replarea); } agmt_set_priv(ra, cookie); slapi_log_err(SLAPI_LOG_PLUGIN, repl_plugin_name, "repl_session_plugin_call_agmt_init_cb - End\n"); return; }
void windows_init_agreement_from_entry(Repl_Agmt *ra, Slapi_Entry *e) { agmt_set_priv(ra,windows_private_new()); windows_parse_config_entry(ra,NULL,e); windows_plugin_init(ra); }