summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2026-09-16Add UsrEtc supportSamuel Cabrero1-0/+14
New configure option '--with-vendordir' to search for krb5.conf in case $(sysconfdir)/krb5.conf does not exist. Doc: https://en.opensuse.org/openSUSE:Packaging_UsrEtc Doc: https://github.com/uapi-group/specifications/blob/main/specs/configuration_files_specification.md Signed-off-by: Samuel Cabrero <scabrero@suse.com>
2026-06-30enroll: make computer-password-lifetime argument requiredSumit Bose1-1/+1
Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/work_items/47
2025-12-19enroll: fix issues if default keytab is usedSumit Bose1-3/+3
librkb5 returns the default keytab with a 'FILE:' prefix which must be removed before calling libselinux functions to operate on the keytab file. Resolves: https://issues.redhat.com/browse/RHEL-78631
2025-09-10Fixing typos 'Sucessfully validated join to domain' realmd/adcli#43urgemerge1-1/+1
2025-07-15enroll: restore SELinux file context of keytab filesSumit Bose1-0/+6
If SELinux is enable in a system the file context of the keytab file might be important because it will restrict access for confined services and applications. Typically the system keytab /etc/krb5.keytab is handled by the system policy. But adcli will create e.g. /etc/krb5.keytab.domain.name for MSAs which should get the keytab specific file context as well. This patch adds a SELinux policy module for adcli which set the file context for files matching the pattern /etc/krb5.keytab.* and /etc/sssd/krb5.keytab.* . Unfortunately wildcards are not supported for automatic transitions in the kernel so that adcli has to call selinux_restorecon() manually on new or changed keytab files. Resolves: https://issues.redhat.com/browse/RHEL-78631
2025-07-03tools: add --recursive option to delete-computerSumit Bose1-1/+9
With this new option the delete-computer sub-command can delete child objects of the computer object as well. Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/18 Resolves: https://issues.redhat.com/browse/RHEL-16141
2025-07-01tools: testjoin, use realm from keytab as domain nameSumit Bose1-0/+7
Since the DNS domain name of a client might differ from the name of the joined domain it is more reliable to use the realm name found in the keytab when testing the join. Resolves: https://issues.redhat.com/browse/RHEL-5044
2024-11-20Various fixes for issues found by static code scannersSumit Bose1-7/+17
2022-09-27adenroll: set password via LDAP instead KerberosSumit Bose1-1/+12
Use LDAP add/mod operation instead of Kerberos to set the machine account password. There was an issue in AD where if PacRequestorEnforcement was set to '2' setting the machine account password via Kerberos would be rejected. This is already fixed on the AD side bit this patch which was created with the help of David Mulder <dmulder@suse.com> might still be useful if setting the machine account password with Kerberos might fail. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2039349 Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/27
2022-09-26disco: fall back to LDAPS if CLDAP ping was not successfulSumit Bose1-2/+2
If the --use-ldaps option is used and there is no reply on the CLDAP 389/udp port adcli will try to send the request to the LDAPS port 636/tcp. Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/31
2022-09-16tools: replace getpass()Sumit Bose1-1/+44
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2124030 Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/10
2022-08-31doc: add clarification to add-member command on doc/adcli.xmlnordine vallas1-0/+1
2022-08-31tools: Set umask before calling mkdtemp()Samuel Cabrero1-1/+8
When adcli is called from sssd it inherits the sssd's umask (0177) and as the default sssd.service file drops CAP_DAC_OVERRIDE, the result is that the directory is created with mode 0600 and the krb5.conf snippet can't be created even running as root. Signed-off-by: Samuel Cabrero <scabrero@suse.de>
2022-05-09Avoid undefined behaviour in short option parsingRobert Schneider1-0/+5
The undefined behaviour lead to clashes / misinterpretation of short options on some systems. Note that glibc for example uses the argument of isalnum etc. as an index into a lookup table.
2021-06-14Add delattr optionSumit Bose1-0/+9
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1690920
2021-06-14Add setattr optionSumit Bose1-0/+10
With the new option common LDAP attributes can be set. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1690920
2021-06-14entry: add passwd-user sub-commandSumit Bose3-0/+104
The new command allows to set or reset a user password with the help of an account privileged to set the password. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1952828
2021-06-02Add dont-expire-password optionSumit Bose1-0/+12
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1769644
2021-04-06configure: update some macros for autoconf-2.71Sumit Bose1-1/+1
2021-03-29build: add --with-vendor-error-message configure optionSumit Bose1-0/+6
With the new configure option --with-vendor-error-message a packager or a distribution can add a message if adcli returns with an error. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1889386
2021-02-20Add account-disable optionSumit Bose1-0/+13
A new option was added to 'adcli update' toggle the ACCOUNTDISABLE flag of AD's userAccountControl LDAP attribute to disable or enable the given host account. 'adcli join' will automatically enable the host account. Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/21
2020-11-12enroll: make adcli_enroll_add_keytab_for_service_account publicSumit Bose1-0/+6
Determine keytab name more early to catch errors more early. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1854112
2020-11-12computer: add create-msa sub-commandSumit Bose3-0/+130
Add new sub-command to create a managed service account in AD. This can be used if LDAP access to AD is needed but the host is already joined to a different domain. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1854112
2020-10-14tools: add missing use-ldaps option to update and testjoinSumit Bose1-0/+2
When adding the use-ldaps option the update and testjoin sub-commands were forgotten. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1883467
2020-06-15tools: fix typo in show-password help outputSumit Bose1-1/+1
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1791611
2020-06-05tools: disable SSSD's locator pluginSumit Bose1-0/+2
MIT's libkrb5 checks available locator plugins first before checking the config file. This might cause issues when the locator plugin returns a different DC than the one used for the LDAP connection if some data must be replicated. This patch sets the SSSD_KRB5_LOCATOR_DISABLE environment variable to 'true' to disable SSSD's locator plugin for adcli. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1762633
2020-06-05delete: do not exit if keytab cannot be readSumit Bose1-2/+0
Reading the keytab is not required when deleting a host object in AD. It is only needed in the case where the host was added with a manual set NetBIOS name (--computer-name option) which does not match the short hostname and no computer name was given at the delete-computer command line. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1840752
2019-12-19add option use-ldapsSumit Bose2-0/+21
In general using the LDAP port with GSS-SPNEGO should satifiy all requirements an AD DC should have for authentication on an encrypted LDAP connection. But if e.g. the LDAP port is blocked by a firewall using the LDAPS port with TLS encryption might be an alternative. For this use case the --use-ldaps option is added. Related to https://bugzilla.redhat.com/show_bug.cgi?id=1762420
2019-11-28add description option to join and updateSumit Bose1-0/+7
This new option allows to set the description LDAP attribute for the AD computer object. Related to https://bugzilla.redhat.com/show_bug.cgi?id=1737342
2019-11-28tools: add show-computer commandSumit Bose3-0/+98
The show-computer command prints the LDAP attributes of the related computer object from AD. Related to https://bugzilla.redhat.com/show_bug.cgi?id=1737342
2019-04-15tools: computer - remove errx from parse_optionSumit Bose1-48/+80
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1588596
2019-04-15tools: entry - remove errx from parse_optionSumit Bose1-23/+47
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1588596
2019-04-15tools: remove errx from setup_krb5_conf_directorySumit Bose1-14/+24
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1588596
2019-04-15tools: remove errx from adcli_read_password_funcSumit Bose1-3/+8
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1588596
2019-04-15tools: remove errx from info commandsSumit Bose1-7/+14
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1588596
2019-04-15tools: remove errx from user and group commandsSumit Bose1-78/+154
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1588596
2019-04-15tools: remove errx from computer commandsSumit Bose1-59/+107
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1588596
2019-04-15Revert "tools: properly release internal data on error"Sumit Bose1-36/+3
This reverts commit 41fdcb1af885d99a91e27406e9343b322f67756a.
2019-03-22Implement 'adcli testjoin'Sumit Bose3-0/+77
By calling adcli testjoin it will be checked if the host credentials stored in the keytab are still valid. Related to https://bugzilla.redhat.com/show_bug.cgi?id=1622583
2019-03-22create-user: try to find NIS domain if neededSumit Bose1-0/+16
Related to https://gitlab.freedesktop.org/realmd/adcli/issues/2
2019-03-22create-user: add nis-domain optionSumit Bose1-0/+6
Related to https://gitlab.freedesktop.org/realmd/adcli/issues/2
2019-03-15tools: properly release internal data on errorSumit Bose1-3/+36
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1588596
2019-01-14samba-data-tool needs to take an argumentGeorge Hartzell1-2/+2
See https://gitlab.freedesktop.org/realmd/adcli/issues/15
2018-10-22Add add-service-principal and remove-service-principal optionsSumit Bose1-0/+13
Currently it is only possible to specific a service name for service principals but not to set the full service principal. This is e.g. needed if there is a service running on a host which should be reachable by a different DNS name as well. With this patch service principal can be added and removed by specifying the full name. Related to https://bugzilla.redhat.com/show_bug.cgi?id=1547014
2018-10-22Add trusted-for-delegation optionSumit Bose1-0/+12
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1538730
2018-10-22make Samba data tool configurableSumit Bose1-0/+16
Allow to specify an alternative path to Samba's net utility at configure time and at run time. https://bugs.freedesktop.org/show_bug.cgi?id=100118 https://gitlab.freedesktop.org/realmd/adcli/issues/6 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
2018-10-22tools: add option --add-samba-dataSumit Bose1-0/+12
https://bugs.freedesktop.org/show_bug.cgi?id=100118 https://gitlab.freedesktop.org/realmd/adcli/issues/6 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
2018-10-22library: add adcli_conn_get_domain_sid()Sumit Bose1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=100118 https://gitlab.freedesktop.org/realmd/adcli/issues/6 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
2018-10-22correct spelling of 'adcli_tool_computer_delete' descriptionStriker Leggette1-1/+1
2016-07-26delete: use keytab data to determine realm and NetBIOS nameSumit Bose1-0/+6
https://bugzilla.redhat.com/show_bug.cgi?id=1359773