On Tue, May 31, 2005 at 05:56:42PM -0400, Andres Salomon wrote:

> First, the postinst checks whether /etc/defaultdomain is set, and if
> not, resets nis/domain, sets the default value to `hostname --fqdn`, and
> prompts the user for the value.  

Yes, I know.  This needs some TLC but it's not getting it until after
sarge goes out the door (as I said to myself over a year ago :P ).

> What this probably should do instead is, in the config script, prompt
> the user (using `hostname --fqdn` as the default if nis/domain is not
> already set).  In the postinst, get this value and
> overwrite /etc/defaultdomain with it.

It just needs the entire thing except for the output of defaultdomain to
be moved into config.  The /etc/defaultdomain parsing needs to be done
otherwise the package will trash user configuration each time it's
upgraded (and on reconfiguration but it's easier to get away with it
then).

> Ditto for nis/not-yet-configured, which shouldn't care whether the
> machine has actually be configured yet; the note should be displayed
> when the package is first installed, and never again.  People who can

I think it's useful to also display the prompt on reconfiguration if
the message is going to be displayed at all - if people are trying to
reconfigure NIS they may be trying to get it to start using the NIS
configuration and a kick to go do the manual stuff is likely to be
helpful.

> If you want patches for this, let me know.  I'm also interested in
> seeing things like #231808 fixed;

To be honest I'm not terribly convinced it's worth adding much to the
debconf configuration of the NIS package.  The server configuration
option seems plausible given the startup failures reported but as noted
in the log for that bug properly configuring a NIS client involves
messing with critical system files like /etc/passwd and friends which
just has bad idea written all over it.  This means that you're mostly
going to need something external to the package (be it a sysadmin with a
text editor or something more automated) to set up a NIS client for use.

Something like RedHat's authconfig which provides an integrated
interface to the configuration of the system databases and
authentication seems like it would provide a much more usable user
interface as well as standing more chance of being robust.

> I can provide initial patches if necessary.

I wouldn't bother - writing the patches isn't the problem here.

-- 
"You grabbed my hand and we fell into it, like a daydream - or a fever."


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to