NIS in docker ubuntu 22.04

Asked by Michael Fitoussi

I’ve a docker image based FROM ubuntu:18.04

At the end of the image, I’ve:
# Configure NIS
COPY yp.conf /etc/yp.conf
COPY nsswitch.conf /etc/nsswitch.conf
COPY default-nis /etc/default/nis
COPY common-session /etc/pam.d/common-session
RUN echo 'mobileye' > /etc/defaultdomain
RUN /etc/init.d/rpcbind restart
RUN /etc/init.d/nis restart

All is fine and I can see in the build output:
Step 53/55 : RUN /etc/init.d/nis restart
---> Running in 0fe8684241e3
* Stopping NIS services
   ...done.
* Starting NIS services
* binding to YP server...
* ....
* ....
* ....
* ....
* ....
* ....
* ....
* ....
* ....
* ....
   ...fail!
   ...done.

However, when migrating to FROM ubuntu:22.04, the /etc/init.d/nis doesn’t exists

I’ve tried to replace it with:
• RUN /etc/init.d/ypxfrd restart
• RUN /etc/init.d/ypbind restart
• RUN /etc/init.d/ypbind reload
• …
but nothing helped to have my ypclient binded to my ypserver

Any help / external link / other will be greatly appreciated.

Thanks a lot

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nis Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Fitoussi
Solved:
Last query:
Last reply:
Revision history for this message
Seth Arnold (seth-arnold) said :
#1

Hello, the launchpad answers service is not very widely used; I suggest asking on https://askubuntu.com instead.

There's some notes in the changelog that might be helpful: https://launchpad.net/ubuntu/+source/nis/+changelog

Thanks

Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#2
Revision history for this message
Bernard Stafford (bernard010) said :
#3

Their are 20 bug reports listed on NIS package.
https://launchpad.net/ubuntu/+source/nis/+bugs?orderby=-id&start=0

Revision history for this message
Michael Fitoussi (michaelfi) said :
#4

Hi @seth-arnold and @bernard010
Issue solved:
rather than using :
RUN /etc/init.d/nis restart
I use now:
RUN /etc/init.d/rpcbind restart \
  && /etc/init.d/ypbind restart \
  && /etc/init.d/yppasswdd restart

BTW, I had to remove YPBINDARGS=-no-dbus as stated in https://bugs.launchpad.net/ubuntu/+source/nis/+bug/1925229