FS#8660 - ypbind-mt daemon script fails to set default domain name

Attached to Project: Arch Linux
Opened by Martin Schmidt (Blind) - Friday, 16 November 2007, 05:50 GMT
Last edited by Eric Belanger (Snowman) - Wednesday, 06 May 2009, 18:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Trying to use the daemon script 'ypbind' without prior setting of the default domain name results in failure of the script. That makes the script useless during boot.

Additional info:
* package version(s)
ypbind-mt 1.20.4

Yes, I have made the correct settings to the /etc/yp.conf (and nsswitch.conf for that matter) file.

Steps to reproduce:
Run the script *without* setting the default domain using /bin/domainname.

Solution:
Sun Solaris 10 sets the default domain with the file /etc/defaultdomain. I suggest to go down the same road. Fixing the init script to include a line like

if [ -f /etc/defaultdomain ]; then /bin/domainname `cat /etc/defaultdomain`; fi

during start is unintrusive, fixes the problem and thus adds flexibility.

Cheers

This task depends upon

Closed by  Eric Belanger (Snowman)
Wednesday, 06 May 2009, 18:52 GMT
Reason for closing:  Fixed
Comment by Martin Schmidt (Blind) - Monday, 26 November 2007, 23:19 GMT
There is also information about this here:
http://www.slackwaresupport.com/howtos/Slackware-NIS-mini-HOWTO

So slackware also uses /etc/defaultdomain
Comment by Martin Schmidt (Blind) - Saturday, 15 December 2007, 23:21 GMT
Here is the diff...
Comment by Glenn Matthys (RedShift) - Tuesday, 17 June 2008, 08:48 GMT
Still not implemented in ypbind-mt 1.20.4-1
Comment by Eric Belanger (Snowman) - Wednesday, 29 April 2009, 05:27 GMT
Implemented in ypbind-mt-1.23.1-1 in testing. Please test and report how it goes.

Loading...