undo some changes mqwebauth
This commit is contained in:
@@ -22,10 +22,12 @@ import (
|
|||||||
"os/user"
|
"os/user"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/ibm-messaging/mq-container/internal/command"
|
"github.com/ibm-messaging/mq-container/internal/command"
|
||||||
"github.com/ibm-messaging/mq-container/internal/copy"
|
"github.com/ibm-messaging/mq-container/internal/copy"
|
||||||
|
"github.com/ibm-messaging/mq-container/internal/mqtemplate"
|
||||||
"github.com/ibm-messaging/mq-container/internal/tls"
|
"github.com/ibm-messaging/mq-container/internal/tls"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -108,6 +110,15 @@ func configureSSO(p12TrustStore tls.KeyStoreData) (string, error) {
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Process SSO template for generating file mqwebuser.xml
|
||||||
|
/* The variable adminUsers is expected to have a empty string as we are no longer
|
||||||
|
passing any value in the charts */
|
||||||
|
adminUsers := strings.Split(os.Getenv("MQ_WEB_ADMIN_USERS"), "\n")
|
||||||
|
err = mqtemplate.ProcessTemplateFile(mqwebDir+"/mqwebuser.xml.tpl", mqwebDir+"/mqwebuser.xml", map[string][]string{"AdminUser": adminUsers}, log)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
|
||||||
// Configure SSO TLS
|
// Configure SSO TLS
|
||||||
return tls.ConfigureWebKeystore(p12TrustStore)
|
return tls.ConfigureWebKeystore(p12TrustStore)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user