Package: nslcd
Version: 0.7.13
Severity: normal

If to use tabulation instead of a gap in a file/etc/nslcd.conf
that the script/etc/init.d/nslcd will fail.
Problem in a regular expression.

For example:
krb5_ccname FILE:/tmp/krb5cc_ 0  - correct
krb5_ccname<tab>FILE:/tmp/krb5cc_ 0 - incorrect


--- nslcd.oring    2011-09-14 20:55:51.522574191 +0400
+++ nslcd    2011-09-14 21:05:43.693901799 +0400
@@ -49,18 +49,18 @@
 K5START_DESC="Keep alive Kerberos ticket"
 K5START_START=""
 K5START_PIDFILE=$NSLCD_STATEDIR/k5start_nslcd.pid
-K5START_USER=$(sed -n 's/^uid *\([^ ]*\) *$/\1/ip' $NSLCD_CFG)
-K5START_GROUP=$(sed -n 's/^gid *\([^ ]*\) *$/\1/ip' $NSLCD_CFG)
+K5START_USER=$(sed -n 's/^uid\s*\([^ ]*\) *$/\1/ip' $NSLCD_CFG)
+K5START_GROUP=$(sed -n 's/^gid\s*\([^ ]*\) *$/\1/ip' $NSLCD_CFG)
 K5START_MODE=600
 K5START_KEYTAB=/etc/krb5.keytab
 K5START_CCREFRESH=60
 K5START_PRINCIPAL="host/$(hostname -f)"
-K5START_CCFILE=$(sed -n 's/^krb5_ccname *\(FILE:\)\?\([^: ]*\)
*$/\2/ip' $NSLCD_CFG)
+K5START_CCFILE=$(sed -n 's/^krb5_ccname\s*\(FILE:\)\?\([^: ]*\)
*$/\2/ip' $NSLCD_CFG)

 # check if we should use k5start by default (sasl_mech should be GSSAPI and
 # krb5_ccname should be found)
 if [ -x "$K5START_BIN" ] && \
-   grep -q '^sasl_mech *GSSAPI$' $NSLCD_CFG && \
+   grep -q '^sasl_mech\s*GSSAPI$' $NSLCD_CFG && \
    [ -n "$K5START_CCFILE" ]
 then
   K5START_START="yes"



-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages nslcd depends on:
ii  adduser             3.112+nmu2           add and remove users and groups
ii  debconf [debconf-2. 1.5.36.1             Debian configuration management sy
ii  libc6               2.11.2-10            Embedded GNU C Library: Shared lib
ii  libgssapi-krb5-2    1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries - k
ii  libldap-2.4-2       2.4.23-7.2           OpenLDAP libraries

Versions of packages nslcd recommends:
ii  libnss-ldapd [libnss-ldap]    0.7.13     NSS module for using LDAP as a nam
pn  libpam-ldapd | libpam-ldap |  <none>     (no description available)
ii  unscd [nscd]                  0.47-2     Micro Name Service Caching Daemon

Versions of packages nslcd suggests:
ii  kstart                        3.16-3     Kerberos kinit supporting AFS and

-- debconf information excluded



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

Reply via email to