|
||||||||||
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.AIXResourceAdapter
Resource adapter supporting AIX version 4.3 (and possibly other versions) by using shell script commands through a scripted connection.
Nested Class Summary | |
protected class |
AIXResourceAdapter.AcctIter
AccountIterator implementation that can be built by construction from the output of "lsuser ALL". |
protected class |
AIXResourceAdapter.BlockAcctIter
BlockAccountIterator implementation that can be built by construction from the output of "lsuser -a ALL". |
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 | |
protected static java.util.Map |
allowedNISAttributes
|
static java.lang.String |
ATTR_COMMENT
|
static java.lang.String |
ATTR_GROUP
|
static java.lang.String |
ATTR_HOME
|
static java.lang.String |
ATTR_PWD_ADMCHG
|
static java.lang.String |
ATTR_PWD_ADMIN
|
static java.lang.String |
ATTR_PWD_NOCHECK
|
static java.lang.String |
ATTR_SHELL
|
protected static java.lang.String |
CMD_CHGROUP
|
protected static java.lang.String |
CMD_CHGRPMEM
|
protected static java.lang.String |
CMD_CHSEC
|
protected static java.lang.String |
CMD_CHUSER
|
protected static java.lang.String |
CMD_LSSEC
|
protected static java.lang.String |
CMD_LSUSER
|
protected static java.lang.String |
CMD_MKGROUP
|
protected static java.lang.String |
CMD_MKUSER
|
protected static java.lang.String |
CMD_PASSWD
|
protected static java.lang.String |
CMD_PWUSER
|
protected static java.lang.String |
CMD_RMGROUP
|
protected static java.lang.String |
CMD_RMUSER
|
static java.lang.String |
code_id
|
protected static java.lang.String |
DEFAULT_SHELL
|
static java.lang.String[] |
DEFAULT_SHELLS
|
static java.lang.String |
DISPLAY_PASSWORD
|
static java.lang.String |
DISPLAY_USER
|
protected java.lang.String |
grpMutexFile
|
protected java.lang.String |
grpPidFile
|
protected boolean |
isAdminUser
|
static java.lang.String |
LOGIN_PASSWORD
|
static java.lang.String |
LOGIN_USER
|
protected java.lang.String |
pwdMutexFile
|
protected java.lang.String |
pwdPidFile
|
static java.lang.String |
RA_IS_ADMIN_USER
|
static java.lang.String |
RA_RM_USER_FROM_ETC_SECURITY
|
static java.lang.String |
RESOURCE_NAME
|
static java.lang.String |
RESOURCE_USER_FORM
|
protected java.lang.String |
rmUserFlag
|
protected java.lang.String |
tmpGrpMutexFile
|
protected java.lang.String |
tmpPwdMutexFile
|
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 | |
AIXResourceAdapter()
No argument constructor. |
|
AIXResourceAdapter(Resource res,
ObjectCache cache)
Constructor |
Method Summary | |
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 void |
addPwdAdmAttr(WSUser user,
java.lang.StringBuffer buf)
|
protected void |
addPwdAdmCmd(WSUser user,
Script script)
Add the pwdadm command to the script. |
protected void |
addPwdAdmFlag(java.lang.String flagName,
java.lang.Boolean value,
java.lang.StringBuffer buf)
If the value is not null and true, then add it to the buffer. |
protected void |
addPwdAdmFlag(WSUser user,
java.lang.String mapName,
java.lang.String flagName,
java.lang.StringBuffer buf)
Get the value of the specified attr and add the corresponding pwdadm flag if the attr's value is true. |
protected java.lang.String |
addUid(WSUser user,
java.lang.String userAttrParms)
|
protected void |
addUpdatePwdAdmCmd(WSUser user,
Script script)
Adds commands to the script to set the pwdadm flags appropriately. |
protected void |
badGroupsMessage(java.lang.String badGroups,
WavesetResult result)
|
protected WSUser |
buildUser(java.lang.String userStr,
WSUser targetUser)
Build a WSUser from the output of the "lsuser" command. |
protected void |
changeNISGroupMembers(java.lang.String group,
java.lang.String users,
Script script)
Add commands to the script that will check to see which users exist. |
protected void |
checkGroups(WSUser user,
Script script)
Add commands to the script that will check to see which groups exist and only attempt to add the user to those groups that exist. |
protected java.util.Map |
constructNISUserAttributeParameters(WSUser user,
java.util.Map allowedAttributes)
|
protected java.lang.String |
constructUserAttributeParameter(java.lang.String key,
java.lang.String value)
Builds up a single user attribute value suitable for the chuser command, given the parameter key and value. |
Resource |
createPrototypeResource()
Non-static version of staticCreatePrototypeResource() |
protected void |
filterPwdAdmFlag(java.lang.Boolean value,
java.lang.String flagName,
Script script)
Remove the flag from WSADMOUT if the corresponding attribute value is false. |
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)
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 |
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 delete create 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 check update 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 Script |
getCreateNativeGroupScript(java.lang.String groupName,
GenericObject attrs,
java.util.Map options,
boolean isSaveAs)
Generates a script that will create a group on the resource. |
protected Script |
getCreateNativeUserScript(WSUser user,
java.lang.String accountID,
java.lang.String password)
Generates a script that will create an account for the passed user on the resource. |
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 WavesetResult |
getCreateUserResult(CaptureList captureList)
|
protected void |
getCreateUserResult(CaptureList captureList,
WavesetResult result)
Analyzes the capture list generated by executing the create user script on the scripted connection. |
protected Script |
getCreateUserScript(java.lang.String userName,
GenericObject attrs,
java.util.Map options,
boolean isSaveAs)
Generates a script that will create a user account on the resource. |
protected java.util.List |
getDefaultShellsList()
|
protected Script |
getDeleteNativeGroupScript(GenericObject object,
java.util.Map options)
Generates a script that will delete a group on the resource. |
protected Script |
getDeleteNativeUserScript(java.lang.String accountID)
Generates a script that will delete the account of the passed user on the resource. |
protected Script |
getDeleteNativeUserScript(WSUser user,
java.lang.String accountID)
Generates a script that will delete the account of the passed user on the resource. |
protected Script |
getDeleteNISGroupScript(GenericObject object,
java.util.Map options)
|
protected Script |
getDeleteNISUserScript(WSUser user,
java.lang.String accountID)
Generates a script that will delete the account of the passed user on the resource. |
protected void |
getDeleteUserResult(CaptureList captureList)
Analyzes the capture list generated by executing the delete user script on the scripted connection. |
protected Script |
getDeleteUserScript(GenericObject object,
java.util.Map options)
Generates a script that will delete a user account on the resource. |
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 objectName,
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 GenericObject |
getGetUserResult(java.lang.String objectName,
java.util.List attrsToGet,
CaptureList captureList)
|
protected Script |
getGetUserScript(java.lang.String objectId,
java.util.List attrsToGet,
java.util.Map options)
Returns a script which will retrieve the attributes of a user 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. |
protected Script |
getLoginScript()
Returns a script that will log the administrative user into the system and set up the shell if necessary. |
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 java.lang.String |
getNISDir()
|
protected java.lang.String |
getNISNewGidScript()
|
protected java.lang.String |
getNISNewUidScript()
|
protected java.lang.String |
getNISPwddir()
|
protected java.lang.Boolean |
getPwdAdmFlagAttrValue(WSUser user,
java.lang.String mapName)
Get the Boolean value of the specifed attribute based on the name from the right hand side of the schema map. |
protected java.util.ArrayList |
getReadOnlyTestCmds()
Dynamic list of commands to test for permissions to execute. |
protected java.lang.String |
getRemoveGroupTmpFiles()
|
protected java.lang.String |
getRemovePwdTmpFiles()
|
protected java.util.ArrayList |
getRequiredGroupCmds()
The list of required group commands for all unix adapters. |
protected java.util.ArrayList |
getRequiredNISCmds()
The list of required file commands for all unix adapters. |
protected java.util.ArrayList |
getRequiredUserCmds()
The list of required user commands for all unix adapters. |
protected WavesetResult |
getScanningResult(CaptureList captureList,
java.util.Map args)
Take the capured scanning result and from that build a report The script returns lines of name value pairs used to decribe the user and interesting attributes. |
protected Script |
getScanningScript(java.util.Map args)
Generates a script that will return a list of all the users and interesting attributes for scanning. |
protected Script |
getShellsScript(Script script)
|
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 java.lang.String |
getUid(WSUser user)
|
protected Script |
getUpdateNativeGroupScript(GenericObject object)
Returns a script which will update a native group. |
protected void |
getUpdateNativeUserResult(WSUser user,
CaptureList captureList,
WavesetResult result)
Analyzes the capture list generated by executing the update user script on the scripted connection. |
protected Script |
getUpdateNativeUserScript(WSUser user,
java.lang.String accountID,
java.lang.String newName,
java.lang.String password)
Generates a script that will update an account for the passed user on the resource. |
protected Script |
getUpdateNISGroupScript(GenericObject object)
Returns a script which will update a group. |
protected void |
getUpdateNISUserResult(WSUser user,
CaptureList captureList,
WavesetResult result)
Analyzes the capture list generated by executing the update user script on the scripted connection. |
protected Script |
getUpdateNISUserScript(WSUser user,
java.lang.String accountID,
java.lang.String newName,
java.lang.String password)
|
protected WavesetResult |
getUpdateUserResult(GenericObject object,
CaptureList captureList)
|
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(GenericObject object)
Returns a script which will update a user. |
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 java.lang.String |
getWhichScript(java.util.ArrayList req)
Returns the actual which command statement used to send to the resource to determine the existance of the required commands. |
protected void |
handleUnsetPwdAttr(WSUser user,
java.lang.String mapName)
|
protected boolean |
isAllowableUserAttribute(java.lang.String name)
Reports whether a given attribute name is legal on the resource. |
protected java.lang.String |
removeInitialSpace(java.lang.String s)
Utility method returns a string with initial spaces stripped. |
protected void |
setPwdAdmAttrs(WSUser user,
java.lang.String pwdadmOut)
|
protected void |
startConnection()
Starts a scripted connection up and logs into it. |
static Resource |
staticCreatePrototypeResource()
Creates a resource based on the prototype xml. |
boolean |
supportsAccountDisable()
Whether the resource can enable and disable accounts. |
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_IS_ADMIN_USER
public static final java.lang.String RA_RM_USER_FROM_ETC_SECURITY
public static final java.lang.String ATTR_GROUP
public static final java.lang.String ATTR_SHELL
public static final java.lang.String ATTR_HOME
public static final java.lang.String ATTR_COMMENT
public static final java.lang.String ATTR_PWD_NOCHECK
public static final java.lang.String ATTR_PWD_ADMIN
public static final java.lang.String ATTR_PWD_ADMCHG
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 RESOURCE_USER_FORM
protected boolean isAdminUser
protected java.lang.String rmUserFlag
protected static java.util.Map allowedNISAttributes
protected static final java.lang.String DEFAULT_SHELL
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
protected static final java.lang.String CMD_CHSEC
protected static final java.lang.String CMD_LSSEC
protected static final java.lang.String CMD_MKUSER
protected static final java.lang.String CMD_CHUSER
protected static final java.lang.String CMD_RMUSER
protected static final java.lang.String CMD_PWUSER
protected static final java.lang.String CMD_LSUSER
protected static final java.lang.String CMD_PASSWD
protected static final java.lang.String CMD_MKGROUP
protected static final java.lang.String CMD_CHGROUP
protected static final java.lang.String CMD_RMGROUP
protected static final java.lang.String CMD_CHGRPMEM
public static final java.lang.String[] DEFAULT_SHELLS
Constructor Detail |
public AIXResourceAdapter()
public AIXResourceAdapter(Resource res, ObjectCache cache)
Method Detail |
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
protected java.lang.String constructUserAttributeParameter(java.lang.String key, java.lang.String value)
constructUserAttributeParameter
in class GenericScriptResourceAdapter
key
- - the attribute name.value
- - the attribute value name.public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
protected java.util.Map constructNISUserAttributeParameters(WSUser user, java.util.Map allowedAttributes)
protected java.lang.String getNISPwddir()
protected java.lang.String getNISDir() throws WavesetException
WavesetException
protected void addNISMake(java.lang.String target, Script script) 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 java.lang.String getNISNewUidScript() throws WavesetException
WavesetException
protected java.lang.String getNISNewGidScript() throws WavesetException
WavesetException
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 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
GenericScriptResourceAdapter
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 Script getGetUserScript(java.lang.String objectId, java.util.List attrsToGet, java.util.Map options) throws WavesetException
getGetUserScript
in class UnixResourceAdapter
WavesetException
protected GenericObject getGetUserResult(java.lang.String objectName, java.util.List attrsToGet, CaptureList captureList) throws WavesetException
getGetUserResult
in class UnixResourceAdapter
WavesetException
protected GenericObject getGetGroupResult(java.lang.String objectName, java.util.List attrsToGet, CaptureList captureList) throws WavesetException
getGetGroupResult
in class UnixResourceAdapter
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 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 WavesetResult getCreateUserResult(CaptureList captureList) throws WavesetException
getCreateUserResult
in class UnixResourceAdapter
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 Script getCreateUserScript(java.lang.String userName, GenericObject attrs, java.util.Map options, boolean isSaveAs) throws WavesetException
getCreateUserScript
in class UnixResourceAdapter
WavesetException
protected Script getDeleteUserScript(GenericObject object, java.util.Map options) throws WavesetException
getDeleteUserScript
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 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 void addPwdAdmCmd(WSUser user, Script script) throws WavesetException
WavesetException
protected void addPwdAdmFlag(WSUser user, java.lang.String mapName, java.lang.String flagName, java.lang.StringBuffer buf)
protected void addPwdAdmFlag(java.lang.String flagName, java.lang.Boolean value, java.lang.StringBuffer buf)
protected java.lang.Boolean getPwdAdmFlagAttrValue(WSUser user, java.lang.String mapName)
protected java.lang.String addUid(WSUser user, java.lang.String userAttrParms)
protected java.lang.String getUid(WSUser user)
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 getDeleteNativeUserScript(java.lang.String accountID) throws WavesetException
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 void getUpdateNativeUserResult(WSUser user, CaptureList captureList, WavesetResult result) throws WavesetException
WavesetException
protected void getUpdateNISUserResult(WSUser user, CaptureList captureList, WavesetResult result) throws WavesetException
WavesetException
protected WavesetResult getUpdateUserResult(GenericObject object, CaptureList captureList) throws WavesetException
getUpdateUserResult
in class UnixResourceAdapter
WavesetException
protected void badGroupsMessage(java.lang.String badGroups, WavesetResult result)
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 void addUpdatePwdAdmCmd(WSUser user, Script script) throws WavesetException
WavesetException
protected void filterPwdAdmFlag(java.lang.Boolean value, java.lang.String flagName, Script script)
protected void checkGroups(WSUser user, Script script) throws WavesetException
WavesetException
protected WSUser getUserResult(CaptureList captureList, WSUser targetUser) throws WavesetException
getUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getUpdateUserScript(GenericObject object) throws WavesetException
getUpdateUserScript
in class UnixResourceAdapter
WavesetException
protected Script getUpdateUserScript(java.lang.String accountId, java.lang.String password) throws WavesetException
getUpdateUserScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getUpdateNativeGroupScript(GenericObject object) throws WavesetException
getUpdateNativeGroupScript
in class UnixResourceAdapter
WavesetException
protected Script getUpdateNISGroupScript(GenericObject object) throws WavesetException
UnixResourceAdapter
getUpdateNISGroupScript
in class UnixResourceAdapter
WavesetException
protected void setPwdAdmAttrs(WSUser user, java.lang.String pwdadmOut)
protected void addPwdAdmAttr(WSUser user, java.lang.StringBuffer buf)
protected void handleUnsetPwdAttr(WSUser user, java.lang.String mapName)
protected Script getUserScript(WSUser user) throws WavesetException
getUserScript
in class GenericScriptResourceAdapter
WavesetException
protected java.lang.String removeInitialSpace(java.lang.String s)
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
public GenericObject getFeatures()
getFeatures
in interface ResourceAdapter
getFeatures
in class GenericScriptResourceAdapter
ResourceAdapter.Features
protected WSUser buildUser(java.lang.String userStr, WSUser targetUser) throws WavesetException
WavesetException
protected void changeNISGroupMembers(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 args) throws WavesetException
GenericScriptResourceAdapter
getScanningScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getScanningResult(CaptureList captureList, java.util.Map args) throws WavesetException
getScanningResult
in class GenericScriptResourceAdapter
WavesetException
protected java.lang.String getWhichScript(java.util.ArrayList req)
UnixResourceAdapter
getWhichScript
in class UnixResourceAdapter
req
- List of required commands
protected java.util.ArrayList getRequiredGroupCmds()
UnixResourceAdapter
getRequiredGroupCmds
in class UnixResourceAdapter
protected java.util.ArrayList getRequiredUserCmds()
UnixResourceAdapter
getRequiredUserCmds
in class UnixResourceAdapter
protected java.util.ArrayList getRequiredNISCmds()
UnixResourceAdapter
getRequiredNISCmds
in class UnixResourceAdapter
protected java.util.ArrayList getReadOnlyTestCmds()
UnixResourceAdapter
getReadOnlyTestCmds
in class UnixResourceAdapter
protected java.util.List getDefaultShellsList()
getDefaultShellsList
in class UnixResourceAdapter
protected Script getShellsScript(Script script)
getShellsScript
in class UnixResourceAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |