AddAMSDKIdRepoPlugin.java revision 4709b991352c6de69ba02928ed6cbf373ca62ed5
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: AddAMSDKIdRepoPlugin.java,v 1.9 2009/12/11 06:50:36 hengming Exp $
*
*/
/**
* This command creates identity.
*/
public class AddAMSDKIdRepoPlugin extends AuthenticatedCommand {
private List directoryServers;
getStringOptionValue("bind-password-file"), true);
getStringOptionValue("dsame-password-file"), true);
getStringOptionValue("puser-password-file"), true);
}
}
}
/**
* Services a Commandline Request.
*
* @param rc Request Context.
* @throws CLIException if the request cannot serviced.
*/
// @SuppressWarnings("empty-statement")
throws CLIException {
super.handleRequest(rc);
ldapLogin();
try {
"ATTEMPT_ADD_AMSDK_PLUGIN", params);
loadLDIFs();
// Load DAI service, if not already loaded
"datastore-add-amsdk-idrepo-plugin-succeeded"));
"SUCCEED_ADD_AMSDK_PLUGIN", params);
} catch (Exception e) {
"FAILED_ADD_AMSDK_PLUGIN", p);
"datastore-add-amsdk-idrepo-plugin-failed") + ": " +
e.getMessage());
}
}
private String loadDAIService()
// Load DAI service, if not already loaded
// Tag swap: @USER_NAMING_ATTR & @ORG_NAMING_ATTR
}
return xmlData;
}
// Tag swap: @NORMALIZED_ORGBASED
(InputStream) new ByteArrayInputStream(
}
}
// Load delegation policies for Top-level Admin Role and others
try {
// Tag swap: @SM_CONFIG_ROOT_SUFFIX@ & @SM_ROOT_SUFFIX_HAT@
// Tag swap: @ROOT_SUFFIX@
(InputStream) new ByteArrayInputStream(
"/sunamhiddenrealmdelegationservicepermissions");
} catch (Exception e) {
"datastore-add-amsdk-idrepo-plugin-policies-failed") +
": " + e.getMessage());
}
}
private void updateServerConfigXML()
throws Exception {
// Add directory servers
if ((directoryServers != null) &&
!directoryServers.isEmpty()) {
int i = 1;
// Parse the dshost
}
}
// Set the base dn
// Set admin & proxy user's password
}
}
// Saver serverconfig.xml
// Enable psearch for um, aci and sm
}
}
private void updateDSAMEUserPassword() throws Exception {
}
throws CLIException {
}
try {
} finally {
if (serviceStream != null) {
}
}
}
private void loadLDIFs()
throws Exception {
try {
}
} finally {
try {
ld.disconnect();
}
} catch (LDAPException e) {
//ingore
}
}
}
}
throws Exception {
try {
} finally {
}
}
}
return ldifs;
}
) throws Exception {
return orig;
}
throws Exception {
new LDAPConnection();
return ld;
}
class DSEntry {
boolean ssl;
int port;
if (ssl) {
} else {
}
port = 389;
if (portIndex != -1) {
}
}
}
}