| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | import org.opends.server.types.InitializationException; |
| | | import org.opends.server.types.ResultCode; |
| | | |
| | | import static org.opends.server.loggers.Debug.*; |
| | | import static org.opends.server.messages.ExtensionsMessages.*; |
| | | import static org.opends.server.messages.MessageHandler.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | |
| | | public class WhoAmIExtendedOperation |
| | | extends ExtendedOperationHandler |
| | | { |
| | | /** |
| | | * The fully-qualified name of this class for debugging purposes. |
| | | */ |
| | | private static final String CLASS_NAME = |
| | | "org.opends.server.extensions.WhoAmIExtendedOperation"; |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | super(); |
| | | |
| | | assert debugConstructor(CLASS_NAME); |
| | | } |
| | | |
| | | |
| | |
| | | public void initializeExtendedOperationHandler(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | assert debugEnter(CLASS_NAME, "initializeExtendedOperationHandler", |
| | | String.valueOf(configEntry)); |
| | | |
| | | // No special configuration is required. |
| | | |
| | |
| | | */ |
| | | public void finalizeExtendedOperationHandler() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "finalizeExtendedOperationHandler"); |
| | | |
| | | DirectoryServer.deregisterSupportedExtension(OID_WHO_AM_I_REQUEST); |
| | | } |
| | |
| | | */ |
| | | public void processExtendedOperation(ExtendedOperation operation) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "processExtendedOperation", |
| | | String.valueOf(operation)); |
| | | |
| | | |
| | | // Get the client connection and determine the DN of the user associated |
| | |
| | | return; |
| | | } |
| | | |
| | | |
| | | // Get the auth info from the client connection. |
| | | AuthenticationInfo authInfo = clientConnection.getAuthenticationInfo(); |
| | | if ((authInfo == null) || (authInfo.getAuthenticationDN() == null)) |
| | |
| | | return; |
| | | } |
| | | |
| | | |
| | | // Get the DN of the authenticated user and put that in the response. |
| | | // FIXME -- Do we need to support the use of an authorization ID that is |
| | | // different from the authentication ID? |