|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.adapter.ResourceAdapterBase
com.waveset.adapter.GenericScriptResourceAdapter
com.waveset.adapter.UnixResourceAdapter
com.waveset.adapter.SVIDResourceAdapter
Resource adapter for a SVID (System V Interface Definition) OS. Supports a fixed set of user attributes, specified in the paramToFlagMap. They are: uid, group, dir, shell, comment, new_logname, inactive, expire, authorization, profile, role. Meanings can be found by looking at the usermod(1M) man page. The SVID usermod/useradd/userdel commands use flags (-u, -g, etc) to specify the user attributes. To make it easier for the administrator, these flags have been mapped in a hashmap paramToFlagMap. Added support for the extended passwd commands (min, max, warn, force expire) see man passwd These are in the extendedParamToFlagMap
Nested Class Summary | |
protected class |
SVIDResourceAdapter.AcctIter
AccountIterator implementation that can be built by construction from the output of "lsuser ALL". |
protected class |
SVIDResourceAdapter.BlockAcctIter
BlockAccountIterator implementation that can be built by construction from the output of "logins -xma". |
Nested classes inherited from class com.waveset.adapter.ResourceAdapterBase |
ResourceAdapterBase.SimpleAccountIterator |
Nested classes inherited from class com.waveset.adapter.ResourceAdapter |
ResourceAdapter.ActionResult, ResourceAdapter.Features, ResourceAdapter.ObjectType |
Field Summary | |
static java.lang.String |
AA_LAST_LOGIN_TIME
|
protected static java.util.Map |
allowedNISAttributes
|
static java.lang.String |
code_id
|
static java.lang.String |
DISPLAY_PASSWORD
|
static java.lang.String |
DISPLAY_USER
|
protected java.lang.String |
grpMutexFile
|
protected java.lang.String |
grpPidFile
|
static java.lang.String |
LOGIN_PASSWORD
|
static java.lang.String |
LOGIN_USER
|
protected static java.util.Map |
paramToFlagMap
|
static java.lang.String |
PASSWD_CLEAR
|
static java.lang.String |
PASSWD_FORCE_CHANGE
|
static java.lang.String |
PASSWD_LOCK
|
static java.lang.String |
PASSWD_MAX
|
static java.lang.String |
PASSWD_MIN
|
static java.lang.String |
PASSWD_WARN
|
protected java.lang.String |
pwdMutexFile
|
protected java.lang.String |
pwdPidFile
|
static java.lang.String |
RA_LOGIN_SHELL_PROMPT
|
static java.lang.String |
RA_MAKE_DIR
|
static java.lang.String |
RA_NISSHADOW
|
static java.lang.String |
RA_ROOT_PASSWORD
|
static java.lang.String |
RA_ROOT_SHELL_PROMPT
|
static java.lang.String |
RA_ROOT_USER
|
static java.lang.String |
RA_SKEL_DIR
|
static java.lang.String |
RESOURCE_LOGIN_MODULE
|
static java.lang.String |
RESOURCE_NAME
|
static java.lang.String |
RESOURCE_USER_FORM
|
static java.lang.String |
RESTYPE_DISPLAY_NAME
|
protected java.lang.String |
tmpGrpMutexFile
|
protected java.lang.String |
tmpPwdMutexFile
|
static java.lang.String |
USER_AUTHORIZATION
|
static java.lang.String |
USER_COMMENT
|
static java.lang.String |
USER_DIR
|
static java.lang.String |
USER_EXPIRE
|
static java.lang.String |
USER_GROUP
|
static java.lang.String |
USER_INACTIVE
|
static java.lang.String |
USER_NEW_LOGNAME
|
static java.lang.String |
USER_PROFILE
|
static java.lang.String |
USER_ROLE
|
static java.lang.String |
USER_SECONDARY_GROUP
|
static java.lang.String |
USER_SHELL
|
static java.lang.String |
USER_TIME_LAST_LOGIN
|
static java.lang.String |
USER_UID
|
Fields inherited from class com.waveset.adapter.GenericScriptResourceAdapter |
conn, RA_BLOCK_FETCH_TIMEOUT, RA_CONN_MAX, RA_CONN_TIMEOUT, RA_CONN_TYPE, RA_HOST, RA_LOGIN_PASSWORD, RA_LOGIN_USER, RA_PORT, RA_TERM |
Fields inherited from class com.waveset.adapter.ResourceAdapterBase |
_cache, _context, _excludedAccountsRule, _excludedAccountsRuleInited, _listAllObjectsAttrParse, _listAllObjectsAttrParseName, _listUserAttrParse, _listUserAttrParseName, _listUserGroupsAttrParse, _listUserGroupsAttrParseName, _resource, _thread, _trace, displayInfoCode, RA_BLOCKCOUNT, RA_LOGIN_ACTION, RA_LOGOFF_ACTION, RA_MULTI_VALUED_ATTRS, RA_TEST_MODE |
Constructor Summary | |
SVIDResourceAdapter()
No argument constructor. |
|
SVIDResourceAdapter(Resource res,
ObjectCache cache)
Constructor. |
Method Summary | |
protected java.lang.String |
addAttributeIfMapped(java.lang.String val,
WSUser user,
java.lang.String mapName)
Adds an attribute value to the user, assuming the map name has been mapped. |
protected void |
addLastLogin(java.lang.String lastResult,
WSUser user)
|
protected void |
addNISMake(java.lang.String target,
Script script)
|
protected void |
addNISPasswordUpdate(java.lang.String account,
java.lang.String password,
Script script)
|
protected void |
addNISShellUpdate(java.lang.String account,
java.lang.String shell,
Script script)
|
protected WSUser |
buildUser(java.lang.String loginsResult,
java.lang.String rolesResult,
java.lang.String profilesResult,
java.lang.String authsResult,
java.lang.String lastResult,
WSUser targetUser)
Constructs and returns the user based on the outputs of the SVID commands logins, roles, profiles, and auths. |
protected WSUser |
buildUser(java.lang.String loginsResult,
java.lang.String rolesResult,
java.lang.String profilesResult,
java.lang.String authsResult,
WSUser targetUser)
Constructs and returns the user based on the outputs of the SVID commands logins, roles, profiles, and auths. |
protected WSUser |
buildUser(java.lang.String loginsResult,
java.lang.String lastResult,
WSUser targetUser)
|
protected void |
changeGroupMembers(java.lang.String group,
java.lang.String users,
Script script)
Add commands to the script that will check to see which users exist. |
protected java.util.Map |
constructNISUserAttributeParameters(WSUser user,
java.util.Map allowedAttributes)
|
protected java.lang.String |
constructUseraddParameters(WSUser user)
|
protected java.lang.String |
constructUserAttributeParameter(java.lang.String key,
java.lang.String value)
Builds up a single user attribute value suitable for shell commands, given the parameter key and value. |
protected java.lang.String |
constructUserPasswordParameters(WSUser user)
|
protected static AccountAttributeType |
createAcctAttrType(Resource res,
java.lang.String attrDefName,
java.lang.String attrType,
java.lang.String mapName,
java.lang.String mapType,
boolean required)
Generates an AccountAttributeType suitable for insertion into the prototype XML structure. |
abstract Resource |
createPrototypeResource()
|
protected AccountIterator |
getAccountIteratorResult(CaptureList captureList)
Generates an account iterator from the capture list that was built from running the getAccountIteratorScript generated script through the ScriptedConnection. |
protected Script |
getAccountIteratorScript()
Returns a script that can be run on an opened and logged in ScriptedConnection to pull a list of users out of the system. |
protected Script |
getAccountIteratorScript(long timeout)
|
protected Script |
getAccountIteratorScript(long timeout,
boolean hasTimeout)
Returns a script that can be run on an opened and logged in ScriptedConnection to pull a list of users out of the system. |
protected WavesetResult |
getAuthenticateResult(java.util.HashMap loginInfo,
CaptureList captureList)
Takes the capture list from running the authenticate script through the resource and validates it. |
protected Script |
getAuthenticateScript(java.util.HashMap loginInfo)
Generates a script for authenticating a user on the resource using the username and password in the loginInfo HashMap. |
protected Script |
getBlockAccountIteratorScript(long timeout,
boolean hasTimeout)
|
protected WavesetResult |
getCheckCreateAccountResult(CaptureList captureList)
Validates the capture list returned from the check create account script execution. |
protected Script |
getCheckCreateAccountScript()
Returns a shell script to check the resource and determine if a create account request is likely to succeed. |
protected WavesetResult |
getCheckDeleteAccountResult(CaptureList captureList)
Validates the capture list returned from the check delete account script execution. |
protected Script |
getCheckDeleteAccountScript()
Returns a shell script to check the resource and determine if a delete account request is likely to succeed. |
protected WavesetResult |
getCheckUpdateAccountResult(CaptureList captureList)
Validates the capture list returned from the update create account script execution. |
protected Script |
getCheckUpdateAccountScript()
Returns a shell script to check the resource and determine if an update account request is likely to succeed. |
protected WavesetResult |
getConnectionTestResult(CaptureList captureList)
Evaluates capture list from execution of generic test connection script. |
protected Script |
getConnectionTestScript()
Creates a script to test the connection, does NOT login or logout. |
protected java.lang.String |
getConnectionType()
Returns the scripted connection type of the resource. |
protected WavesetResult |
getCreateGroupResult(CaptureList captureList)
|
protected Script |
getCreateNativeGroupScript(java.lang.String groupName,
GenericObject attrs,
java.util.Map options,
boolean isSaveAs)
|
protected Script |
getCreateNativeUserScript(WSUser user,
java.lang.String accountID,
java.lang.String password)
|
protected Script |
getCreateNISGroupScript(java.lang.String groupName,
GenericObject attrs,
java.util.Map options,
boolean isSaveAs)
|
protected Script |
getCreateNISUserScript(WSUser user,
java.lang.String accountID,
java.lang.String password)
|
protected void |
getCreateUserResult(CaptureList captureList,
WavesetResult result)
Analyzes the capture list generated by executing the create user script on the scripted connection. |
protected Script |
getDeleteNativeGroupScript(GenericObject object,
java.util.Map options)
|
protected Script |
getDeleteNativeUserScript(WSUser user,
java.lang.String accountID)
|
protected Script |
getDeleteNISGroupScript(GenericObject object,
java.util.Map options)
|
protected Script |
getDeleteNISUserScript(WSUser user,
java.lang.String accountID)
|
protected void |
getDeleteUserResult(CaptureList captureList)
Analyzes the capture list generated by executing the delete user script on the scripted connection. |
protected boolean |
getDisableUserResult(CaptureList captureList)
Analyzes the capture list generated by executing the disable user script on the scripted connection. |
protected Script |
getDisableUserScript(WSUser user,
java.lang.String password)
Generates a script that will disable an account for the passed user on the resource. |
protected boolean |
getEnableUserResult(CaptureList captureList)
Analyzes the capture list generated by executing the enable user script on the scripted connection. |
protected Script |
getEnableUserScript(WSUser user,
java.lang.String password)
Generates a script that will enable an account for the passed user on the resource. |
GenericObject |
getFeatures()
Expose features supported by the Resource Adapter. |
protected GenericObject |
getGetGroupResult(java.lang.String groupName,
java.util.List attrsToGet,
CaptureList captureList)
|
protected Script |
getGetGroupScript(java.lang.String objectId,
java.util.List attrsToGet,
java.util.Map options)
Returns a script which will retrieve the attributes of a group account. |
protected java.util.ArrayList |
getListAllObjectsResult(java.lang.String objectType,
CaptureList captureList)
Analyzes the captrure list generated by executing the listAllObjects script on the scripted connection. |
protected Script |
getListAllObjectsScript(java.lang.String resObjType,
java.util.Map options,
java.lang.String runAsUser,
EncryptedData runAsPassword)
Returns a script which will return a list of objects of a specified type from the scriptedConnection. |
abstract java.lang.String |
getLoginPasswordAttrName()
|
protected Script |
getLoginScript()
Returns a script that will log the administrative user into the system and set up the shell if necessary. |
abstract java.lang.String |
getLoginUserAttrName()
|
protected Script |
getLogoutScript()
Returns a script that will log the administrative user out of the resource. |
protected java.lang.String |
getMutexAcquireScript(java.lang.String uidMutexFile,
java.lang.String tmpUidMutexFile,
java.lang.String pidFoundFile)
|
protected java.lang.String |
getMutexReleaseScript(java.lang.String uidMutexFile)
|
protected Script |
getNativeUserScript(WSUser user,
java.lang.String accountID)
|
protected java.lang.String |
getNISDir()
|
protected java.lang.String |
getNISNewGidScript()
|
protected java.lang.String |
getNISNewUidScript()
|
protected java.lang.String |
getNISPwddir()
|
protected WSUser |
getNISUserResult(CaptureList captureList,
WSUser targetUser)
|
protected Script |
getNISUserScript(WSUser user,
java.lang.String accountID)
|
protected java.lang.String |
getRemoveGroupTmpFiles()
|
protected java.lang.String |
getRemovePwdTmpFiles()
|
protected WavesetResult |
getRenameGroupResult(GenericObject object,
CaptureList captureList)
|
protected Script |
getRenameGroupScript(GenericObject object)
Returns a script which will rename a group. |
protected WavesetResult |
getScanningResult(CaptureList captureList,
java.util.Map args)
Based on the result of the scan routine's capturelist and the arguments passed into the routine, generate some output. |
protected Script |
getScanningScript(java.util.Map scanArgs)
Generates a script that will return a list of all the users and interesting attributes. |
protected WavesetResult |
getTestConnectionResult(CaptureList captureList)
Evaluates capture list from execution of generic test connection script. |
protected Script |
getTestConnectionScript()
Creates a script to test the connection, does NOT login or logout. |
protected WavesetResult |
getUpdateGroupResult(GenericObject object,
CaptureList captureList)
|
protected Script |
getUpdateNativeGroupScript(GenericObject object)
Returns a script which will update a group. |
protected Script |
getUpdateNativeUserScript(WSUser user,
java.lang.String accountID,
java.lang.String newName,
java.lang.String password)
|
protected Script |
getUpdateNISGroupScript(GenericObject object)
Returns a script which will update a group. |
protected Script |
getUpdateNISUserScript(WSUser user,
java.lang.String accountID,
java.lang.String newName,
java.lang.String password)
|
protected void |
getUpdateUserResult(WSUser user,
CaptureList captureList,
WavesetResult result)
Analyzes the capture list generated by executing the update user script on the scripted connection. |
protected Script |
getUpdateUserScript(java.lang.String accountId,
java.lang.String password)
Returns a script which will update a user. |
protected WSUser |
getUserResult(CaptureList captureList,
WSUser targetUser)
Analyzes the capture list generated by executing the get user script on the scripted connection. |
protected Script |
getUserScript(WSUser user)
Returns a script that sends commands to check for existence of the passed user on the resource. |
protected boolean |
isAllowableUserAttribute(java.lang.String name)
Reports whether a given attribute name is legal on the resource. |
protected boolean |
isNISShadow()
|
protected void |
startConnection()
Starts a scripted connection up and logs into it. |
static Resource |
staticCreatePrototypeResource(java.lang.String resName,
java.lang.String resTypeDisplayName,
java.lang.String className,
java.lang.String userFormName,
java.lang.String loginModuleName,
java.lang.String loginUserAttrName,
java.lang.String loginPasswordAttrName)
Converts the generic svidPrototypeXml to a specific instance (eg Solaris, HP-UX) by creating a Resource object and modifying it appropriately. |
boolean |
supportsAccountDisable()
Whether we support account enable and disable through the resource. |
boolean |
supportsResourceAccount()
Returns true if the resource adapter supports modifications to the resource account. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String RA_LOGIN_SHELL_PROMPT
public static final java.lang.String RA_ROOT_USER
public static final java.lang.String RA_ROOT_PASSWORD
public static final java.lang.String RA_ROOT_SHELL_PROMPT
public static final java.lang.String RA_SKEL_DIR
public static final java.lang.String RA_MAKE_DIR
public static final java.lang.String RA_NISSHADOW
public static final java.lang.String AA_LAST_LOGIN_TIME
public static final java.lang.String USER_NEW_LOGNAME
public static final java.lang.String USER_DIR
public static final java.lang.String USER_SHELL
public static final java.lang.String USER_GROUP
public static final java.lang.String USER_SECONDARY_GROUP
public static final java.lang.String USER_UID
public static final java.lang.String USER_EXPIRE
public static final java.lang.String USER_INACTIVE
public static final java.lang.String USER_TIME_LAST_LOGIN
public static final java.lang.String USER_COMMENT
public static final java.lang.String USER_AUTHORIZATION
public static final java.lang.String USER_PROFILE
public static final java.lang.String USER_ROLE
public static final java.lang.String PASSWD_FORCE_CHANGE
public static final java.lang.String PASSWD_MIN
public static final java.lang.String PASSWD_MAX
public static final java.lang.String PASSWD_WARN
public static final java.lang.String PASSWD_LOCK
public static final java.lang.String PASSWD_CLEAR
public static final java.lang.String LOGIN_USER
public static final java.lang.String LOGIN_PASSWORD
public static final java.lang.String DISPLAY_USER
public static final java.lang.String DISPLAY_PASSWORD
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESTYPE_DISPLAY_NAME
public static final java.lang.String RESOURCE_USER_FORM
public static final java.lang.String RESOURCE_LOGIN_MODULE
protected static java.util.Map paramToFlagMap
protected static java.util.Map allowedNISAttributes
protected java.lang.String pwdMutexFile
protected java.lang.String tmpPwdMutexFile
protected java.lang.String pwdPidFile
protected java.lang.String grpMutexFile
protected java.lang.String tmpGrpMutexFile
protected java.lang.String grpPidFile
Constructor Detail |
public SVIDResourceAdapter()
public SVIDResourceAdapter(Resource res, ObjectCache cache)
Method Detail |
public abstract Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
public static Resource staticCreatePrototypeResource(java.lang.String resName, java.lang.String resTypeDisplayName, java.lang.String className, java.lang.String userFormName, java.lang.String loginModuleName, java.lang.String loginUserAttrName, java.lang.String loginPasswordAttrName) throws WavesetException
WavesetException
public GenericObject getFeatures()
getFeatures
in interface ResourceAdapter
getFeatures
in class GenericScriptResourceAdapter
ResourceAdapter.Features
public abstract java.lang.String getLoginUserAttrName()
public abstract java.lang.String getLoginPasswordAttrName()
protected java.lang.String addAttributeIfMapped(java.lang.String val, WSUser user, java.lang.String mapName)
protected WSUser buildUser(java.lang.String loginsResult, java.lang.String rolesResult, java.lang.String profilesResult, java.lang.String authsResult, WSUser targetUser) throws WavesetException
WavesetException
protected WSUser buildUser(java.lang.String loginsResult, java.lang.String rolesResult, java.lang.String profilesResult, java.lang.String authsResult, java.lang.String lastResult, WSUser targetUser) throws WavesetException
WavesetException
protected WSUser buildUser(java.lang.String loginsResult, java.lang.String lastResult, WSUser targetUser) throws WavesetException
WavesetException
protected void addLastLogin(java.lang.String lastResult, WSUser user)
protected java.lang.String constructUserAttributeParameter(java.lang.String key, java.lang.String value)
constructUserAttributeParameter
in class GenericScriptResourceAdapter
protected java.lang.String constructUseraddParameters(WSUser user)
protected java.lang.String constructUserPasswordParameters(WSUser user)
protected java.util.Map constructNISUserAttributeParameters(WSUser user, java.util.Map allowedAttributes)
protected java.lang.String getNISDir() throws WavesetException
WavesetException
protected java.lang.String getNISPwddir()
protected boolean isNISShadow()
protected java.lang.String getNISNewUidScript() throws WavesetException
WavesetException
protected java.lang.String getNISNewGidScript() throws WavesetException
WavesetException
protected void addNISPasswordUpdate(java.lang.String account, java.lang.String password, Script script)
protected void addNISShellUpdate(java.lang.String account, java.lang.String shell, Script script)
protected AccountIterator getAccountIteratorResult(CaptureList captureList) throws WavesetException
getAccountIteratorResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getBlockAccountIteratorScript(long timeout, boolean hasTimeout)
protected Script getAccountIteratorScript(long timeout, boolean hasTimeout) throws WavesetException
WavesetException
protected Script getAccountIteratorScript() throws WavesetException
GenericScriptResourceAdapter
getAccountIteratorScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getAccountIteratorScript(long timeout) throws WavesetException
getAccountIteratorScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getAuthenticateResult(java.util.HashMap loginInfo, CaptureList captureList) throws WavesetException
getAuthenticateResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getAuthenticateScript(java.util.HashMap loginInfo) throws WavesetException
getAuthenticateScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getCheckCreateAccountResult(CaptureList captureList) throws WavesetException
getCheckCreateAccountResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getCheckCreateAccountScript() throws WavesetException
getCheckCreateAccountScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getCheckDeleteAccountResult(CaptureList captureList) throws WavesetException
getCheckDeleteAccountResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getCheckDeleteAccountScript() throws WavesetException
getCheckDeleteAccountScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getCheckUpdateAccountResult(CaptureList captureList) throws WavesetException
getCheckUpdateAccountResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getCheckUpdateAccountScript() throws WavesetException
getCheckUpdateAccountScript
in class GenericScriptResourceAdapter
WavesetException
protected void addNISMake(java.lang.String target, Script script) throws WavesetException
WavesetException
protected java.lang.String getConnectionType() throws WavesetException
getConnectionType
in class UnixResourceAdapter
WavesetException
protected void getCreateUserResult(CaptureList captureList, WavesetResult result) throws WavesetException
getCreateUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getCreateNativeUserScript(WSUser user, java.lang.String accountID, java.lang.String password) throws WavesetException
getCreateNativeUserScript
in class UnixResourceAdapter
WavesetException
protected Script getCreateNISUserScript(WSUser user, java.lang.String accountID, java.lang.String password) throws WavesetException
getCreateNISUserScript
in class UnixResourceAdapter
WavesetException
protected void getDeleteUserResult(CaptureList captureList) throws WavesetException
getDeleteUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getDeleteNativeUserScript(WSUser user, java.lang.String accountID) throws WavesetException
getDeleteNativeUserScript
in class UnixResourceAdapter
WavesetException
protected Script getDeleteNISUserScript(WSUser user, java.lang.String accountID) throws WavesetException
getDeleteNISUserScript
in class UnixResourceAdapter
WavesetException
protected boolean getDisableUserResult(CaptureList captureList) throws WavesetException
getDisableUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getDisableUserScript(WSUser user, java.lang.String password) throws WavesetException
getDisableUserScript
in class GenericScriptResourceAdapter
WavesetException
protected boolean getEnableUserResult(CaptureList captureList) throws WavesetException
getEnableUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getEnableUserScript(WSUser user, java.lang.String password) throws WavesetException
getEnableUserScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getLoginScript() throws WavesetException
getLoginScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getLogoutScript() throws WavesetException
getLogoutScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getTestConnectionResult(CaptureList captureList) throws WavesetException
WavesetException
protected Script getTestConnectionScript() throws WavesetException
WavesetException
protected WavesetResult getConnectionTestResult(CaptureList captureList) throws WavesetException
getConnectionTestResult
in class UnixResourceAdapter
WavesetException
protected Script getConnectionTestScript() throws WavesetException
getConnectionTestScript
in class UnixResourceAdapter
WavesetException
protected void getUpdateUserResult(WSUser user, CaptureList captureList, WavesetResult result) throws WavesetException
getUpdateUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getUpdateNativeUserScript(WSUser user, java.lang.String accountID, java.lang.String newName, java.lang.String password) throws WavesetException
getUpdateNativeUserScript
in class UnixResourceAdapter
WavesetException
protected Script getUpdateNISUserScript(WSUser user, java.lang.String accountID, java.lang.String newName, java.lang.String password) throws WavesetException
getUpdateNISUserScript
in class UnixResourceAdapter
WavesetException
protected Script getUpdateUserScript(java.lang.String accountId, java.lang.String password) throws WavesetException
getUpdateUserScript
in class GenericScriptResourceAdapter
WavesetException
protected WSUser getUserResult(CaptureList captureList, WSUser targetUser) throws WavesetException
getUserResult
in class GenericScriptResourceAdapter
WavesetException
protected WSUser getNISUserResult(CaptureList captureList, WSUser targetUser) throws WavesetException
WavesetException
protected Script getUserScript(WSUser user) throws WavesetException
getUserScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getNativeUserScript(WSUser user, java.lang.String accountID) throws WavesetException
WavesetException
protected Script getNISUserScript(WSUser user, java.lang.String accountID) throws WavesetException
WavesetException
protected boolean isAllowableUserAttribute(java.lang.String name)
isAllowableUserAttribute
in class GenericScriptResourceAdapter
protected void startConnection() throws WavesetException
startConnection
in class UnixResourceAdapter
WavesetException
public boolean supportsAccountDisable()
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
public boolean supportsResourceAccount()
ResourceAdapterBase
supportsResourceAccount
in interface ResourceAdapter
supportsResourceAccount
in class ResourceAdapterBase
protected Script getListAllObjectsScript(java.lang.String resObjType, java.util.Map options, java.lang.String runAsUser, EncryptedData runAsPassword) throws WavesetException
getListAllObjectsScript
in class GenericScriptResourceAdapter
WavesetException
protected java.util.ArrayList getListAllObjectsResult(java.lang.String objectType, CaptureList captureList) throws WavesetException
getListAllObjectsResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getGetGroupScript(java.lang.String objectId, java.util.List attrsToGet, java.util.Map options) throws WavesetException
getGetGroupScript
in class UnixResourceAdapter
WavesetException
protected GenericObject getGetGroupResult(java.lang.String groupName, java.util.List attrsToGet, CaptureList captureList) throws WavesetException
getGetGroupResult
in class UnixResourceAdapter
WavesetException
protected Script getCreateNativeGroupScript(java.lang.String groupName, GenericObject attrs, java.util.Map options, boolean isSaveAs) throws WavesetException
getCreateNativeGroupScript
in class UnixResourceAdapter
WavesetException
protected Script getCreateNISGroupScript(java.lang.String groupName, GenericObject attrs, java.util.Map options, boolean isSaveAs) throws WavesetException
getCreateNISGroupScript
in class UnixResourceAdapter
WavesetException
protected WavesetResult getCreateGroupResult(CaptureList captureList) throws WavesetException
getCreateGroupResult
in class UnixResourceAdapter
WavesetException
protected Script getUpdateNativeGroupScript(GenericObject object) throws WavesetException
UnixResourceAdapter
getUpdateNativeGroupScript
in class UnixResourceAdapter
WavesetException
protected Script getUpdateNISGroupScript(GenericObject object) throws WavesetException
UnixResourceAdapter
getUpdateNISGroupScript
in class UnixResourceAdapter
WavesetException
protected WavesetResult getUpdateGroupResult(GenericObject object, CaptureList captureList) throws WavesetException
getUpdateGroupResult
in class UnixResourceAdapter
WavesetException
protected Script getDeleteNativeGroupScript(GenericObject object, java.util.Map options) throws WavesetException
getDeleteNativeGroupScript
in class UnixResourceAdapter
WavesetException
protected Script getDeleteNISGroupScript(GenericObject object, java.util.Map options) throws WavesetException
getDeleteNISGroupScript
in class UnixResourceAdapter
WavesetException
protected Script getRenameGroupScript(GenericObject object) throws WavesetException
getRenameGroupScript
in class UnixResourceAdapter
WavesetException
protected WavesetResult getRenameGroupResult(GenericObject object, CaptureList captureList) throws WavesetException
getRenameGroupResult
in class UnixResourceAdapter
WavesetException
protected void changeGroupMembers(java.lang.String group, java.lang.String users, Script script) throws WavesetException
WavesetException
protected java.lang.String getMutexAcquireScript(java.lang.String uidMutexFile, java.lang.String tmpUidMutexFile, java.lang.String pidFoundFile)
protected java.lang.String getMutexReleaseScript(java.lang.String uidMutexFile)
protected java.lang.String getRemovePwdTmpFiles()
protected java.lang.String getRemoveGroupTmpFiles()
protected Script getScanningScript(java.util.Map scanArgs) throws WavesetException
getScanningScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getScanningResult(CaptureList captureList, java.util.Map args) throws WavesetException
GenericScriptResourceAdapter
getScanningResult
in class GenericScriptResourceAdapter
WavesetException
protected static AccountAttributeType createAcctAttrType(Resource res, java.lang.String attrDefName, java.lang.String attrType, java.lang.String mapName, java.lang.String mapType, boolean required)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |