Koozali.org: home of the SME Server

slapd error filling logs

Offline tariqf

  • *****
  • 179
  • +0/-0
slapd error filling logs
« on: December 06, 2005, 03:27:14 PM »
I have a fresh sme server 7b8 install with openxchange rpms from http://smeserver.free.fr/ox/ox7/

My problem is that slapd errors are filling up my /var/log/messages file as below. Please can anyone help?

Dec  6 13:25:40 sme slaptest: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Dec  6 13:25:40 sme slaptest: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Dec  6 13:25:40 sme slaptest: /etc/openldap/slapd.conf: line 19: schema checking disabled! your mileage may vary!
Dec  6 13:25:40 sme ldap:  succeeded
Dec  6 13:25:40 sme slapd[28565]: @(#) $OpenLDAP: slapd 2.2.13 (Oct 18 2005 10:08:34) $         buildcentos@x8664-build:/home/buildcentos/rpmbuild/BUILD/openldap-2.2.13/openldap-2.2.13/build-servers/servers/slapd
Dec  6 13:25:40 sme slapd[28565]: daemon: bind(6) failed errno=98 (Address already in use)
Dec  6 13:25:40 sme slapd[28565]: daemon: IPv6 socket() failed errno=97 (Address family not supported by protocol)
Dec  6 13:25:40 sme slapd[28565]: slapd stopped.
Dec  6 13:25:40 sme slapd[28565]: connections_destroy: nothing to destroy.
Dec  6 13:25:40 sme ldap: slapd startup failed

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: slapd error filling logs
« Reply #1 on: December 09, 2005, 05:03:26 PM »
Quote from: "tariqf"
I have a fresh sme server 7b8 install with openxchange rpms from http://smeserver.free.fr/ox/ox7/

My problem is that slapd errors are filling up my /var/log/messages file as below. Please can anyone help?

Dec  6 13:25:40 sme slaptest: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Dec  6 13:25:40 sme slaptest: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Dec  6 13:25:40 sme slaptest: /etc/openldap/slapd.conf: line 19: schema checking disabled! your mileage may vary!
Dec  6 13:25:40 sme ldap:  succeeded
Dec  6 13:25:40 sme slapd[28565]: @(#) $OpenLDAP: slapd 2.2.13 (Oct 18 2005 10:08:34) $         buildcentos@x8664-build:/home/buildcentos/rpmbuild/BUILD/openldap-2.2.13/openldap-2.2.13/build-servers/servers/slapd
Dec  6 13:25:40 sme slapd[28565]: daemon: bind(6) failed errno=98 (Address already in use)
Dec  6 13:25:40 sme slapd[28565]: daemon: IPv6 socket() failed errno=97 (Address family not supported by protocol)
Dec  6 13:25:40 sme slapd[28565]: slapd stopped.
Dec  6 13:25:40 sme slapd[28565]: connections_destroy: nothing to destroy.
Dec  6 13:25:40 sme ldap: slapd startup failed


You are trying to run two instances of ldap simultaneously. Presumably one was started up as a backgrounded daemon by the OX install, and the other is the supervised instance of slapd started by SME server.

"killall -TERM slapd" should fix the errors.

Offline tariqf

  • *****
  • 179
  • +0/-0
can't stop slapd!
« Reply #2 on: January 31, 2006, 07:24:31 PM »
Ok thanks for the information - I see that sme LDAP is somehow conflicting with the openxchange LDAP but I'm not an expert so I'm stil struggling with this.

I simply cannot get slapd to stop!

I do

/ett/init.d/ldap stop
killall -9 -9 slapd (numerous times to kill it)

But then something else starts slapd up and I can still see it with

ps -A | grep slapd

Any ideas? I think I need to stop sme server loading up it's slapd configuration so openxchange can do its thing or so that I can simply start slapd myself to debug

How can I stop this damn slapd so I can then start it alone with slapd -d 256?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: can't stop slapd!
« Reply #3 on: January 31, 2006, 07:26:42 PM »
Quote from: "tariqf"

How can I stop this damn slapd so I can then start it alone with slapd -d 256?


/sbin/e-smith/config setprop ldap status disabled
svc -d /service/ldap

Offline tariqf

  • *****
  • 179
  • +0/-0
slapd sopped
« Reply #4 on: January 31, 2006, 07:52:58 PM »
Brilliant thanks that did the trick. Now at least I can start slapd and i know its the only one running.

Now I just have to figure out why all my clients are getting

Jan 31 18:49:00 henton slapd[22531]: conn=0 op=4 BIND dn="uid=chris,ou=Users,ou=OxObjects,dc=hentons,dc=com" method=128
Jan 31 18:49:00 henton slapd[22531]: conn=0 op=4 RESULT tag=97 err=49 text=
Jan 31 18:49:12 henton slapd[22531]: conn=0 op=5 BIND dn="" method=128
Jan 31 18:49:12 henton slapd[22531]: conn=0 op=5 RESULT tag=97 err=0 text=
Jan 31 18:49:12 henton slapd[22531]: conn=0 op=6 BIND dn="uid=valerie,ou=Users,ou=OxObjects,dc=hentons,dc=com" method=128
Jan 31 18:49:12 henton slapd[22531]: conn=0 op=6 RESULT tag=97 err=49 text=
Jan 31 18:49:17 henton slapd[22531]: conn=0 op=7 BIND dn="" method=128
Jan 31 18:49:17 henton slapd[22531]: conn=0 op=7 RESULT tag=97 err=0 text=
Jan 31 18:49:17 henton slapd[22531]: conn=0 op=8 BIND dn="uid=nadeem,ou=Users,ou=OxObjects,dc=hentons,dc=com" method=128
Jan 31 18:49:17 henton slapd[22531]: conn=0 op=8 RESULT tag=97 err=49 text=
Jan 31 18:49:28 henton slapd[22531]: conn=0 op=9 BIND dn="" method=128
Jan 31 18:49:28 henton slapd[22531]: conn=0 op=9 RESULT tag=97 err=0 text=
Jan 31 18:49:28 henton slapd[22531]: conn=0 op=10 BIND dn="uid=alex,ou=Users,ou=OxObjects,dc=hentons,dc=com" method=128
Jan 31 18:49:28 henton slapd[22531]: conn=0 op=10 RESULT tag=97 err=49 text=

even though I've not changed anything and it was all working before! Oh well here goes....

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: slapd sopped
« Reply #5 on: January 31, 2006, 08:06:10 PM »
Quote from: "tariqf"

Now I just have to figure out why all my clients are getting

Jan 31 18:49:00 henton slapd[22531]: conn=0 op=4 BIND dn="uid=chris,ou=Users,ou=OxObjects,dc=hentons,dc=com" method=128
Jan 31 18:49:00 henton slapd[22531]: conn=0 op=4 RESULT tag=97 err=49 text=


Your new ldap server is using a different password. I think you'll find you're not using the same root password as has been set.

Offline tariqf

  • *****
  • 179
  • +0/-0
ldap password
« Reply #6 on: January 31, 2006, 09:00:33 PM »
thanks it seems I have a long night of reading up on ldap and openxchange ahead of me!

Can you give me a hint where I can change or see what root password has been set in my ldap server?