From 0675c90c244f480c267dae1ba6be50f7a7da56e6 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 12 May 2008 18:40:29 -0400 Subject: - forcibly unregister all ypserv services before attempting to register our own --- src/plugin.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugin.c') 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: -- cgit