diff options
| author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-05-12 18:40:29 -0400 |
|---|---|---|
| committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-05-12 18:40:29 -0400 |
| commit | 0675c90c244f480c267dae1ba6be50f7a7da56e6 (patch) | |
| tree | c8c0321fa981a92d840f5977074cc5dc31f0aaee /src/plugin.c | |
| parent | a90652fce9126d42f5daf594c6c80418a48193ef (diff) | |
| download | slapi-nis-0675c90c244f480c267dae1ba6be50f7a7da56e6.tar.gz slapi-nis-0675c90c244f480c267dae1ba6be50f7a7da56e6.tar.xz slapi-nis-0675c90c244f480c267dae1ba6be50f7a7da56e6.zip | |
- forcibly unregister all ypserv services before attempting to register our own
Diffstat (limited to 'src/plugin.c')
| -rw-r--r-- | src/plugin.c | 5 |
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: |
