Package: ldapscripts
Version: 1.9.0-2
Severity: important

Debian functionality of getting LDAP DN, password etc. contains bug,
causing it to assign only part of Bind DN to BINDDN if it contains
spaces. Ie. from DN cn=admin,ou=Special Users,dc=somedomain,dc=somewhere, only 
cn=admin,ou=Special is taken. It causes bind to LDAP fail as well as all the 
utils. Problem is in /usr/share/ldapscripts/runtime.debian in awk expression, 
that takes only second field, while all fields until end of the line should be 
taken (well, comments should be excluded).
Fix that works for me (but doesn't take into the account possible
comment further on the line) is:
--- runtime.debian.orig 2010-10-31 09:39:19.000000000 +0100
+++ runtime.debian   2010-10-31 09:38:50.000000000 +0100
@@ -25,7 +25,7 @@
     local field="$1"
     local nssconffile='/etc/libnss-ldap.conf'
     if [ -f "$nssconffile" ];then
-  local value=$(awk "/^\s*$field/ {print \$2}" /etc/libnss-ldap.conf)
+  local value=$(awk "/^\s*$field/ {for (i=2;i<=NF;i++) printf \"%s%s\",(i>2?\" 
\":\"\"), \$i}" /etc/libnss-ldap.conf)
     else
   local value="$2"
     fi


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ldapscripts depends on:
ii  ldap-utils                    2.4.23-6   OpenLDAP utilities

Versions of packages ldapscripts recommends:
ii  sharutils                     1:4.9-1    shar, unshar, uuencode, uudecode

Versions of packages ldapscripts suggests:
ii  libpam-ldap                   184-8.5    Pluggable Authentication Module fo

-- Configuration Files:
/etc/ldapscripts/ldapscripts.conf changed:
GIDSTART="10000" # Group ID
UIDSTART="10000" # User ID
MIDSTART="20000" # Machine ID
CREATEHOMES="no"      # Create home directories and set rights ?
PASSWORDGEN="cat /dev/random | LC_ALL=C tr -dc 'a-zA-Z0-9' | head -c8"
RECORDPASSWORDS="no"
PASSWORDFILE="/var/log/ldapscripts_passwd.log"
LOGFILE="/var/log/ldapscripts.log"
TMPDIR="/tmp"
LDAPSEARCHBIN="/usr/bin/ldapsearch"
LDAPADDBIN="/usr/bin/ldapadd"
LDAPDELETEBIN="/usr/bin/ldapdelete"
LDAPMODIFYBIN="/usr/bin/ldapmodify"
LDAPMODRDNBIN="/usr/bin/ldapmodrdn"
LDAPPASSWDBIN="/usr/bin/ldappasswd"
GETENTPWCMD=""
GETENTGRCMD=""
GTEMPLATE=""
UTEMPLATE=""
MTEMPLATE=""

/etc/ldapscripts/ldapscripts.passwd [Errno 13] Permission denied: 
u'/etc/ldapscripts/ldapscripts.passwd'

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to