ipa-client-samba(1)
π ipa-client-samba β the manual page, but make it make sense π
okay bestie, welcome to ipa-client-samba(1), a page from the IPA Manual Pages. it's giving "set up a Samba file server on your IPA client" and honestly? it's a whole vibe. let's get into it π«Ά
β¨ NAME β¨
ipa-client-samba β configure a Samba file server on an IPA client πΈ
β¨ SYNOPSIS β¨
ipa-client-samba [OPTION]...
β¨ DESCRIPTION β¨
so what this does is it configures a Samba file server on the client machine so it uses the IPA domain controller for authentication and identity services. slay π
the tool sets up the Samba file server to be a domain member of the IPA domain. the Samba file server will use SSSD to resolve info about users and groups, and it will use the IPA master it's enrolled against as its domain controller. iconic, no notes π
heads up bestie β there is literally no way to reconciliate your original Samba environment if there was one already living on the client before this. the Samba databases will get updated to follow IPA domain details, and the smb.conf configuration will be overwritten. the recommendation is fr fr to enable the Samba suite on a freshly deployed IPA client. don't do it on your messy old setup, i'm begging π
during the configuration process, the tool will perform the following steps:
- discover details of the IPA domain: realm, domain SID, domain ID range
- discover details of trusted Active Directory domains: domain name, domain SID, domain ID range
- create the Samba configuration file using the details discovered above.
- create a Samba Kerberos service using host credentials and fetch its keytab into
/etc/samba/samba.keytab. the Kerberos service key is pre-set to a randomly generated value that is shared with Samba π - populate Samba databases by setting the domain details and the randomly generated machine account password from the previous step.
- create a default
[homes]share to allow users to log in to their home directories β unless the--no-homesoption was specified. π
and here's the thing: the tool does not start and does not enable Samba file services after the configuration. nope. not doing it. in order to enable and start Samba file services, you need to enable both smb.service and winbind.service system services. please check that /etc/samba/smb.conf contains all settings for your use case, because starting the Samba service will make identity mapping details get written into the Samba databases. π
to enable and start Samba file services at the same time, you can use the systemctl enable --now command:
systemctl enable --now smb winbind
π Assumptions π
the ipa-client-samba script assumes that the machine has already been enrolled into IPA. like, that part's on you bestie π
π IPA Master Requirements π
at least one IPA master must hold a Trust Controller role. you get that by running ipa-adtrust-install on the IPA master. the utility will configure the IPA master to be a domain controller for the IPA domain. periodt.
the IPA master holding a Trust Controller role also has to have support for a special service command to create the SMB service, ipa service-add-smb. this command is available with IPA 4.8.0 or later release. so if you're on something older... bestie, upgrade π
β¨ OPTIONS β¨
π BASIC OPTIONS π
--server=SERVERβ sets the FQDN of the IPA server to connect to. under normal circumstances you don't even need this option, because the server to use gets discovered automatically. main character energy, it finds itself β¨--no-homesβ do not configure a[homes]share by default to allow users to access their home directories.--no-nfsβ do not enable SELinux booleans to allow Samba to re-share NFS shares.--netbios-name=NETBIOS_NAMEβ the NetBIOS name of this machine. if you don't provide it, then it's determined based on the leading component of the hostname. π₯οΈ-d,--debugβ print debugging information to stdout. π-U,--unattendedβ unattended installation. the user will not be prompted. go off, no questions asked π--uninstallβ revert the Samba suite configuration changes and remove the SMB service principal. and ngl, it is not possible to preserve the original Samba configuration: while thesmb.confconfiguration file will be restored, various Samba databases would not be restored. in general, it is not possible to restore the full original Samba environment. π--forceβ force through the installation steps even if they were done before. yeah, just send it π₯
β¨ FILES β¨
files that will be replaced if Samba is configured:
/etc/samba/smb.conf
/etc/samba/samba.keytab
β¨ EXIT STATUS β¨
0β if the installation was successful π1β if an error occurred π
β¨ SEE ALSO β¨
smb.conf(5), krb5.conf(5), sssd.conf(5), systemctl(1)
and that's the whole page bestie, you ate that π this one comes from the IPA manual, dated Jun 10 2019 β so yeah, she's been around, and she still serves. byeeee ππ¦πΈ
π¦ where this page comes from
- centos-stream 10: ipa-client-samba 4.13.4-1.el10 Β· GPL-3.0-or-later
- centos-stream 9: ipa-client-samba 4.13.4-1.el9 Β· GPL-3.0-or-later
- debian bookworm: freeipa-client-samba 4.9.11-1 Β· GPL-3.0-or-later
- debian trixie: freeipa-client-samba 4.12.4-1 Β· GPL-3.0-or-later
- fedora 43: freeipa-client-samba 4.12.5-3.fc43 Β· GPL-3.0-or-later
- fedora 43: freeipa-client-samba 4.13.4-2.fc43
- fedora 43: freeipa-client-samba 4.13.4-3.fc43 Β· GPL-3.0-or-later
- fedora 44: freeipa-client-samba 4.13.1-9.fc44 Β· GPL-3.0-or-later
- fedora 44: freeipa-client-samba 4.13.4-2.fc44
- fedora 44: freeipa-client-samba 4.13.4-3.fc44 Β· GPL-3.0-or-later
- nixos 26.05: freeipa 4.12.5
- nixpkgs unstable: freeipa 4.13.1
- ubuntu jammy: freeipa-client-samba 4.9.8-1 Β· GPL-3.0-or-later
- ubuntu noble: freeipa-client-samba 4.11.1-2 Β· GPL-3.0-or-later
- ubuntu questing: freeipa-client-samba 4.12.4-1
- ubuntu resolute: freeipa-client-samba 4.13.1-1 Β· GPL-3.0-or-later
- ubuntu stonking: freeipa-client-samba 4.13.1-1build1 Β· GPL-3.0-or-later
- Copyright (C) 2008-2016 FreeIPA Contributors see COPYING for license
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms