Active Directory Client: Difference between revisions
imported from old wiki |
Phanirithvij (talk | contribs) m imported from old wiki |
||
Line 140: | Line 140: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
3) <code>nix-channel --update ; nixos-switch rebuild --upgrade</code> | |||
'''Note''' | '''Note''' | ||
Line 146: | Line 146: | ||
* These commands presume that you're using the classic NixOS channels and not the experimental flakes configuration. | * These commands presume that you're using the classic NixOS channels and not the experimental flakes configuration. | ||
* These commands will freshen all installed packages and configuration settings. | * These commands will freshen all installed packages and configuration settings. | ||
* If you experience an error from systemd/sssd, disregard it. You will fix that error | * If you experience an error from systemd/sssd, disregard it. You will fix that error by joining the domain. | ||
4) Join your domain | |||
<code>sudo adcli join --domain=your.domain.com --user=administrator</code> | <code>sudo adcli join --domain=your.domain.com --user=administrator</code> | ||
5) Restart SSSD | |||
<code>sudo systemctl restart sssd</code> | <code>sudo systemctl restart sssd</code> | ||
6) Confirm that you have successfully joined your AD | |||
<code>realm discover your_domain_lowercase</code> | <code>realm discover your_domain_lowercase</code> | ||
Line 162: | Line 162: | ||
<code>id user_in_AD</code> | <code>id user_in_AD</code> | ||
7) Optional: You may reboot to ensure that your machine sustains its domain binding and that end users can login. As of 2024, the adcli join and sssd restart seem to be sufficient. | |||
8) Optional: If the computer is a laptop, you may add a named user to the NixOS local networkmanager group so that person can add a WiFI network, switch between wireless/wired, and so on. | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> |