|
@@ -13,20 +13,6 @@ import (
|
|
|
* properly.
|
|
* properly.
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
-const TEST_KRB5CONF = `
|
|
|
|
|
-[libdefaults]
|
|
|
|
|
-default_realm = EXAMPLE.COM
|
|
|
|
|
-
|
|
|
|
|
-[realms]
|
|
|
|
|
-EXAMPLE.COM = {
|
|
|
|
|
-kdc = kerberos.example.com
|
|
|
|
|
-admin_server = kerberos.example.com
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-[domain_realm]
|
|
|
|
|
-.example.com = EXAMPLE.COM
|
|
|
|
|
-example.com = EXAMPLE.COM
|
|
|
|
|
-`
|
|
|
|
|
|
|
|
|
|
func TestFaildToCreateKerberosConfig(t *testing.T) {
|
|
func TestFaildToCreateKerberosConfig(t *testing.T) {
|
|
|
expectedErr := errors.New("configuration file could not be opened: krb5.conf open krb5.conf: no such file or directory")
|
|
expectedErr := errors.New("configuration file could not be opened: krb5.conf open krb5.conf: no such file or directory")
|