Bug#649265: provide coordinated mechanism to manage /etc/nsswitch.conf among packages
On Sat, 13 Apr 2013 16:42:30 -0700 "C.J. Adams-Collier" wrote: > I spoke with Steve Langasek on irc a few moments ago after reviewing > this bug. He informs me that there is still not a coordinated way to > manage /etc/nsswitch.conf. There is a package in Ubuntu called 'auth-client-config' [1] which does that. For example, when I wanted to add authentication using OpenLDAP, I just ran this command after installing libnss_ldap & so: auth-client-config -t nss -p lac_ldap [1] http://packages.ubuntu.com/trusty/auth-client-config -- أحمد المحمودي (Ahmed El-Mahmoudy) Digital design engineer GPG KeyID: 0xEDDDA1B7 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7 signature.asc Description: Digital signature
Bug#649265: provide coordinated mechanism to manage /etc/nsswitch.conf among packages
On Sat, Apr 13, 2013 at 04:42:30PM -0700, C.J. Adams-Collier wrote: > I am working on a project to migrate a number of NIS machines to use > Active Directory user and group management, authentication and > authorization. The following is an excerpt from a script we are using > to update the CentOS 5 hosts, and I will likely use most of it for > Debian and Ubuntu since there is not really a better option: There is. It is called augeas. Bastian -- Women professionals do tend to over-compensate. -- Dr. Elizabeth Dehaver, "Where No Man Has Gone Before", stardate 1312.9. -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130414101428.ga29...@waldi.eu.org
Bug#649265: provide coordinated mechanism to manage /etc/nsswitch.conf among packages
Package: libc-bin Version: 2.13-38 Followup-For: Bug #649265 Dear Maintainer, I spoke with Steve Langasek on irc a few moments ago after reviewing this bug. He informs me that there is still not a coordinated way to manage /etc/nsswitch.conf. I am working on a project to migrate a number of NIS machines to use Active Directory user and group management, authentication and authorization. The following is an excerpt from a script we are using to update the CentOS 5 hosts, and I will likely use most of it for Debian and Ubuntu since there is not really a better option: # Configure system echo "- Running authconfig" authconfig --enablekrb5 --enablewinbind --enablewinbindauth --update echo "- Processing ${NSS}" cp ${NSS} ${BACKUP_DIR}/${NSS_FILE}.${TIMESTAMP} TEMP_FILE="/tmp/${NSS_FILE}.${TIMESTAMP}" cp -f ${NSS} ${TEMP_FILE} echo "-- Switching order of passwd line" cat ${TEMP_FILE} | sed "s/^passwd:.*/passwd: files winbind nis/" > ${TEMP_FILE}.1 mv -f ${TEMP_FILE}.1 ${TEMP_FILE} echo "-- Switching order of shadow line" cat ${TEMP_FILE} | sed "s/^shadow:.*/shadow: files winbind nis/" > ${TEMP_FILE}.1 mv -f ${TEMP_FILE}.1 ${TEMP_FILE} echo "-- Switching order of group line" cat ${TEMP_FILE} | sed "s/^group:.*/group: files winbind nis/" > ${TEMP_FILE}.1 mv -f ${TEMP_FILE}.1 ${TEMP_FILE} mv -f ${TEMP_FILE} ${NSS} V/R, C.J. -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.21 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- no debconf information -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130413234230.14414.17851.report...@foxtrot.esd.colliertech.org