-
Notifications
You must be signed in to change notification settings - Fork 708
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
Update sssd ldap related rules to check /etc/sssd/conf.d/*.conf files #11474
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# packages = /usr/lib/systemd/system/sssd.service | ||
|
||
. $SHARED/setup_config_files.sh | ||
setup_correct_sssd_config | ||
|
||
systemctl enable sssd | ||
|
||
mkdir -p /etc/sssd/conf.d/ | ||
|
||
cat > "/etc/sssd/conf.d/unused.conf" << EOF | ||
[domain/default] | ||
|
||
ldap_tls_cacertdir = /tmp/etc/openldap/cacerts | ||
EOF |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# packages = /usr/lib/systemd/system/sssd.service | ||
|
||
. $SHARED/setup_config_files.sh | ||
setup_correct_sssd_config | ||
|
||
systemctl enable sssd | ||
|
||
|
||
sed -i '/ldap_tls_cacertdir/d' /etc/sssd/sssd.conf | ||
|
||
mkdir -p /etc/sssd/conf.d/ | ||
|
||
cat > "/etc/sssd/conf.d/unused.conf" << EOF | ||
[domain/default] | ||
|
||
ldap_id_use_start_tls = True | ||
id_provider = ldap | ||
autofs_provider = ldap | ||
auth_provider = krb5 | ||
chpass_provider = krb5 | ||
ldap_search_base = dc=com | ||
ldap_tls_cacertdir = /etc/openldap/cacerts | ||
cache_credentials = True | ||
krb5_store_password_if_offline = True | ||
ldap_tls_reqcert = demand | ||
EOF |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# packages = sssd-ldap | ||
|
||
. $SHARED/setup_config_files.sh | ||
setup_correct_sssd_config | ||
|
||
sed -i '/ldap_tls_reqcert/d' /etc/sssd/sssd.conf | ||
|
||
mkdir -p /etc/sssd/conf.d/ | ||
|
||
cat > "/etc/sssd/conf.d/unused.conf" << EOF | ||
[domain/default] | ||
|
||
ldap_id_use_start_tls = True | ||
id_provider = ldap | ||
autofs_provider = ldap | ||
auth_provider = krb5 | ||
chpass_provider = krb5 | ||
ldap_search_base = dc=com | ||
ldap_tls_cacertdir = /etc/openldap/cacerts | ||
cache_credentials = True | ||
krb5_store_password_if_offline = True | ||
ldap_tls_reqcert = demand | ||
EOF |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,13 @@ | ||||||||
#!/bin/bash | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
# packages = sssd-ldap | ||||||||
|
||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this test scenario fails for me, the rule passes:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I set the wrong config in the test hahaha |
||||||||
. $SHARED/setup_config_files.sh | ||||||||
setup_correct_sssd_config | ||||||||
|
||||||||
mkdir -p /etc/sssd/conf.d/ | ||||||||
|
||||||||
cat > "/etc/sssd/conf.d/unused.conf" << EOF | ||||||||
[domain/default] | ||||||||
|
||||||||
ldap_tls_reqcert = never | ||||||||
EOF |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# packages = /usr/lib/systemd/system/sssd.service | ||
|
||
. $SHARED/setup_config_files.sh | ||
setup_correct_sssd_config | ||
|
||
systemctl enable sssd | ||
|
||
mkdir -p /etc/sssd/conf.d/ | ||
|
||
sed -i '/ldap_id_use_start_tls/d' /etc/sssd/sssd.conf | ||
|
||
cat > "/etc/sssd/conf.d/unused.conf" << EOF | ||
[domain/default] | ||
|
||
ldap_id_use_start_tls = True | ||
id_provider = ldap | ||
autofs_provider = ldap | ||
auth_provider = krb5 | ||
chpass_provider = krb5 | ||
ldap_search_base = dc=com | ||
ldap_tls_cacertdir = /etc/openldap/cacerts | ||
cache_credentials = True | ||
krb5_store_password_if_offline = True | ||
ldap_tls_reqcert = demand | ||
EOF | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# packages = /usr/lib/systemd/system/sssd.service | ||
|
||
. $SHARED/setup_config_files.sh | ||
setup_correct_sssd_config | ||
|
||
systemctl enable sssd | ||
|
||
mkdir -p /etc/sssd/conf.d/ | ||
|
||
cat > "/etc/sssd/conf.d/unused.conf" << EOF | ||
[domain/default] | ||
|
||
ldap_id_use_start_tls = False | ||
EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.