content:serverbasics:docker-freeipa
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| content:serverbasics:docker-freeipa [2025/04/07 13:00] – obel1x | content:serverbasics:docker-freeipa [2026/03/06 16:39] (aktuell) – [Setup Sudoers with FreeIPA/SSSD] obel1x | ||
|---|---|---|---|
| Zeile 101: | Zeile 101: | ||
| | | ||
| | | ||
| + | |||
| + | networks: | ||
| + | # Still needs to be defined while without it won't enable ipv6 | ||
| + | default: | ||
| + | driver: bridge | ||
| + | enable_ipv6: | ||
| </ | </ | ||
| - | The caddy_data Volume contains the Certifictes for encryption from Caddy as described in [[.: | + | The caddy_data Volume contains the Certifictes for encryption from Caddy as described in [[: |
| __**STRONG ADVISE: Do not open Ports of your firewall of the services Kerberos, LDAP or DNS until you configured everything first, otherwise your Server will be very insecure at this stage!**__ | __**STRONG ADVISE: Do not open Ports of your firewall of the services Kerberos, LDAP or DNS until you configured everything first, otherwise your Server will be very insecure at this stage!**__ | ||
| Zeile 130: | Zeile 136: | ||
| As the internal Certificate of FreeIPA will be self-signed, | As the internal Certificate of FreeIPA will be self-signed, | ||
| - | ===== Encryption | + | ===== Certificate- Setup - SSL for LDAP and Kerberos |
| First thing you should do, is to secure the (Kerberos and LDAP)- ports with the certificate from letsenrcypt that Caddy gave you when openining the Webservice for IPA at [FQDN_HOSTNAME]. Without those matching certificates in place, Kerberos later won't accept the self signed- certificates that FreeIPA will create during install. | First thing you should do, is to secure the (Kerberos and LDAP)- ports with the certificate from letsenrcypt that Caddy gave you when openining the Webservice for IPA at [FQDN_HOSTNAME]. Without those matching certificates in place, Kerberos later won't accept the self signed- certificates that FreeIPA will create during install. | ||
| Zeile 186: | Zeile 192: | ||
| **Caution: Not renewing those Certificates will LOCK YOU OUT OF FREEIPA COMPLETEY with NOT OPTION to correct that after the certificates have expired!** | **Caution: Not renewing those Certificates will LOCK YOU OUT OF FREEIPA COMPLETEY with NOT OPTION to correct that after the certificates have expired!** | ||
| + | |||
| + | |||
| ==== Explanation of the Commands, Checks and Debugging ==== | ==== Explanation of the Commands, Checks and Debugging ==== | ||
| Zeile 567: | Zeile 575: | ||
| ==== Install Kerberos-Client and enroll your PC to the Domain ==== | ==== Install Kerberos-Client and enroll your PC to the Domain ==== | ||
| + | |||
| + | Currently unfortunatelly i was not able to get Leap 15.6 working with freeipa-client (which worked for 15.5). So i switched to fedora (the KDE- Spin is very nice) | ||
| + | |||
| + | On Fedora, you can archive the Installation like this (Docs at [[https:// | ||
| + | < | ||
| + | |||
| + | #:> sudo yum install ipa-client | ||
| + | |||
| + | </ | ||
| + | |||
| + | After that, go on with the next chapter [[https:// | ||
| + | |||
| + | ---- | ||
| + | |||
| + | Using Ferdora, skip this! | ||
| After a fresh Install of OpenSUSE, you frist need to get the Package freeipa-client. | After a fresh Install of OpenSUSE, you frist need to get the Package freeipa-client. | ||
| Zeile 586: | Zeile 609: | ||
| As the time beeing, there is no official Package for Leap 15.6. So you may use mine: | As the time beeing, there is no official Package for Leap 15.6. So you may use mine: | ||
| - | |||
| < | < | ||
| + | |||
| zypper addrepo https:// | zypper addrepo https:// | ||
| zypper refresh | zypper refresh | ||
| Zeile 597: | Zeile 620: | ||
| </ | </ | ||
| + | |||
| + | === Integrate to the Domain === | ||
| After that, you need to setup your Client maybe with this small script, called ipa_register_host.sh which you can put to /root: | After that, you need to setup your Client maybe with this small script, called ipa_register_host.sh which you can put to /root: | ||
| Zeile 616: | Zeile 641: | ||
| echo " | echo " | ||
| fi | fi | ||
| - | INSTCMD=" | + | INSTCMD=" |
| echo ${INSTCMD} | echo ${INSTCMD} | ||
| ${INSTCMD} | ${INSTCMD} | ||
| Zeile 661: | Zeile 686: | ||
| This should be all needed to work for Firefox. | This should be all needed to work for Firefox. | ||
| + | |||
| + | ==== Setup Sudoers with FreeIPA/ | ||
| + | |||
| + | This is quite a cool feature to have client admin- users managed by putting them in an IPA- group. When Loggin in with SSSD they will get added to the sudoers, making them admin on the given machines. Check this out: [[https:// | ||
| + | |||
| + | ==== Additional Groups ==== | ||
| + | |||
| + | You can also add System- Groups in IPA, that the client may have. E.g. a very nice group to have, would be a group named " | ||
| + | |||
| + | You can add the clientadmins- group to the wheel- group so all users of the clientadmins group will be in wheel to (check in IPA with the " | ||
| + | |||
| ===== Next Steps ===== | ===== Next Steps ===== | ||
| - | Next, you can integrate a Middleware for Authentication. You could, but you should NOT use FreeIPAs LDAP- Service directly as Authentication- Source for anything, as LDAP is very costy and would not deliver all needed APIs e.g. for SSO. This is part of your Middleware, so checkout [[.: | + | Next, you can integrate a Middleware for Authentication. You could, but you should NOT use FreeIPAs LDAP- Service directly as Authentication- Source for anything, as LDAP is very costy and would not deliver all needed APIs e.g. for SSO. This is part of your Middleware, so checkout [[: |
| + | |||
| + | ===== Special Annotations ===== | ||
| + | |||
| + | Here are some Points, tha may be relevant in special Cases. | ||
| + | |||
| + | ==== Backup and Restore ==== | ||
| + | |||
| + | If you ever need to restore your IPA- Volumes (wihcih may be for e.g. after broken Updates), be very careful about ownership of the files. IPA contains many Services, that are critical about which user owns the configurationfiles. When you are Backing up with Nextclouds-Borg, | ||
| + | |||
| + | Here are a few special files and users to pay attention to: | ||
| + | |||
| + | User Dirsrv | ||
| + | |||
| + | < | ||
| + | # chgrp named / | ||
| + | # chown named:named / | ||
| + | # chown root:named -R -h -L / | ||
| + | # chown named:named -R -h -L / | ||
| + | |||
| + | # chown dirsrv: | ||
| + | # chown dirsrv: | ||
| + | # chown dirsrv: | ||
| + | |||
| + | # chown root: | ||
| + | # chown pkiuser: | ||
| + | # chown pkiuser: | ||
| + | # chown pkiuser: | ||
| + | # chown pkiuser: | ||
| + | # chown pkiuser: | ||
| + | # chown pkiuser: | ||
| + | # chown pkiuser: | ||
| + | |||
| + | # chown root:named -h -L / | ||
| + | |||
| + | # chown root:ipaapi / | ||
| + | |||
| + | </ | ||
| + | |||
| + | so e.g.: | ||
| + | |||
| + | < | ||
| + | # ls -lZ / | ||
| + | -rw——-. dirsrv dirsrv system_u: | ||
| + | |||
| + | </ | ||
content/serverbasics/docker-freeipa.1744023640.txt.gz · Zuletzt geändert: von obel1x
