[Samba] samba4 internal dns Server ddns for the reverse lookup Zone

steve steve at steve-ss.com
Thu Aug 14 05:42:47 MDT 2014


On Thu, 2014-08-14 at 12:45 +0200, Markus Roth wrote:
> Hi Steve,
> 
> Thanks a lot :-) do i understand that correct that i have to install bind9 and compile samba4 and follow your howto and than configure samba4 with the RFC 2307 and bind9 dlz?
> 
Hi Markus
No, it's not as complicated as that. You can use the existing DNS
databases.
1. Install bind9
2. edit /etc/named.conf (or the files under /etc/bind on debian) to look
like:
options {
        directory "/var/lib/named";
        managed-keys-directory "/var/lib/named/dyn/";
        forwarders { 192.168.1.1; };
        notify no;
        tkey-gssapi-keytab "/usr/local/samba/private/dns.keytab";
};
include  "/usr/local/samba/private/named.conf";


3. samba_upgradedns --dns-backend=BIND9_DLZ
4. Not sure whether samba updates the permissions these days so check
that the named user has rw on the dns dbs and r on the keytab under
$SAMBAHOME/private
5. Delete the reverse zone (if you added it for the internal dns) and
restart named.
6. re-add the reverse zone
7. _Now_ follow the link for sssd.
HTH,
Steve


> 
> Am 14.08.14 um 10:36 schrieb steve
> 
> > On Wed, 2014-08-13 at 23:42 +0200, Markus Roth wrote:
> > 
> > > Hi Steve,
> > 
> > > 
> > 
> > > thanks for your replay. I've found these artikel on
> > 
> > > https://wiki.samba.org/index.php/Local_user_management_and_authentication/ss
> > 
> > > sd. Two questions:
> > 
> > > 
> > 
> > > 1. Sould i only type for the PATH-Variable on the shell "
> > 
> > > PKG_CONFIG_PATH=/usr/local/samba/lib/pkgconfig/" ? Or should i edit a
> > 
> > > special file to type that into that special file?
> > 
> > > 
> > 
> > > 2. At next shoould i try Mehtod1 or Method 2?
> > 
> > > If i need method1 do i have to install bind anymore?
> > 
> > 
> > 
> > Hi Markus
> > 
> > That article is out of date I'm afraid. To make life easier, please grab
> > 
> > a recent version of sssd and go from here:
> > 
> > http://linuxcostablanca.blogspot.com.es/2014/04/sssd-ad-backend-with-samba4.html
> > 
> > 
> > 
> > That should solve both your user mapping and ddns queries in one go.
> > 
> > HTH,
> > 
> > Steve




More information about the samba mailing list