-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to configure LDAP kerberos through the module (#269)
- Loading branch information
1 parent
febd192
commit 1efcc5d
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,6 +108,18 @@ | |
expect(resource[:use_kerberos_for_password_authentication]).to eq(:true) | ||
end | ||
|
||
it 'allows kerberos configuration' do | ||
config[:auth_type] = 'simple' | ||
config[:allow_kerberos_authentication] = true | ||
config[:kerberos_realm] = 'BAR.COM' | ||
config[:key_tab] = '/etc/krb5.keytab' | ||
config[:server_principal] = 'host/[email protected]' | ||
expect(resource[:allow_kerberos_authentication]).to eq(:true) | ||
expect(resource[:kerberos_realm]).to eq('BAR.COM') | ||
expect(resource[:key_tab]).to eq('/etc/krb5.keytab') | ||
expect(resource[:server_principal]).to eq('host/[email protected]') | ||
end | ||
|
||
it 'does not allow invalid bind_credential' do | ||
config[:auth_type] = 'simple' | ||
config[:use_kerberos_for_password_authentication] = 'foo' | ||
|