RE: Help with NIS on ubuntu 22.04

2022-08-25 Thread Michael Fitoussi
Hi Steve
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

-Original Message-
From: Steve Langasek  
Sent: Friday, August 12, 2022 11:55 PM
To: Michael Fitoussi 
Cc: ubuntu-motu@lists.ubuntu.com
Subject: Re: Help with NIS on ubuntu 22.04

Hi Michael,

On Fri, Aug 12, 2022 at 09:48:51AM +, Michael Fitoussi wrote:
> Hello

> 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 tpclient binded to my ypserver
> 
> Any help / external link / other will be greatly appreciated.
> 
> Thanks a lot

I'm sorry, but this is not a user support forum.  You should probably refer to 
/usr/share/doc/nis/NEWS.Debian.gz in the 22.04 version of the nis package which 
explains what changes the Debian maintainer has made and how users are expected 
to configure/use the packages in the new version.  Failing that, you can try 
asking on https://askubuntu.com.  However, these packages are pass-through from 
Debian, not anything that is actively maintained by the Ubuntu community, so 
your mileage may vary as far as support is concerned.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developer   https://www.debian.org/
slanga...@ubuntu.com vor...@debian.org

-- 
Ubuntu-motu mailing list
Ubuntu-motu@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu


Re: Help with NIS on ubuntu 22.04

2022-08-12 Thread Steve Langasek
Hi Michael,

On Fri, Aug 12, 2022 at 09:48:51AM +, Michael Fitoussi wrote:
> Hello

> 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 tpclient binded to my ypserver
> 
> Any help / external link / other will be greatly appreciated.
> 
> Thanks a lot

I'm sorry, but this is not a user support forum.  You should probably refer
to /usr/share/doc/nis/NEWS.Debian.gz in the 22.04 version of the nis package
which explains what changes the Debian maintainer has made and how users are
expected to configure/use the packages in the new version.  Failing that,
you can try asking on https://askubuntu.com.  However, these packages are
pass-through from Debian, not anything that is actively maintained by the
Ubuntu community, so your mileage may vary as far as support is concerned.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developer   https://www.debian.org/
slanga...@ubuntu.com vor...@debian.org


signature.asc
Description: PGP signature
-- 
Ubuntu-motu mailing list
Ubuntu-motu@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu


Help with NIS on ubuntu 22.04

2022-08-12 Thread Michael Fitoussi
Hello

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 tpclient binded to my ypserver

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

Thanks a lot
-- 
Ubuntu-motu mailing list
Ubuntu-motu@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu