~ttx/openldap/lucid-gssapi-495418

« back to all changes in this revision

Viewing changes to debian/slapd.scripts-common

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2008-10-13 19:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20081013193115-4zfu88fm6yft8658
Tags: 2.4.11-0ubuntu5
Don't set admin passwords in ldif files if adminpw is empty. 
(LP: #273988LP: #276606).  

Show diffs side-by-side

added added

removed removed

Lines of Context:
429
429
                -e "s/@SUFFIX@/$basedn/g" \
430
430
                -e "s/@ADMIN@/cn=admin,$basedn/g" \
431
431
                > ${init_ldif}
 
432
         if [ "$adminpass" = "" ]; then
 
433
                 sed -i -e '/^olcRootPW: / d' ${init_ldif}
 
434
         fi
432
435
        capture_diagnostics slapadd -F "${SLAPD_CONF}" \
433
436
                -b "cn=config" -l ${init_ldif} || failed=1
434
437
        if [ "$failed" ]; then