Ignore:
Timestamp:
Feb 4, 2016, 12:19:15 PM (3 years ago)
Author:
hectorgh
Message:

supporting mdbconfig instead of hdbconfig. ldap has changed its default config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d-ldap/trunk/fuentes/install/usr/sbin/reset-slapd

    r149 r329  
    1919        tmpfile=`mktemp`
    2020        exec 7<>"$tmpfile"
    21         rm "$tmpfile"
     21        #rm "$tmpfile"
    2222
    2323        # Run the program and capture stderr. If the program fails the
     
    7676chown ${SLAPD_USER}:${SLAPD_GROUP} $SLAPD_RUN || die "On /etc/default/slapd aren't SLAPD_USER or SLAPD_GROUP variable"
    7777
    78 backend="hdb"
    79 backendobjectclass="olcHdbConfig"
     78backend="mdb"
     79backendobjectclass="olcMdbConfig"
    8080basedn='dc=ma5,dc=lliurex,dc=net'
    8181adminpass='{SSHA}o4UvsuAZNXNkZPgPwgktIvhEli8IdhFJ'
    82 
     82backendoptions=""
    8383initldif=`mktemp -t slapadd.XXXXXX`
    8484cat /usr/share/slapd/slapd.init.ldif > ${initldif}
    8585
    8686# Change some defaults
     87sed -i -e "/@BACKENDOPTIONS@/d" ${initldif}
    8788sed -i -e "s|@BACKEND@|$backend|g" ${initldif}
    8889sed -i -e "s|@BACKENDOBJECTCLASS@|$backendobjectclass|g" ${initldif}
Note: See TracChangeset for help on using the changeset viewer.