|
Manoj Srivastava a écrit : I would like to create a package to configure my authentification on an ldap server.On Tue, 20 May 2008 08:34:10 +0200, Anthony <anthony.berger@cea.fr> said: All of my Debian Sarge Computer users are authenticated on a nis server or on passwd/group files. AND i want to configure all of them on my ldap server. So i need to install package : libpam_ldap libnss_ldap ldap-utils nss_updatedb libnss-db And change configurations : pam_ldap.conf libnss_ldap.conf /etc/ldap/ldap.conf nsswitch.conf nss_updatedb cron.hourly I want to preserve my configuration, so i would like to use ucf (or dpkg-divert) But maybe i don't understand the necessity of the ucf utility. If the file is not a conffile, does i need to use it? But, even if it is not a conffile, a upgrade can override it.? What i have done : My package install the files in /usr/share/site_configuration/. My postinst script use ucf to install them in the right place. It 's not a good job ? So i could: save the old configuration files (maybe in /usr/share/site_configuration_backup/.) My package install the files in /usr/share/site_configuration/. My postinst script use ucf to install them in the right place. On postrm or prerm (remove) , restore the backup files. (and on purge, purge the ucf stuff) Thank you for your recommendations... Anthony manoj |