UserIdRepo.java revision 4709b991352c6de69ba02928ed6cbf373ca62ed5
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 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: UserIdRepo.java,v 1.21 2009/12/23 00:22:34 goodearth Exp $
*
*/
/*
* Portions Copyrighted [2011] [ForgeRock AS]
*/
/**
* This class does Directory Server related tasks for
* OpenSSO deployed as single web-application.
*/
class UserIdRepo {
private static final String umSunDSForAM;
private static final String umSunDSGeneric;
static {
}
private UserIdRepo() {
}
public static UserIdRepo getInstance() {
return instance;
}
void configure(
) throws Exception {
}
configName = "OpenDJ";
configName = "Active Directory";
configName = "Active Directory with Domain Name";
configName = "Active Directory Application Mode";
configName = "Tivoli Directory Server";
}
}
private void addSubConfig(
} else {
}
}
}
try {
} finally {
if (serviceStream != null) {
}
}
}
throws SMSException, SSOException {
}
values);
}
return cfg;
}
}
}
}
}
try {
"(objectclass=*)", null, false );
if (res.hasMoreElements()) {
if (index != -1) {
}
}
}
} finally {
}
return null;
}
private void loadSchema(
) throws Exception {
try {
f.delete();
}
} finally {
}
}
private List writeSchemaFiles(
) throws Exception {
while (st.hasMoreTokens()) {
char[] cbuf = new char[1024];
int len;
}
try {
: file;
"@DB_NAME@", dbName);
"@userStoreRootSuffix@", suffix);
}
if (adamInstanceGUID != null) {
"@INSTANCE_GUID@", adamInstanceGUID);
}
}
} finally {
try {
//No handling requried
}
}
try {
//No handling requried
}
}
}
}
return files;
}
throws IOException {
try {
}
} finally {
}
}
return content;
}
throws LDAPException {
ld.disconnect();
}
}
throws Exception {
new LDAPConnection();
return ld;
}
throws LDAPException {
}
}