Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 02-24-2006, 11:48 AM
Former Zimbran
 
Posts: 294
Default slapd.conf and errors while starting ldap

I noticed that the line that was added earlier had disappeared from includes in slapd.conf. So I added the line again, and restarted ldap. This time ldap did not start and emitted the following error.

Code:
[root@zimbra ~]# /opt/zimbra/bin/ldap stop
[root@zimbra ~]# /opt/zimbra/bin/ldap start
db_recover: Finding last valid log LSN: file: 1 offset 2840359
db_recover: Recovery starting from [1][2840218]
db_recover: Recovery complete at Fri Feb 24 13:40:10 2006
db_recover: Maximum transaction ID 8000000e Recovery checkpoint [1][2840359]
ERROR - failed to start slapd
Here is the slapd.conf

Code:
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
#ucdata-path    "/opt/zimbra/openldap/ucdata"
include         "/opt/zimbra/openldap/etc/openldap/schema/core.schema"
include         "/opt/zimbra/openldap/etc/openldap/schema/cosine.schema"
include         "/opt/zimbra/openldap/etc/openldap/schema/inetorgperson.schema"
include         "/opt/zimbra/openldap/etc/openldap/schema/amavisd.schema"
include         "/opt/zimbra/openldap/etc/openldap/schema/zimbra.schema"
include         "/opt/zimbra/ib/conf/zimbra-hsm.schema"

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

pidfile         "/opt/zimbra/openldap/var/run/slapd.pid"
argsfile        "/opt/zimbra/openldap/var/run/slapd.args"

# Load dynamic backend modules:
# modulepath    /usr/local/libexec/openldap
# moduleload    back_bdb.la
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

# Sample security restrictions
#       Require integrity protection (prevent hijacking)
#       Require 112-bit (3DES or better) encryption for updates
#       Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
#       Root DSE: allow anyone to read it
#       Subschema (sub)entry DSE: allow anyone to read it
#       Other DSEs:
#               Allow self write access
#               Allow authenticated users read access
#               Allow anonymous users to authenticate
#       Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
#       by self write
#       by users read
#       by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!

access to dn.base="" by * read
access to dn.base="cn=Subschema" by * read

access to dn.subtree="cn=zimbra"
      by dn.children="cn=admins,cn=zimbra" write

# don't let anyone but admins access these attrs

access to attr=zimbraZimletUserProperties,zimbraGalLdapBindPassword,zimbraGalLdapBindDn,zimbraAuthTokenKey,zimbraPreAuthKey,zimbraPasswordHistory,zimbraIsAdminAccount,zimbraAuthLdapSearchBindPassword
        by dn.children="cn=admins,cn=zimbra" write
        by * none

# don't let user's change their own passwords, since we want
# to enforce password policy

access to attr=userPassword
        by anonymous auth
        by dn.children="cn=admins,cn=zimbra" write

# only allow access to these attrs basically GAL/Postfix related attrs

access to attrs=cn,co,company,dc,displayName,givenName,gn,initials,l,mail,o,objectclass,ou,physicalDeliveryOfficeName,postalCode,sn,st,street,streetAddress,telephoneNumber,title,uid
        by dn.children="cn=admins,cn=zimbra" write
        by * read

access to attrs=zimbraId,zimbraMailAddress,zimbraMailAlias,zimbraMailCanonicalAddress,zimbraMailCatchAllAddress,zimbraMailCatchAllCanonicalAddress,zimbraMailCatchAllForwardingAddress,zimbraMailDeliveryAddress,zimbraMailForwardingAddress,zimbraMailHost,zimbraMailStatus,zimbraMailTransport,zimbraDomainName,zimbraDomainType
        by dn.children="cn=admins,cn=zimbra" write
        by * read

access to attr=entry
        by dn.children="cn=admins,cn=zimbra" write
        by * read

#######################################################################
# BDB database definitions
#######################################################################

database        bdb
suffix          ""
rootdn          "uid=zimbra,cn=admins,cn=zimbra"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw {SSHA}hNq8VkDxxjlKlRFzV4sGSA2IXy8RN9Oe
# number of entries to keep in memory
cachesize 10000
# check point whenever 64k data bytes written or
# 5 minutes has elapsed whichever occurs first
checkpoint 64 5
loglevel 0
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory       "/opt/zimbra/openldap-data"
# Indices to maintain
index   objectClass            eq
index   zimbraForeignPrincipal eq
index   zimbraId               eq
index   zimbraMailCatchAllAddress eq,sub
index   zimbraMailDeliveryAddress eq,sub
index   zimbraMailAlias        eq,sub
index   zimbraDomainName       eq,sub
index   uid                    pres,eq
# white pages
index   mail                   pres,eq,sub
index   cn                     pres,eq,sub
index   displayName            pres,eq,sub
index   sn                     pres,eq,sub
index   gn                     pres,eq,sub
sessionlog 100 100
TLSCertificateFile /opt/zimbra/conf/slapd.crt
TLSCertificateKeyFile /opt/zimbra/conf/slapd.key
TLSVerifyClient never
TLSCACertificateFile /opt/zimbra/conf/ca/ca.pem
Reply With Quote
  #12 (permalink)  
Old 02-24-2006, 11:59 AM
Former Zimbran
 
Posts: 294
Default I spelt it wrong

It should have been:

include "/opt/zimbra/lib/conf/zimbra-hsm.schema"

but I had mentioned:

include "/opt/zimbra/ib/conf/zimbra-hsm.schema"

Will try proceed as per your directions and post feedback once done.
Reply With Quote
  #13 (permalink)  
Old 02-24-2006, 12:11 PM
Former Zimbran
 
Posts: 294
Smile Success

Dear marcmac,

Success!

Thank-you very much for these directions and time. It was the spelling...

Sincerely,

czaveri.
Reply With Quote
  #14 (permalink)  
Old 03-06-2006, 05:14 PM
Junior Member
 
Posts: 7
Default slapd conf not present

[zimbra@www conf]$ cat /opt/zimbra/conf/slapd.conf
cat: /opt/zimbra/conf/slapd.conf: No such file or directory
[zimbra@www conf]$
__________________
Paul Terry Walhus
http://spring.net
terry@spring.net

searching for a web developer who can build a complex calendar site that pulls from other websites and allows users to have their own customized calendars.

Need: immediate
Reply With Quote
  #15 (permalink)  
Old 03-06-2006, 05:16 PM
Zimbra Employee
 
Posts: 2,103
Default

Great problem report - I especially like the way you include the install platform, install version, install method, and where you are in the install process. Makes it really easy for us to figure out what happened.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.