Configuring the DNS name
1. Modify the file /etc/hostname and fill in the FQDN name of the server
3. Reboot
Finalizing your basic configuration
1. After the reboot, set the system language to English to make it easier to find problems in the logs:
2. Disable avahi-daemon (mDNS protocol / bonjour):
3. Update Debian and install the necessary administration tools:
Installing and configuring Samba-AD on Debian
Define an apt repository and add GPG public key:
Installing the packages
Instantiating the Active Directory Samba domain
1. Modify the file /etc/krb5.conf and replace all its contents by the following 4 lines by specifying the Active Directory domain of your organization (here MYDOMAIN.LAN).
Setting up Samba
1. Rename the file /etc/samba/smb.conf if it has already been generated (it will be regenerated by the instantiation command):
2. On Debian, we need to stop all fileserver services :
3. Configure Samba with the role of domain controller. In the following line, you will think about changing both the name of the kerberos kingdom, and the short name of the domain (netbios name):
4. Reset the administrator password:
5. Check the line dns forwarder = xxx.xxx.xxx in your file /etc/samba/smb.conf. It must point to a valid DNS server, e.g.:
6. Reconfigure the DNS resolution for the local machine. In the network interface file /etc/resolv.conf, replace the following line with the following line:
7. The Samba domain creation script creates an unnecessary /var/lib/samba/private/krb5.conf file. It must be removed and replaced by a symbolic link to the /etc/krb5.conf file:
8. Activate Samba so that it starts automatically at the next reboot:
9. Reboot the machine with a reboot to verify that Samba reboots:
10. After rebooting, ensure that kerberos is properly configured and that you get a TGT:
11. Test the DNS:
Installing and configuring Hybrid DNS
Tranquil IT recommends the use of both Samba-AD internal DNS server and Bind. The Samba-AD internal DNS server will handle internal queries, while Bind will manage external ones. This configuration uses few resources and benefits from the caching functionality provided by Bind.
1. Install the Bind package:
2. Modify the options section of the file /etc/bind/named.conf.options (remember to modify the forwarder):
3. If needed, you can set a forwarder for a specific zone, modify the local section of the file /etc/bind/named.conf.local:
4. Disable IPv6 bind on the local network in /etc/default/named:
5. In /etc/samba/smb.conf, add the following line:
6. Finally restart the samba and bind services:
Ensuring the correct configuration of Bind
1. Ensure that the Bind server is listening on port 5353:
2. Test local and recursive queries:
Congratulations, your configuration is moving forward and you have just taken another step towards the solidity and efficacy of your Samba-AD installation.
Comments
Post a Comment