Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libnss-ldap

libnss-ldap (265-5ubuntu1) bionic; urgency=medium * Merge with Debian; remaining changes: See 265-3ubuntu2). -- Matthias Klose <doko@ubuntu.com> Mon, 06 Nov 2017 16:14:44 +0100

Modifications :
  1. Download patch debian/po/ca.po
  2. Download patch debian/po/pt.po
  3. Download patch ldap-nss.c

    --- 265-5/ldap-nss.c 2017-11-06 18:40:22.000000000 +0000 +++ 265-5ubuntu1/ldap-nss.c 2017-11-06 18:40:23.000000000 +0000 @@ -534,8 +534,13 @@ do_atfork_parent (void) static void do_atfork_child (void) { + sigset_t unblock, mask; debug ("==> do_atfork_child"); + sigemptyset(&unblock); + sigaddset(&unblock, SIGPIPE); + sigprocmask(SIG_UNBLOCK, &unblock, &mask); do_close_no_unbind (); + sigprocmask(SIG_SETMASK, &mask, NULL); _nss_ldap_leave (); debug ("<== do_atfork_child"); }
  4. Download patch debian/patches/0001-fix-for-BUG-414-SIGPIPE-handling-in-atfork.patch

    --- 265-5/debian/patches/0001-fix-for-BUG-414-SIGPIPE-handling-in-atfork.patch 1970-01-01 00:00:00.000000000 +0000 +++ 265-5ubuntu1/debian/patches/0001-fix-for-BUG-414-SIGPIPE-handling-in-atfork.patch 2016-10-19 21:01:16.000000000 +0000 @@ -0,0 +1,25 @@ +From 964360883c5f5aed6e595e5e2d101d188bf8a61f Mon Sep 17 00:00:00 2001 +From: Luke Howard <lukeh@padl.com> +Date: Thu, 25 Feb 2010 10:57:30 +0000 +Subject: [PATCH] fix for BUG#414: SIGPIPE handling in atfork() +Origin: backport, https://github.com/PADL/nss_ldap/commit/964360883c5f5aed6e595e5e2d101d188bf8a61f +Bug-Ubuntu: https://launchpad.net/bugs/1397250 +Last-Update: 2016-10-21 + +diff -up nss_ldap/ldap-nss.c nss_ldap/ldap-nss.c +--- nss_ldap/ldap-nss.c 2009-12-07 20:57:33.000000000 -0500 ++++ nss_ldap/ldap-nss.c 2009-12-07 20:58:56.000000000 -0500 +@@ -532,8 +532,13 @@ + static void + do_atfork_child (void) + { ++ sigset_t unblock, mask; + debug ("==> do_atfork_child"); ++ sigemptyset(&unblock); ++ sigaddset(&unblock, SIGPIPE); ++ sigprocmask(SIG_UNBLOCK, &unblock, &mask); + do_close_no_unbind (); ++ sigprocmask(SIG_SETMASK, &mask, NULL); + _nss_ldap_leave (); + debug ("<== do_atfork_child"); + }
  5. Download patch debian/rules

    --- 265-5/debian/rules 2013-08-30 21:37:57.000000000 +0000 +++ 265-5ubuntu1/debian/rules 2014-11-21 14:07:53.000000000 +0000 @@ -8,18 +8,14 @@ override_dh_auto_configure: --libdir=/lib/$(DEB_HOST_MULTIARCH) \ --enable-rfc2307bis \ --with-ldap-lib=openldap \ - --with-ldap-conf-file=/etc/libnss-ldap.conf \ - --with-ldap-secret-file=/etc/libnss-ldap.secret \ --enable-paged-results \ --enable-configurable-krb5-ccname-gssapi override_dh_install: - mv debian/libnss-ldap/usr/share/man/man5/nss_ldap.5 debian/libnss-ldap/usr/share/man/man5/libnss-ldap.conf.5 rm -rf debian/libnss-ldap/etc + dh_link -plibnss-ldap /lib/$(DEB_HOST_MULTIARCH)/libnss_ldap.so.2 \ + /usr/lib/$(DEB_HOST_MULTIARCH)/libnss_ldap.so dh_install - # change all references from /etc/ldap.conf to /etc/libnss-ldap.conf - for file in debian/libnss-ldap/usr/share/man/man5/libnss-ldap.conf.5 \ - debian/libnss-ldap/usr/share/libnss-ldap/ldap.conf ; do \ - sed -i -e 's:/etc/ldap.conf:/etc/libnss-ldap.conf:g' \ - -e 's:/etc/ldap.secret:/etc/libnss-ldap.secret:g' $$file; \ - done; + +override_dh_installinit: + dh_installinit -- start . stop 20 0 1 6 .
  6. Download patch debian/po/sk.po
  7. Download patch debian/po/nb.po
  8. Download patch debian/po/nl.po
  9. Download patch debian/LDAP-Permissions.txt

    --- 265-5/debian/LDAP-Permissions.txt 2013-08-02 19:59:49.000000000 +0000 +++ 265-5ubuntu1/debian/LDAP-Permissions.txt 2014-11-21 14:07:53.000000000 +0000 @@ -5,7 +5,7 @@ The following list describes the search uses for each database type in /etc/nsswitch.conf For each of the entries the search base is determined by the nss_base_... -parameter in /etc/libnss-ldap.conf. +parameter in /etc/ldap.conf. The search filters are used when the resprective functions are called. @@ -15,7 +15,7 @@ have been more correct. The information contained in the list may be used to determine the required permissions to objects and attributes in the directory for the accounts -referred to by 'binddn' and 'rootbinddn' in /etc/libnss-ldap.conf. +referred to by 'binddn' and 'rootbinddn' in /etc/ldap.conf. 'rootbinddn' is used if it is set and libnss-ldap is called with effective user id 0. In all other cases 'binddn' is used if it is set. If 'binddn is
  10. Download patch debian/control

    --- 265-5/debian/control 2016-10-01 22:22:46.000000000 +0000 +++ 265-5ubuntu1/debian/control 2017-11-06 15:14:44.000000000 +0000 @@ -1,10 +1,10 @@ Source: libnss-ldap Section: admin Priority: extra -Maintainer: Debian QA Group <packages@qa.debian.org> +XSBC-Original-Maintainer: Richard A Nelson (Rick) <cowboy@debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Standards-Version: 3.9.8 -Build-Depends: debhelper (>= 9), dh-autoreconf, po-debconf (>= 0.5.0), - autotools-dev, libldap2-dev, libkrb5-dev, libsasl2-dev +Build-Depends: debhelper (>= 9), dh-autoreconf, autotools-dev, libldap2-dev, libkrb5-dev, libsasl2-dev Homepage: http://www.padl.com/OSS/nss_ldap.html Vcs-Svn: svn://anonscm.debian.org/collab-maint/deb-maint/libnss-ldap/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/collab-maint/deb-maint/libnss-ldap/trunk/ @@ -14,7 +14,8 @@ Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} -Recommends: nscd, libpam-ldap +Recommends: libpam-ldap, ldap-auth-config +Suggests: nscd Description: NSS module for using LDAP as a naming service This package provides a Name Service Switch that allows your LDAP server act as a name service. This means providing user account information,
  11. Download patch .pc/applied-patches

    --- 265-5/.pc/applied-patches 2017-11-06 18:40:23.046337232 +0000 +++ 265-5ubuntu1/.pc/applied-patches 2017-11-06 18:40:23.322344887 +0000 @@ -11,3 +11,4 @@ spelling-fix.patch glibc-2.16.patch fix-nsswitch-example.patch reproducible-build.patch +0001-fix-for-BUG-414-SIGPIPE-handling-in-atfork.patch
  12. Download patch debian/po/POTFILES.in

    --- 265-5/debian/po/POTFILES.in 2013-08-02 19:59:49.000000000 +0000 +++ 265-5ubuntu1/debian/po/POTFILES.in 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -[type: gettext/rfc822deb] templates
  13. Download patch debian/nssldap-update-ignoreusers

    --- 265-5/debian/nssldap-update-ignoreusers 1970-01-01 00:00:00.000000000 +0000 +++ 265-5ubuntu1/debian/nssldap-update-ignoreusers 2014-11-21 14:07:53.000000000 +0000 @@ -0,0 +1,69 @@ +#!/bin/sh -e +# +# nssldap-update-ignoreusers +# Copyright (C) 2008 Canonical Ltd. +# Author: Dustin Kirkland <kirkland@canonical.com> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3, +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + + +# Location of LDAP's nss_* configuration +CONF=/etc/ldap.conf +if [ ! -s $CONF ]; then + exit 0 +fi + +# Location of logged $CONF changes +LOGDIR="/var/lib/libnss-ldap" + +# Load threshold for ignoring uid's from $CONF +MIN=`grep "^nss_initgroups_minimum_uid " $CONF | tail -n 1 | awk '{print $2}'` + +# If unspecified, set to 1000 (ignore local system id's) to prevent boot hang +if [ -z $MIN ]; then + MIN=1000 +fi + +# Load existing list of ignored users from ldap.conf +LOADED_USERS=`grep "^nss_initgroups_ignoreusers " $CONF | tail -n 1 | awk '{print $2}'` + +# Build list of users to ignore based on specified minimum UID +users=`cat /etc/passwd | awk -F":" '{if ($3 <'$MIN') print $1 ","}' | xargs -i echo -n {}` + +# Merge the two lists, remove whitespace, sort alphabetically, prune duplicates +users=`echo "$LOADED_USERS,$users" | sed "s/ //g" | sed "s/,/\n/g" | sort | uniq | xargs -i echo -n {},` + +# Removing any leading or trailing commas +users=`echo "$users" | sed "s/^,//" | sed "s/,$//"` +confline="nss_initgroups_ignoreusers $users" + +# Build new conf file +tmpfile=`mktemp` +cat $CONF > $tmpfile +if grep "^nss_initgroups_ignoreusers " $CONF >/dev/null; then + sed -i "s/^nss_initgroups_ignoreusers .*$/$confline/g" $CONF +else + echo $confline >> $CONF +fi + +# If changes have occured, log the difference +if ! diff -up $tmpfile $CONF >/dev/null; then + timestamp=`date +%Y%m%d%H%M%S` + mkdir -p $LOGDIR 2>/dev/null || true + diff -up $tmpfile $CONF > $LOGDIR/ldap.conf.$timestamp.diff || true + logger -p syslog.info -t libnss-ldap "Modified $CONF, see changes in $LOGDIR/ldap.conf.$timestamp.diff" +fi +rm -f $tmpfile + +exit 0
  14. Download patch debian/po/fi.po
  15. Download patch debian/libnss-ldap.install

    --- 265-5/debian/libnss-ldap.install 2013-08-30 21:37:58.000000000 +0000 +++ 265-5ubuntu1/debian/libnss-ldap.install 2014-11-21 14:07:53.000000000 +0000 @@ -1 +1,7 @@ -ldap.conf /usr/share/libnss-ldap/ +nss_ldap.5 usr/share/man/man5 +ldap.conf usr/share/doc/libnss-ldap/examples +nsswitch.ldap usr/share/doc/libnss-ldap/examples +debian/LDAP-Permissions.txt usr/share/doc/libnss-ldap +debian/examples usr/share/doc/libnss-ldap +debian/nssldap-update-ignoreusers usr/sbin +debian/nssldap-update-ignoreusers.8 usr/share/man/man8
  16. Download patch .pc/0001-fix-for-BUG-414-SIGPIPE-handling-in-atfork.patch/ldap-nss.c
  17. Download patch debian/po/templates.pot
  18. Download patch debian/po/vi.po
  19. Download patch debian/templates

    --- 265-5/debian/templates 2013-08-02 19:59:49.000000000 +0000 +++ 265-5ubuntu1/debian/templates 1970-01-01 00:00:00.000000000 +0000 @@ -1,117 +0,0 @@ -Template: libnss-ldap/confperm -Type: boolean -Default: false -_Description: Make the configuration file readable/writeable by its owner only? - If you use passwords in your libnss-ldap configuration, it is usually a - good idea to have the configuration set with mode 0600 (readable and - writable only by the file's owner). - . - Note: As a sanity check, libnss-ldap will check if you have nscd installed - and will only set the mode to 0600 if nscd is present. - -Template: libnss-ldap/nsswitch -Type: note -_Description: nsswitch.conf not managed automatically - For the libnss-ldap package to work, you need to modify your - /etc/nsswitch.conf to use the "ldap" datasource. There is an example - file at /usr/share/doc/libnss-ldap/examples/nsswitch.ldap which can - be used as an example for your nsswitch setup, or it can be copied - over your current setup. - . - Also, before removing this package, it is wise to remove the "ldap" entries - from nsswitch.conf to keep basic services functioning. - -Template: shared/ldapns/base-dn -Type: string -Default: dc=example,dc=net -_Description: Distinguished name of the search base: - Please enter the distinguished name of the LDAP search base. Many sites - use the components of their domain names for this purpose. For example, - the domain "example.net" would use "dc=example,dc=net" as the - distinguished name of the search base. - -Template: libnss-ldap/dblogin -Type: boolean -Default: false -_Description: Does the LDAP database require login? - Choose this option if you can't retrieve entries from - the database without logging in. - . - Note: Under a normal setup, this is not needed. - -Template: libnss-ldap/override -Type: boolean -Default: true -_Description: Automatically update libnss-ldap's configuration file? - The libnss-ldap package may use debconf for its configuration. - . - If you choose this option, the configuration file will be prepended - with "###DEBCONF###"; you can disable the debconf updates by removing - that line. - . - All new installations will use this option by default. - -Template: libnss-ldap/binddn -Type: string -Default: cn=proxyuser,dc=example,dc=net -_Description: Unprivileged database user: - Please enter the name of the account that will be used to log in to the LDAP - database. - -Template: libnss-ldap/bindpw -Type: password -_Description: Password for database login account: - Please enter the password that will be used to log in to the LDAP database. - -Template: shared/ldapns/ldap_version -Type: select -Choices: 3, 2 -Default: 3 -_Description: LDAP version to use: - Please enter which version of the LDAP protocol should be used by - ldapns. It is usually a good idea to set this to the highest - available version number. - -Template: shared/ldapns/ldap-server -Type: string -Default: ldap://127.0.0.1/ -_Description: LDAP server Uniform Resource Identifier: - Please enter the URI of the LDAP server used. This is a string in the - form ldap://<hostname or IP>:<port>/ . ldaps:// or ldapi:// can also - be used. The port number is optional. - . - Note: It is usually a good idea to use an IP address; this reduces risks - of failure in the event name service is unavailable. - -Template: libnss-ldap/dbrootlogin -Type: boolean -Default: true -_Description: Special LDAP privileges for root? - This option will allow tools that perform requests to the nss system - with libnss-ldap as backend to return more information when called - as root. - . - If you are using NFS mounted /etc or any other custom setup, you should - disable this. - -Template: libnss-ldap/rootbinddn -Type: string -Default: cn=manager,dc=example,dc=net -_Description: LDAP account for root: - Please choose which account will be used for nss requests with root - privileges. - . - Note: For this to work the account needs permission to access the - attributes in the LDAP directory that are related to the users' shadow - entries as well as users' and groups' passwords. - -Template: libnss-ldap/rootbindpw -Type: password -_Description: LDAP root account password: - Please enter the password to use when libnss-ldap tries to - login to the LDAP directory using the LDAP account for root. - . - The password will be stored in a separate file /etc/libnss-ldap.secret - which will be made readable to root only. - . - Entering an empty password will re-use the old password.
  20. Download patch debian/po/da.po
  21. Download patch debian/libnss-ldap.dirs

    --- 265-5/debian/libnss-ldap.dirs 1970-01-01 00:00:00.000000000 +0000 +++ 265-5ubuntu1/debian/libnss-ldap.dirs 2014-11-21 14:07:53.000000000 +0000 @@ -0,0 +1,2 @@ +usr/share/doc/libnss-ldap +var/lib/libnss-ldap
  22. Download patch debian/po/ja.po
  23. Download patch debian/po/it.po
  24. Download patch debian/libnss-ldap.init

    --- 265-5/debian/libnss-ldap.init 1970-01-01 00:00:00.000000000 +0000 +++ 265-5ubuntu1/debian/libnss-ldap.init 2014-11-21 14:07:53.000000000 +0000 @@ -0,0 +1,34 @@ +#! /bin/sh -e + +### BEGIN INIT INFO +# Provides: libnss-ldap +# Required-Start: +# Required-Stop: mountall.sh +# Default-Start: +# Default-Stop: 0 1 6 +# Short-Description: Updates /etc/ldap.conf +# Description: Updates nss_initgroups_ignoreusers based on +# nss_initgroups_minimum_uid +### END INIT INFO + +PATH="/sbin:/bin:/usr/sbin:/usr/bin" +. /lib/lsb/init-functions + +case "$1" in + start) + ;; + restart|force-reload|stop) + log_action_begin_msg "Running nssldap-update-ignoreusers" + if nssldap-update-ignoreusers ; then + log_action_end_msg 0 + else + log_action_end_msg 1 + exit 1 + fi + ;; + *) + echo "Usage: $0 {start|restart|force-reload|stop}" + exit 1 + ;; +esac +exit 0
  25. Download patch debian/patches/series

    --- 265-5/debian/patches/series 2016-10-03 12:00:50.000000000 +0000 +++ 265-5ubuntu1/debian/patches/series 2017-11-06 15:14:44.000000000 +0000 @@ -11,3 +11,4 @@ spelling-fix.patch glibc-2.16.patch fix-nsswitch-example.patch reproducible-build.patch +0001-fix-for-BUG-414-SIGPIPE-handling-in-atfork.patch
  26. Download patch debian/README.Debian

    --- 265-5/debian/README.Debian 2013-08-02 19:59:49.000000000 +0000 +++ 265-5ubuntu1/debian/README.Debian 2014-11-21 14:07:53.000000000 +0000 @@ -18,10 +18,8 @@ the entries it asks about, nothing else. -- Sami Haahtinen <ressu@debian.org> - -Debian uses /etc/libnss-ldap.conf as libnss-ldap's configuration file and -/etc/libnss-ldap.secret as the file to store the password of the rootbinddn. +Ubuntu uses /etc/ldap.conf as libnss-ldap's configuration file and +/etc/ldap.secret as the file to store the password of the rootbinddn. See LDAP-Permissions.txt for details about the required LDAP permissions. - -- Peter Marschall <peter@adpm.de>
  27. Download patch debian/po/gl.po
  28. Download patch debian/nssldap-update-ignoreusers.8

    --- 265-5/debian/nssldap-update-ignoreusers.8 1970-01-01 00:00:00.000000000 +0000 +++ 265-5ubuntu1/debian/nssldap-update-ignoreusers.8 2014-11-21 14:07:53.000000000 +0000 @@ -0,0 +1,21 @@ +.TH "nssldap-update-ignoreusers" "8" "0.1" "Jamie Strandboge" "" +.SH "NAME" +.LP +nssldap\-update\-ignoreusers \- update ldap.conf based on nss_initgroups_minimum_uid +.SH "SYNTAX" +.LP +nssldap\-update\-ignoreusers +.SH "DESCRIPTION" +.LP +Updates nss_initgroups_ignoreusers in /etc/ldap.conf based on nss_initgroups_minimum_uid. +.SH "FILES" +.LP +\fI/etc/ldap.conf\fP +.br +\fI/var/lib/libnss\-ldap\fP +.SH "AUTHORS" +.LP +Dustin Kirkland <kirkland@canonical.com> +.SH "SEE ALSO" +.LP +ldap.conf(5) nss_ldap(5)
  29. Download patch debian/po/ru.po
  30. Download patch debian/po/pt_BR.po
  31. Download patch debian/patches/minimum_uid.patch

    --- 265-5/debian/patches/minimum_uid.patch 1970-01-01 00:00:00.000000000 +0000 +++ 265-5ubuntu1/debian/patches/minimum_uid.patch 2014-11-21 14:07:53.000000000 +0000 @@ -0,0 +1,29 @@ +diff -Naur ./nss_ldap-258.orig/ldap.conf nss_ldap-258/ldap.conf +--- ./nss_ldap-258.orig/ldap.conf 2007-10-12 18:10:10.000000000 -0400 ++++ nss_ldap-258/ldap.conf 2008-04-22 14:18:14.000000000 -0400 +@@ -311,3 +311,7 @@ + # Override the default Kerberos ticket cache location. + #krb5_ccname FILE:/etc/.ldapcache + ++# List of users to ignore when doing LDAP lookups. Defaults to ++# all users with uid under 1000. Use nss_initgroups_minimum_uid to change ++# the default. ++nss_initgroups_ignoreusers backup,bin,daemon,dhcp,games,gnats,irc,klog,libuuid,list,lp,mail,man,news,proxy,root,sshd,sync,sys,syslog,uucp,www-data +diff -Naur ./nss_ldap-258.orig/nss_ldap.5 nss_ldap-258/nss_ldap.5 +--- ./nss_ldap-258.orig/nss_ldap.5 2007-10-12 18:10:10.000000000 -0400 ++++ nss_ldap-258/nss_ldap.5 2008-04-22 14:12:34.000000000 -0400 +@@ -445,6 +445,14 @@ + to return NSS_STATUS_NOTFOUND if called with a listed users as + its argument. + .TP ++.B nss_initgroups_minimum_uid <uid number> ++This option updates ++.B nss_initgroups_ignoreusers ++to have all uids under the specified uid number. Please note that ++you will have to reboot or use ++.B /etc/init.d/libnss-ldap restart ++for this to take affect. ++.TP + .B nss_getgrent_skipmembers <yes|no> + Specifies whether or not to populate the members list in + the group structure for group lookups. If very large groups
  32. Download patch debian/libnss-ldap.postinst
  33. Download patch debian/po/fr.po
  34. Download patch debian/po/sv.po
  35. Download patch debian/libnss-ldap.postrm

    --- 265-5/debian/libnss-ldap.postrm 2013-11-21 22:07:39.000000000 +0000 +++ 265-5ubuntu1/debian/libnss-ldap.postrm 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -set -e - -CONFFILE="/etc/libnss-ldap.conf" -PASSWDFILE="/etc/libnss-ldap.secret" - -action=$1 - -if [ "$action" = "purge" ] && \ - [ "$(dpkg-query -f '${db:Status-Abbrev} ${binary:Package}\n' -W libnss-ldap | grep -v '^.n' | wc -l)" = 1 ] ; then - rm -f $CONFFILE $PASSWDFILE -fi - -#DEBHELPER#
  36. Download patch debian/po/cs.po
  37. Download patch debian/po/es.po
  38. Download patch debian/config

    --- 265-5/debian/config 2013-08-30 20:50:15.000000000 +0000 +++ 265-5ubuntu1/debian/config 1970-01-01 00:00:00.000000000 +0000 @@ -1,97 +0,0 @@ -#!/usr/bin/perl -# Debconf configuration script for PADL-ldap tools. -# By Sami Haahtinen <ressu@debian.org> - -$conffile="/etc/libnss-ldap.conf"; -$action=shift; -$from_version=shift; - -use Debconf::Client::ConfModule ':all'; -version('2.0'); - -# Not yet.. i'll prolly fix this later... -# my $capb=capb('backup'); - -my @ret; -my @current_config; - -# The 'override' thing really ought to go, but let's see how this works -# out first. - -if(-e $conffile) { - open CONFIG, "<$conffile"; - if(<CONFIG> =~ /^###DEBCONF###$/) { - set("libnss-ldap/override", "true"); - } else { - my $oldval=get("libnss-ldap/override"); - set("libnss-ldap/override", "false"); - if ($oldval eq "true") { - fset("libnss-ldap/override", "seen", "false") - } - - # well, this was a screwy from the start.. lets make it more - # sane. priority is critical when running reconfigure, - # otherwise it's high.. - # -- i hope thats enough.. - - input($action =~ /reconfigure/ ? "critical" : "high", - "libnss-ldap/override"); - $ret=go(); - }; - @current_config = <CONFIG>; - close CONFIG; -} else { - set("libnss-ldap/override", "true"); -}; - -# ok, previously in Configuring LDAP services.. -# - Configuration file was tested for ###DEBCONF### and override was -# set accordingly. -# - Eric was dumped because of an secret affair with Karen. -# Tune in next time for the next episode of, configuring LDAP services.. - -if(get("libnss-ldap/override") eq "true") { - read_and_input('shared/ldapns/ldap-server', 'uri', 'critical'); - read_and_input('shared/ldapns/base-dn', 'base', 'critical'); - read_and_input('shared/ldapns/ldap_version', 'ldap_version', 'critical'); - $ret = go(); # yeah, we don't need that.. but in case we sometime do - - # Anyone with database that requires logging in should have - # atleast medium priority.. - input("medium", "libnss-ldap/dblogin"); - input("medium", "libnss-ldap/dbrootlogin"); - input("medium", "libnss-ldap/confperm"); - $ret = go(); - - if(get("libnss-ldap/dbrootlogin") eq "true") { - read_and_input('libnss-ldap/rootbinddn', 'rootbinddn', 'critical'); - input('critical', 'libnss-ldap/rootbindpw'); - $ret = go() - } - - if(get("libnss-ldap/dblogin") eq "true") { - # user wants to login.. - # we better set these at critical.. just in case - read_and_input('libnss-ldap/binddn', 'binddn', 'critical'); - read_and_input('libnss-ldap/bindpw', 'bindpw', 'critical'); - $ret = go(); - } -} - -input("critical", "libnss-ldap/nsswitch"); -$ret = go(); - -sub read_and_input -{ - my ($debconf_name, $conffile_name, $priority) = @_; - $priority = 'medium' unless $priority; - - my @valuelist = grep(/^$conffile_name\s/, @current_config); - if (@valuelist) { - my $value = pop(@valuelist); - chomp($value); - $value =~ s/^$conffile_name\s+//; - set($debconf_name, $value); - } - input($priority, $debconf_name); -}
  39. Download patch debian/po/de.po
  1. libnss-ldap