[jboss-jira] [JBoss JIRA] (AS7-2757) Update the add-user script to check existing users, if they exist prompt if password should be updated instead of new user added

Darran Lofthouse (JIRA) jira-events at lists.jboss.org
Tue Feb 28 08:26:36 EST 2012


    [ https://issues.jboss.org/browse/AS7-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671537#comment-12671537 ] 

Darran Lofthouse commented on AS7-2757:
---------------------------------------

Yes this would be a useful issue so that users can use the same script to update passwords.

Not sure if you are familiar with the script implementation but the utility is implemented as a set of states in the following class: -
  org.jboss.as.domain.management.security.AddPropertiesUser

Any updates should maintain the use of states but there is already a state to check for duplicate users so that could be a useful starting point.

Another class that you may find useful is 'org.jboss.as.domain.management.security.PropertiesFileLoader' this contains a currently unused method to re-write a properties file replacing the users details, as it is currently unused it may need some additional testing but is a probably candidate to pull out somehow for re-use.

                
> Update the add-user script to check existing users, if they exist prompt if password should be updated instead of new user added 
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AS7-2757
>                 URL: https://issues.jboss.org/browse/AS7-2757
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Domain Management
>            Reporter: Darran Lofthouse
>             Fix For: Open To Community
>
>
> Another issue that would be good to start contributing changes to AS 7.
> Within the add-user utility add a check for existing users and if the user does exist ask the user to confirm if they want to update the password of that user.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list