Default network admin password change is not persistent across controller restart 87/887/3
authorAlessandro Boch <aboch@cisco.com>
Thu, 15 Aug 2013 23:47:45 +0000 (16:47 -0700)
committerAlessandro Boch <aboch@cisco.com>
Fri, 16 Aug 2013 22:30:39 +0000 (15:30 -0700)
commitd6595375699a34ffe5b1cf062196f16dd826e19b
tree1a3ea02382726ca44e9ba18af5b19096fe1e9fd5
parent65662c5141097ed382ad2037ad4a78a9965aad22
Default network admin password change is not persistent across controller restart

ISSUE: Change default network admin (NA) user password, save config, restart controller.
       To be able to login as default NA user you still have to type the default password.
       This happens because when parsing startup configuration user config addition are replayed
       through public API which has a check to block addiiton/removal of default NA user.

CHANGES:
- Perform checks in a middle layer function and have a internal level function which just update the db
- Call the internal function during startup config replay
- Added missing checks on presence/conflict of user configs when removing/adding a user config object

Change-Id: I38c98bb946b42215cec46d86d3b1a9885c12795b
Signed-off-by: Alessandro Boch <aboch@cisco.com>
opendaylight/usermanager/implementation/src/main/java/org/opendaylight/controller/usermanager/internal/UserManagerImpl.java