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.
[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
#
# 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
Enable clear text login - Server error encountered
Enable clear text login - Server error encountered
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.
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.
Enable clear text login - Server error encountered
Dear marcmac,
Success!
Thank-you very much for these directions and time. It was the spelling...
Sincerely,
czaveri.
Success!
Thank-you very much for these directions and time. It was the spelling...
Sincerely,
czaveri.
-
- Posts: 7
- Joined: Fri Sep 12, 2014 9:54 pm
Enable clear text login - Server error encountered
[zimbra@www conf]$ cat /opt/zimbra/conf/slapd.conf
cat: /opt/zimbra/conf/slapd.conf: No such file or directory
[zimbra@www conf]$
cat: /opt/zimbra/conf/slapd.conf: No such file or directory
[zimbra@www conf]$
Enable clear text login - Server error encountered
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.