Merge branch 'patch'

Conflicts:
	gradleScripts/distribution.gradle
This commit is contained in:
ghidra1 2019-04-25 17:32:19 -04:00
commit 1cae5552f6
23 changed files with 604 additions and 520 deletions

View file

@ -40,7 +40,7 @@ import ghidra.framework.store.local.LocalFileSystem;
import ghidra.framework.store.local.LocalFolderItem;
import ghidra.net.*;
import ghidra.program.model.listing.Program;
import ghidra.server.UserAdmin;
import ghidra.server.ServerAdmin;
import ghidra.server.UserManager;
import ghidra.test.ToyProgramBuilder;
import ghidra.util.*;
@ -942,11 +942,12 @@ public class ServerTestUtil {
* @throws Exception
*/
public static void addPKIUser(File serverRoot, String userName, String dn) throws Exception {
ServerAdmin serverAdmin = new ServerAdmin();
if (dn != null) {
UserAdmin.main(new String[] { serverRoot.getAbsolutePath(), "-dn", userName, dn });
serverAdmin.execute(new String[] { serverRoot.getAbsolutePath(), "-dn", userName, dn });
}
else {
UserAdmin.main(new String[] { serverRoot.getAbsolutePath(), "-add", userName });
serverAdmin.execute(new String[] { serverRoot.getAbsolutePath(), "-add", userName });
}
}