Skip to content

Commit 5d392c0

Browse files
georgeajitgeorgeajit
authored andcommitted
No Task - No external sec setting.
1 parent f420776 commit 5d392c0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

marklogic-client-api-functionaltests/src/test/java/com/marklogic/client/functionaltest/TestDatabaseClientKerberosFromFile.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public static void setUpBeforeClass() throws Exception {
164164
// Create the External Security setting.
165165
createExternalSecurityForKerberos(appServerName, extSecurityName);
166166
// Set authentication to kerberos-ticket, internal security to true and external securities to be none on App Server.
167-
setAuthToKerberosAndInternalSecurityToTrue(appServerName, "none");
167+
setAuthToKerberosAndInternalSecurityToTrue(appServerName);
168168
createUserRolesWithPrevilages("test-evalKer", "xdbc:eval", "xdbc:eval-in", "xdmp:eval-in", "any-uri", "xdbc:invoke");
169169
//createRESTKerberosUser("builder", "Welcome123", kdcPrincipalUser, "rest-reader", "rest-writer", "rest-admin", "rest-extension-user", "test-evalKer");
170170

@@ -254,14 +254,13 @@ public static void createAutomaticGeoIndex() throws KeyManagementException, NoSu
254254

255255
// Method sets REST server's "authentication" to "Kerberos-ticket" and "internal security" to true
256256
// external security to be "none"
257-
public static void setAuthToKerberosAndInternalSecurityToTrue(String restServerName, String extSecurityrName)
257+
public static void setAuthToKerberosAndInternalSecurityToTrue(String restServerName)
258258
throws Exception {
259259
DefaultHttpClient client = new DefaultHttpClient();
260260

261261
client.getCredentialsProvider().setCredentials(new AuthScope(appServerHostName, getAdminPort()),
262262
new UsernamePasswordCredentials("admin", "admin"));
263-
String body = "{\"group-name\": \"Default\", \"authentication\":\"kerberos-ticket\",\"internal-security\": \"true\",\"external-security\": \""
264-
+ extSecurityrName + "\"}";
263+
String body = "{\"group-name\": \"Default\", \"authentication\":\"kerberos-ticket\",\"internal-security\": \"true\"}";
265264

266265
HttpPut put = new HttpPut("http://" + appServerHostName + ":" + getAdminPort() + "/manage/v2/servers/" + restServerName
267266
+ "/properties?server-type=http");

0 commit comments

Comments
 (0)