summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c
index e33c956..f9e586d 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -54,6 +54,11 @@ plugin_startup(Slapi_PBlock *pb)
map_startup(state);
/* Register the listener sockets with the portmapper. */
if (state->pmap_client_socket != -1) {
+ /* kick off any other NIS servers */
+ portmap_unregister(plugin_description.spd_id,
+ state->pmap_client_socket,
+ YPPROG, YPVERS);
+ /* register our ports */
for (i = 0; i < state->n_listeners; i++) {
switch (state->listener[i].type) {
case SOCK_DGRAM: