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 Display Modes
  #1 (permalink)  
Old 06-26-2007, 08:04 AM
Junior Member
 
Posts: 6
Cool Getting BIND working on OpenSuSE 10.2 with Zimbra

I can't start BIND on my server as it gives this error:
Code:
hxnews:/etc/init.d # ./named start
Starting name server BIND /usr/sbin/named: error while loading shared libraries:
libldap-2.3.so.0: failed to map segment from shared object: Operation not
permitted
startproc:  exit status of parent of /usr/sbin/named: 127
OpenSuSE comes with version 2.3.27-25 of OpenLDAP which BIND must have been linked against.
Can anyone suggest how I get BIND running? I need a split DNS setup.

Thanks,

Edwin.
Reply With Quote
  #2 (permalink)  
Old 06-26-2007, 05:32 PM
Intermediate Member
 
Posts: 17
Default

I guess you could try and

ldd /usr/sbin/named

to trace file locations... 'operation not permitted' sounds weird.
Mangle things by having two copies of libldap, the suse one and the zimbra one and get each program to look for a symbolic link of whichever one suits.

Otherwise installing a different rpm, src rpm or compiling bind from source. You are then able to determine if bind even needs an ldap library and configure accordingly.

Dallas

Last edited by enterprisetoday : 06-26-2007 at 05:33 PM. Reason: spelling and grammar :P
Reply With Quote
  #3 (permalink)  
Old 06-29-2007, 05:06 AM
Senior Member
 
Posts: 54
Default

I'm also having this prob but it is on SUSE 10.1. Everything was hunky dory until I installed SUSE updates. The ver of BIND is 9.3.2 and I think it doesn't like the Zimbra libldap-2.3.so.0. I'm not a Linux guru but I wonder if it's possible to have an application specific symlink?
Code:
mail:/usr/sbin # ldd /usr/sbin/named
        linux-gate.so.1 =>  (0xffffe000)
        liblwres.so.9 => /usr/lib/liblwres.so.9 (0xb7f34000)
        libdns.so.21 => /usr/lib/libdns.so.21 (0xb7e2c000)
        libbind9.so.0 => /usr/lib/libbind9.so.0 (0xb7e24000)
        libisccfg.so.1 => /usr/lib/libisccfg.so.1 (0xb7e14000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7ceb000)
        libisccc.so.0 => /usr/lib/libisccc.so.0 (0xb7ce4000)
        libisc.so.11 => /usr/lib/libisc.so.11 (0xb7ca9000)
        libldap-2.3.so.0 => /opt/zimbra/lib/libldap-2.3.so.0 (0xb7c7a000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7c65000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7c51000)
        libc.so.6 => /lib/libc.so.6 (0xb7b30000)
        liblber-2.3.so.0 => /opt/zimbra/lib/liblber-2.3.so.0 (0xb7b25000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7b21000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb7b0e000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0xb7ade000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0xb79e4000)
        /lib/ld-linux.so.2 (0xb7f59000)
mail:/usr/sbin #
Question now is, how on earth do you get /usr/sbin/named to look somewhere else for it's ldap library? Guess I'll just keep hunting...

Last edited by Crexis : 06-29-2007 at 05:34 AM. Reason: Update
Reply With Quote
  #4 (permalink)  
Old 06-29-2007, 05:41 PM
Intermediate Member
 
Posts: 17
Default

It's quite possible that your bind installation isn't even using ldap, so I would try to compile a source rpm, disabling it's ldap abilities.

Otherwise, there's possibly some libldap's in /usr/lib, but you probably uninstalled the suse ldap in order to install zimbr (without issue).

I don't think there's any way to convince named to use anything else without recompiling.


Dallas
Reply With Quote
  #5 (permalink)  
Old 07-02-2007, 12:21 AM
Senior Member
 
Posts: 54
Default

Thanks for the response Dallas. I understand what you're saying but I can't help wondering, if it is not possible to change BIND's dependencies without recompiling, how did the zimbra install manage to do it? I'm pretty sure that Zimbra itself doesn't come with a BIND install but it has managed to include it's libldap into BIND's dependencies?
Reply With Quote
  #6 (permalink)  
Old 07-02-2007, 04:05 PM
Loyal Member
 
Posts: 98
Default

I have exactly the same problem with Opensuse10.2.
At first everything was OK, installation of zimbra went smoothly, all is good. I manage a local DNS on the same machine. Then, when I rebooted, bind failed to load with the same error:
Code:
# service named restart
..dead
Shutting down name server BIND - Warning: named not running!          done
Starting name server BIND /usr/sbin/named: error while loading shared libraries: libldap-2.3.so.0: failed to map segment from shared object: Operation not permitted
startproc:  exit status of parent of /usr/sbin/named: 127
                                                                      failed
So, the suggestion is to reinstall bind?
Reply With Quote
  #7 (permalink)  
Old 07-02-2007, 08:18 PM
Loyal Member
 
Posts: 98
Talking Solved!!

Ah, finally!
Apparmor is really interesting. I think it's similar to SELinux? But, with a
much easier to manage.
Ok, looks like by looking the audit.log, it says about bind is not allowed
to "map" to zimbra's library. The solution is to allow it.
To do it in apparmor, Yast > Apparmor> Edit profile > named > Add Entry > File > /opt/zimbra/lib/* > Save. Done!

Suse is cool!
Reply With Quote
  #8 (permalink)  
Old 07-03-2007, 02:24 AM
Senior Member
 
Posts: 54
Default

SWEET!

Thanks Fajarpri! I found Novell AppArmor in YaST. Didn't seem to work when I tried editing the profile so I just disabled it altogether. BIND works! I wonder if this is not also fixable by adding the "named" user to the "zimbra" group or something like that.

Last edited by Crexis : 07-03-2007 at 02:25 AM. Reason: typo
Reply With Quote
  #9 (permalink)  
Old 07-03-2007, 10:54 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Nice fajarpri,
Thanks for that!
Reply With Quote
  #10 (permalink)  
Old 07-07-2007, 01:35 AM
Junior Member
 
Posts: 6
Thumbs up Solved, thanks.

The AppArmour fix worked a treat. To make it easier, after trying to start BIND (and obviously failing) go to yast and select "Novell AppArmour => Update Profile Wizard" It should detect the error from its logs and ask if you want to change the profile to allow it in future. Select yes, exit yast and start bind again. There should be no problem. Cheers, Edwin.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0