UserIdRepo.java revision a82d04bc19fee9d5e34b41ccd7641da1f62ab634
/*
* 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-2015 ForgeRock AS.
*/
/**
* This class does Directory Server related tasks for
* OpenAM deployed as single web application.
*/
class UserIdRepo {
private static final String umSunDSForAM;
private static final String umSunDSGeneric;
private ConnectionFactory factory;
static {
}
private UserIdRepo() {
}
public static UserIdRepo getInstance() {
return instance;
}
synchronized 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;
}
}
}
}
}
"(objectclass=*)"));
if (index != -1) {
}
}
}
}
return null;
}
private void loadSchema(
) throws Exception {
f.delete();
}
}
}
) 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;
}
// All connections will use authentication.
}
return getConnectionFactory(getHost(userRepo), Integer.parseInt(getPort(userRepo)), options).getConnection();
}
private synchronized ConnectionFactory getConnectionFactory(String hostname, int port, Options options) {
public void shutdown() {
}
}
});
}
return factory;
}
}
}