View Single Post
  #3 (permalink)  
Old 10-28-2007, 01:20 PM
ppearl ppearl is offline
Zimbra Employee
 
Posts: 11
Default

Quote:
Originally Posted by fruitlounge View Post
Using the wiki guide from Greg I'm trying to get this all setup on a 4.5.7 NE box, but I cannot get it to fully work

First problem I had was after adding
index memberUID eq
I got the following error while starting LDAP:
/opt/zimbra/conf/slapd.conf: line 189: index attribute "memberUID" undefined
(repeated about 8 times, and stalling the startup script)

All the other indexes (uidNumber/gidNumber/sambaSID/sambaPrimaryGroupSID and sambaDomainName) work without any problems.
...
I believe you are dealing with two issues...

#1 Slow startup due to slapd not running (chicken/egg problem).
#2 Potentially invalid config/extra white space tripping up slapd conf parser.

ISSUE #1 Slow startup due to slapd not running (chicken/egg problem).
Do you see messages like these in /var/log/messages when trying to start "slapd"?

Code:
Oct 28 13:39:01 myhost slapd[28571]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)...
Oct 28 13:39:05 myhost slapd[28571]: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)...
If so, consider changing /etc/nsswitch.conf so that group lookups do not hit LDAP (annoying but perhaps better than the alternative behavior). The following is an example of the change along with some comments so you'll remember why you did it:

Code:
#NOTE: group lookups when slapd isn't running are TOO SLOW!
#OFF group:      files ldap
group:      files
ISSUE #2 Potentially invalid config/extra white space tripping up slapd conf parser.

Check your slapd.conf.in, does your include for "nis.schema" come after an include statement that is on a line with leading whitespace? If so, remove the leading whitespace:

Change this:
Code:
               include "/opt/zimbra/lib/conf/zimbra-ext.schema"
To this (leading whitespace removed):
Code:
include               "/opt/zimbra/lib/conf/zimbra-ext.schema"
Then you can put your index directive back in:
Code:
index memberUid                 eq
Hope this helps!
Reply With Quote