Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7274.m #21

Closed
wants to merge 7 commits into from
Closed

7274.m #21

wants to merge 7 commits into from

Conversation

alanking
Copy link
Owner

No description provided.

This adds tests for iadmin set_grid_configuration to make sure that
various invalid inputs are being handled appropriately.
Adds a list of grid configuration namespaces and option names which are
not allowed to be modified via set_grid_configuration API. Any namespace
which has an option name of empty string means that the entire namespace
is protected.

This change also adds a check for a given namespace/option_name
modification attempt to return an appropriate error if it is not found.
This is to notify the administrator that the namespace/option_name they
attempted to update does not exist (whether this is due to a typo, an
update, or otherwise).
This change adds a new namespace to the R_GRID_CONFIGURATION table in
the database for pam_password. The configuration values which were set
in the server_config plugin_configuration/authentication/pam_password
stanza are now to be set here. These can be configured with the iadmin
set_pam_password_config subcommand and queried using iadmin
get_pam_password_config.
Authentication configurations in the database now use grid configurations
instead of server_config. These are stored in the database and so incur
an additional query whenever they are needed. As such, the auth configs
are static and have been given the ability to mark themselves as initialized
in order to avoid duplicating the queries.
Adds a function which randomly generates an alphanumeric character and concatenates
a string which is returned to the user. Unit tests included.
The randomly generated passwords used with PAM authentication are not guaranteed to
be of a certain size, including having any contents at all whatsoever. This is due to
the fact that the function used to randomly generate bytes for the string may generate
all characters which fall outside the acceptable range. Furthermore, the acceptable
range of characters does not include all alphanumeric characters, but only the set
[1-8B-Yb-y].

This change uses a new function which properly generates a string of alphanumeric
characters of the specified length. Due to restrictions in password length for native
authentication, the password cannot exceed MAX_PASSWORD_LEN - 8 in length.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant