Bug#377150: libnss-ldap: upgrade failed if base dn has hyphen

2006-07-25 Thread Andreas Matthus

This is a litle mistake in
/var/lib/dpkg/info/libnss-ldap.postinst

please change the line

value=`echo $value | sed -s 's#-#\\-#g'`
to
value=`echo $value | sed -s 's#-#\\\-#g'`

Then call 
apt-get -f install 

and all works fine.

-- 
Andreas Matthus <[EMAIL PROTECTED]>



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



Bug#377150: libnss-ldap: upgrade failed if base dn has hyphen

2006-07-06 Thread SATOH Fumiyasu
Package: libnss-ldap
Version: 251-5
Severity: normal

I met the following error when I tried to upgrade libnss-ldap
to 251-5:

# apt-get install libnss-ldap
Reading package lists...
Building dependency tree...
libnss-ldap is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up libnss-ldap (251-5) ...
Bareword found where operator expected at -e line 1, near "s-^base .*-base 
dc=domain-name"
syntax error at -e line 1, near "s-^base .*-base dc=domain-name"
Execution of -e aborted due to compilation errors.
dpkg: error processing libnss-ldap (--configure):
 subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
 libnss-ldap
E: Sub-process /usr/bin/dpkg returned an error code (1)
# debconf-show libnss-ldap
* libnss-ldap/rootbindpw: (password omitted)
  libnss-ldap/bindpw: (password omitted)
* libnss-ldap/dblogin: false
  libnss-ldap/override: true
* shared/ldapns/base-dn: dc=domain-name,dc=co,dc=jp
* shared/ldapns/ldap-server: 127.0.0.1
* libnss-ldap/confperm: false
* libnss-ldap/rootbinddn: cn=manager,dc=example,dc=net
* shared/ldapns/ldap_version: 3
  libnss-ldap/binddn: cn=proxyuser,dc=example,dc=net
* libnss-ldap/nsswitch:
* libnss-ldap/dbrootlogin: true

-- 
-- Name: SATOH Fumiyasu / fumiyas @ miraclelinux.com
-- Business Home: http://www.MiracleLinux.com
-- Personal Home: http://www.SFO.jp/blog/


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