Samba, Active Directory: Difference between revisions

From Elvanör's Technical Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
This is a quick tutorial explaining how to interact with a Windows Active Directory server. The main goal here was to mount directories on the Windows server.
= Samba =


The [http://gentoo-wiki.com/HOWTO_fit_Linux_into_Active_Directory official reference on the Gentoo wiki] has a lot more information.
* Using Samba can make sense in some cases, as more clients support Samba than NFS. For instance, 4XVR Video Player supports Samba but not NFS.
* Setting up Samba is pretty quick. [https://serverspace.io/support/help/configuring-samba-on-debian/ Here is a good tutorial that works fine on Debian.]
 
= Active Directory =
 
* This is a quick tutorial explaining how to interact with a Windows Active Directory server. The main goal here was to mount directories on the Windows server.
* The [http://gentoo-wiki.com/HOWTO_fit_Linux_into_Active_Directory official reference on the Gentoo wiki] has a lot more information.


== Prerequisites ==
== Prerequisites ==

Latest revision as of 16:23, 13 December 2024

Samba

Active Directory

  • This is a quick tutorial explaining how to interact with a Windows Active Directory server. The main goal here was to mount directories on the Windows server.
  • The official reference on the Gentoo wiki has a lot more information.

Prerequisites

  • You need to have Samba installed with the kerberos USE flag.
  • Edit the files /etc/krb5.conf and /etc/samba/smb.conf correctly.
  • VERY important: Add the Windows PDC (Primary Domain Controller) as a DNS server. Else you won't be able to join the Windows domain!

Creating the ticket, joining the domain

  • You must first create the ticket with the kinit command. This seems to create an authentication ticket that is valid for a period of time (one day or such).
  • After that, you must join the domain, which means that the server knows that your machine is authorized to be present on the domain. This is accomplished via the command:
net ads join -U elvanor

Operations

  • Once this is done, you can start working with the Windows service. The only thing I have done so far is mounting shares, via the smbmount command. This is fairly easy.