| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Some options do not appear to be present in Pylint 2.16.2 but this used
to work in version 1.9.4 (this config works with both versions).
|
|
|
|
|
|
|
|
|
|
| |
Change the configuration of the password policy in the test suite to not
set pwdMustChange to TRUE. Between OpenLDAP 2.4 and 2.5 the behaviour of
the LDAP server was changed to force a password change whenever the
administrator changed a user's password. This change ensures that the
old behaviour is maintained.
See https://bugs.openldap.org/show_bug.cgi?id=7084
|
|
|
|
|
| |
Apparently newer versions of pylint parse the evaluation option
differently.
|
| |
|
|
|
|
|
| |
This makes it more complicated to run the tests on an environment where
a local user arthur exists.
|
|
|
|
|
| |
- Change database backend to LMDB
- Load external ppolicy schema conditionally
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows putting `base ""` in nslcd.conf to specify an empty search
base.
Note that the LDAP server needs to support this. With slapd this
requires setting up an olcDefaultSearchBase attribute in the
olcFrontendConfig object under cn=config or have the database have an
empty suffix.
Closes https://github.com/arthurdejong/nss-pam-ldapd/issues/50
|
|
|
|
|
| |
This requires the attribute name is contained within a ${var-name}
expression.
|
|
|
|
|
| |
This includes a few tweaks to the test scripts to make debugging easier
and to avoid issues on Github action runners.
|
|
|
|
| |
Fixes 644bc62
|
|
|
|
|
| |
Some test systems have more local users and some systems prefer IPv4
addresses over IPv6 addresses.
|
| |
|
|
|
|
|
| |
Apparently some environments provide certain Python executables which
are not working Python interpreters.
|
|
|
|
|
|
| |
This also adds a flake8 test that checks code style. Note that this test
is not run by default because it requires network access to create the
virtualenv with the test software.
|
|
|
|
|
|
|
|
|
| |
This ensures that both pynslcd and the command-line utilities work with
Python3 as interpreter and runs some tests with all installed Python
interpreters.
This drops support for Python 2.6 and extends 5a84be2 to perform more
testing with Python 3.
|
|
|
|
|
|
| |
This ensures that the integration tests can be successfully run. It
configures a slapd instance with the test database, configures the
system to use LDAP authentication and runs the tests.
|
|
|
|
|
| |
This sets PYTHONPATH so that both the source and build directories are
used to find constants.py.
|
| |
|
|
|
|
|
|
|
| |
This changes the getent and getent.ldap tests to ignore password hashes
that may be present in shadow lookups in a consistent manner.
This also adds minor compatibility improvements.
|
|
|
|
|
|
|
|
|
| |
This fixes an issue with the export statement in POSIX shell scripts,
ensures that the commands in the output match those in the script,
strips password hashes for shadow lookups (for systems without PAM where
these are exposed) and only runs the tests if we enabled the utils.
Fixes 246a1f3.
|
|
|
|
|
|
| |
This removes test_pamcmds.log that is generated by test_pamcmds.expect
when running the test suite. This avoids an error in the distcheck
target.
|
|
|
|
|
|
|
|
|
|
| |
This ensures that Python can find both getent.py (from source directory)
and constants.py (from build directory) when running the tests from the
distcheck target.
This also makes the script more similar to test_nsscmds.sh.
Fixes 9c803d7.
|
| |
|
|
|
|
|
|
|
|
| |
This more or less duplicates the tests from test_nsscmds.sh to
test_ldapcmds.sh with some modifications for the differences in output.
This also extends the test_nsscmds.sh tests to handle the case where
shadow lookups do not go through LDAP.
|
| |
|
|
|
|
|
|
| |
This fixes test_doctest.sh to also work when the build directory is
different from the source directory. This is needed because constants.py
is only available in the build directory.
|
| |
|
| |
|
|
|
|
|
|
|
| |
This adds a few test hosts that have IPv6 addresses. This ensures that
we have an IPv6-only host and hosts which have address values in
different order in the ipHostNumber attribute (although attribute order
is probably not guaranteed).
|
| |
|
|
|
|
|
|
|
| |
This updates the test framework to support --with-module-name, ensures
that exports.map is rebuilt when configure is re-ran, fixes parsing of
nsswitch.conf (to determine what to return for passwd lookups) and fixes
the check for _nss_ldap_version.
|
|
|
|
|
|
| |
This uses IP addresses from the RFC 5737 TEST-NET-1 range that is meant
for use in documentation. This avoids issues with running the tests
environments that also use the 10.0.0.0/8 range.
|
| |
|
|
|
|
|
|
| |
This command can be used to perform a lookup using getgrouplist() to
present a list of returned numeric group ids. This can be used to avoid
the additional lookups that are done with the id and groups commands.
|
| |
|
|
|
|
|
| |
This fixes issues with running the tests when using a separate build
directory (fixes ef0eddaa).
|
|
|
|
|
|
| |
This ensures that configuration file is not world readable when the
tests are run. This avoids test failure for the use of the rootpwmodpw
option.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some pieces of code did not properly free() the value returned by
set_pop().
The leak in group code was related to the introduction of nested group
functionality in 41ba574 (merged in 3daa68d) so should only be present
in releases 0.9.0 forward.
The leak in the netgroup code only ended up in the Solaris version of
the NSS module and was introduced in 4ea9ad1 (merged in 5c8779d). This
leak is present in all releases from 0.8.0 forward.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This mostly tries to reduce the influences of the test environment
(local users and groups) on the tests. This uses another username
(vsefcovic) in the PAM tests instead of the user arthur to avoid clashes
with existing users.
The PAM tests are skipped if passwd claims that it cannot modify LDAP
passwords (for FreeBSD).
|
| |
|
|
|
|
|
|
|
|
|
| |
This supports old ldapsearch commands that don't support the -x and -H
options and ldapsearch commands that don't exit with a failure code if
nothing is found.
This also switches the test_myldap test to use the testenv check for the
LDAP server.
|
|
|
|
|
|
|
| |
This extends test_pamcmds to handle other pam/su/passwd errors and
responses (as seen on CentOS 5). Also switch to stronger password when
changing the test user's password to avoid problems with password
strength checks.
|
|
|
|
|
| |
This changes the in_testenv.sh script into testenv.sh which has more
checks and a few functions to configure the test environment.
|
| |
|
|
|
|
|
| |
This refreshes the documentation of the tests, especially the test
environment.
|
|
|
|
|
|
| |
The setup_slapd.sh script can be used to set up and start a slapd
instance in a single (temporary) directory. The slapd instance is
configured and loaded with test data for use in the test environment.
|
|
|
|
|
|
|
|
|
| |
This fixes an issue with the sortgroup function which failed to handle a
group line with only two colons correctly. Such group entries have been
seen in the wild on FreeBSD.
Also, comment lines in group files are now ignored (also seen on
FreeBSD).
|
|
|
|
|
|
| |
This removes a few legacy workarounds and fixes for older versions of
automake. This also removes adding specific DEBUG flags for tests since
subdir objects are handled differently now.
|