doktor5000 wrote:Can you please be a little more verbose? Where's the relation between bind and samba? Is there any error message you get?
And if it's only about the samba configuration files, simply add a bind mount for /etc/samba in the chroot ...
include "/usr/local/samba/lib/bind9/blablabla.bla"
xlin wrote:When you install the samba, it requires file from /usr/local/samba/lib/bind9
doktor5000 wrote:Do you get any actual error message when compiling samba?
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;
dnssec-enable no;
dnssec-validation no;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
include "/etc/named.root.key";
include "/usr/local/samba/private/named.conf";
dlz "AD DNS Zone" {
# For BIND 9.8.x
# database "dlopen /usr/local/samba/lib/bind9/dlz_bind9.so";
# For BIND 9.9.x
# database "dlopen /usr/local/samba/lib/bind9/dlz_bind9_9.so";
# For BIND 9.10.x
database "dlopen /usr/local/samba/lib/bind9/dlz_bind9_10.so";
};
[root@ad1 private]# systemctl status named.service -l
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled)
Active: failed (Result: exit-code) since Ср 2016-02-24 01:23:42 MSK; 8s ago
Process: 1961 ExecStopPost=/usr/sbin/setup-named-chroot.sh /var/lib/named off (code=exited, status=0/SUCCESS)
Process: 1956 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 1196 ExecStart=/usr/sbin/named -u named -t /var/lib/named $OPTIONS (code=exited, status=0/SUCCESS)
Process: 2092 ExecStartPre=/usr/sbin/named-checkconf -t /var/lib/named -z /etc/named.conf (code=exited, status=1/FAILURE)
Process: 2070 ExecStartPre=/usr/sbin/setup-named-chroot.sh /var/lib/named on (code=exited, status=0/SUCCESS)
Main PID: 1200 (code=exited, status=0/SUCCESS)
фев 24 01:23:42 ad1 named-checkconf[2092]: /etc/named.conf:38: open: /usr/local/samba/private/named.conf: file not found
фев 24 01:23:42 ad1 systemd[1]: named.service: control process exited, code=exited status=1
фев 24 01:23:42 ad1 systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
фев 24 01:23:42 ad1 systemd[1]: Unit named.service entered failed state.
фев 24 01:23:42 ad1 systemd[1]: named.service failed.
doktor5000 wrote:And you could simply rebuild the samba4 packages from cauldron under Mageia 5 which is probably easier then building from scratch.
[user@openqa_mga6]─[23:31:05]─[~] urpmq --sources samba
ftp://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/cauldron/x86_64/media/core/release/samba-4.3.4-4.mga6.x86_64.rpm
doktor5000 wrote:Then what's this?
- Code: Select all
[user@openqa_mga6]─[23:31:05]─[~] urpmq --sources samba
ftp://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/cauldron/x86_64/media/core/release/samba-4.3.4-4.mga6.x86_64.rpm
Users browsing this forum: No registered users and 1 guest