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

openldap2_5 support for SLES #238

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

openldap2_5 support for SLES #238

wants to merge 2 commits into from

Conversation

jirib
Copy link

@jirib jirib commented Jan 6, 2025

No description provided.

bin/supportconfig Show resolved Hide resolved
jirib added 2 commits January 6, 2025 21:18
this would generate something like this;

``` shell
$ tar xOJf /var/log/scc_jb155sapqe01_250106_1959.txz scc_jb155sapqe01_250106_1959/ldap.txt | \
  sed -n '/openldap2_5/p; /slapd.service/p; /^# \/etc\/openldap\/ldap.conf$/,/^#==/p'# /etc/openldap/ldap.conf
URI ldap://jbw2k22qe01.example.com
BASE dc=example,dc=com
REFERRALS OFF


#==[ Command ]======================================#
# rpm -V openldap2_5-2.5.17+50-150500.11.3.1.x86_64
# /bin/systemctl status slapd.service
○ slapd.service - OpenLDAP Server Daemon
     Loaded: loaded (/usr/lib/systemd/system/slapd.service; disabled; preset: disabled)
```
Copy link
Collaborator

@Thr3d Thr3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I like the idea behind it, the change to rpm_verify() is problematic. By adding the -a you've nearly doubled the time it takes for supportconfig to run on a fresh install.
Please remove the changes to rpm_verify() and call rpm_verify for each package.
sssd_info() for example does this:

        if rpm_verify $OF sssd; then
                rpm_verify $OF sssd-tool
                rpm_verify $OF python-sssd-config

If you open a PR for the rpm_verify() change we can revist that. Doesn't look like that will be as simple as just dropping the -a

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.

2 participants