| Age | Commit message (Collapse) | Author | Files | Lines |
|
- Add LDAPS join tests covering:
* Basic LDAPS join/leave with port 389 blocked
* Lookup of computer properties after LDAPS join
* Computer account removal over LDAPS
- Move first-use check to topology_controllers using fs API
- Add ruff configuration to pyproject.toml
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
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>
|
|
Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/work_items/47
|
|
when joining AD domain with --host-keytab parameter.
Test validates:
Join succeeds with custom keytab path
Keytab file is created at specified location
Signed-off-by: shridhargadekar <shridhar.always@gmail.com>
|
|
1. test_adcli_join_with_service_principals
- Tests setting service principals (HTTP and CIFS) on computer account during domain join
2. test_adcli_join_kerberos_delegation_enabled
- Tests kerberos delegation enabled functionality (positive case)
Signed-off-by: shridhargadekar <shridhar.always@gmail.com>
|
|
ci: Add GitLab CI/CD pipeline for adcli
Build Stage:
- build:fedora - Build on Fedora latest
- build:centos10 - Build on CentOS Stream 10
- Runs autogen.sh, make, and make check
- Saves build artifacts
Test Stage:
- lint:python - Python code quality (ruff for linting/formatting)
- lint:shellcheck - Shell script linting
- Auto-discovers Python files in tests/
Configuration:
- tests/pyproject.toml: Ruff configuration (replaces black/isort/flake8)
- Line length: 119 characters
- Python linting fixes applied
Runs on: merge requests, master branch commits, and tags
Improvements to the CI build process:
+. Use dnf builddep for automatic dependency installation
- Replaces manual dependency list
- Auto-syncs with spec file BuildRequires
- Cleaner and more maintainable
+. Force fresh Fedora latest images
- Add pull_policy: always to build:fedora
- Ensures CI always tests against current Fedora release
- Avoids stale cached images
+. Enable offline join support in CI builds
- Remove --disable-offline-join-support flag
- dnf builddep now installs libnetapi-devel automatically
- CI should test full feature set, not reduced build
|
|
Testcases:
1. Get useful error message when adcli command fails
2. Renew keytab after host has joined
3. Join pre-staged computer with deleted-user
ou-location does not matter
Reviewed-by: Sumit Bose <sbose@redhat.com>
|
|
Test the different variations of hostname of a client
to the domain
|
|
From glibc 2.43 release notes:
* For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr,
strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return
pointers into their input arrays now have definitions as macros that
return a pointer to a const-qualified type when the input argument is
a pointer to a const-qualified type.
Signed-off-by: Samuel Cabrero <scabrero@suse.com>
|
|
Test case for adding details at join:
1. os-verion
2. os-serice-pack
3. os-name
4. description
Test case for set machine account password expiry
|
|
Use the latest version of the license text from
https://ftp.gnu.org/gnu/Licenses/lgpl-2.1.txt.
Please note, the license is not changed only the text is refreshed.
|
|
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
|
|
|
|
|
|
Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/44
|
|
Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/44
|
|
|
|
|
|
Combination of testcases related to adcli
|
|
|
|
There are cases where libkrb5 returns an error during a password change
operation but the password change was successful on the AD side. To make
sure the password change really failed adcli tries to get a TGT with the
new password. If this fails it is assumed that the password change
really failed. If it is successful the original error is ignored and it
is assumed that the password change was successful.
Resolves: https://issues.redhat.com/browse/RHEL-44580
|
|
|
|
Currently after creating a managed service account (MSA) adcli could
only refresh the related password. With this patch it is possible to add
Kerberos service principals names (SPNs) as well.
Resolves: https://issues.redhat.com/browse/RHEL-73686
|
|
Currently new SPNs from AD are only added to the keytab if the machine
account password must be updates as well or if requested explicitly on
the command line. With this patch SPNs added on AD are added to the
keytab automatically during the update operation.
Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/33
|
|
In case it was not possible to connect to any AD DC there might be an
uninitialized variable.
Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/32
|
|
Test case to validate whether the join and machine/client
account password is still valid of AD-server
Reviewed-by: Sumit Bose <sbose@redhat.com>
|
|
The default system timeout for connect is typically in the order of 2 or
3 minutes which is quite high for modern networks. Especially if
multiple addresses should be checked this long timeout will not help.
With this patch the timeout is set to 10s.
Resolves: https://gitlab.freedesktop.org/realmd/adcli/-/issues/32
|
|
Fix memory leaks in _adcli_call_external_program() and coding-style
issues.
|
|
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
|
|
Resolves: https://issues.redhat.com/browse/RHEL-56353
|
|
If a computer object already exists and has the USE_DES_KEY_ONLY flag
set in the userAccountControl attribute this attribute will be removed.
DES is deprecated for encryption since quite some time and many systems
do not support it anymore.
Resolves: https://issues.redhat.com/browse/RHEL-56353
|
|
The AD sAMAccountName LDAP attribute has some restrictions about the
allowed characters. With this patch adcli makes sure that only allowed
characters will be used in user and group names.
Resolves: https://issues.redhat.com/browse/RHEL-5050
|
|
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
|
|
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
|
|
Currently the realm from the first entry in the keytab was used. This
might fail if the keytab has entries from other realms as well. With
this patch adcli will first try to find a HOST$ entry in the keytab and
take its realm because this will most probably be the principal used to
authenticate against the AD DC of realm the client is joined to. If no
realm can be found this way the realm of the first entry is still used
as a fallback.
|
|
Fundamental testcases to test fundamental methods of adcli
Testcases added for:
1. adcli list the domain
2. adcli join the client to domain
3. adcli delete the computer
4. adcli test the join status
Reviewed-by: Scott Poore <spoore@redhat.com>
Reviewed-by: Sumit Bose <sbose@redhat.com>
|
|
The krb5_get_error_message() call returns an error message in an
allocated string which must be freed. This makes it hard to simply use
krb5_get_error_message() in a printf() argument list.
adcli_krb5_get_error_message() used a static memory area to make the
usage more easy.
|
|
|
|
|
|
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
Otherwise error string from stdout won't be printed.
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
No need to test all possible addresses.
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|
|
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
|