Separate UserManager into api and implementation bundles Change-Id: I3fd0fec1378b31ab330700d6cd0dd5319a6f7f5b Signed-off-by: taochang <taochang@cisco.com>
UserManager as role coordinator - UM to expose API to check if a role name is already in use - Included search in local authorization configurations when querying for roles on user, getUserRoles() - Added local authorization code to Junit to exercise the above - Minor code refactoring to resuse getUserRoles() to avoid code duplication - Downgrade and changed log level on cache allocation when cache is already present - Removed new line in UM log messages to be in line with other bundles Signed-off-by: Alessandro Boch <aboch@cisco.com>
Checkstyle enforcer Started to enforce checkstyle, if the code style doesn't match the checkstyle settings build will break. This is needed in order to make sure folks comply to one code style and don't start diverging. For now the enforcement is only limited to: - make sure no TABS are present in the java files - make sure that no trailing whitespaces are present Along with code style enforcement updates all the files that didn't comply else compilation would not be successful. Added new exclusion in .gitignore Added new parent for commons.opendaylight, please read the README in the commons.parent project for the reason for it. Make sure the violation of checkstyle are reported on the console to avoid for a developer to be able to dig through the log in the target directory Change-Id: I4e35aa74e685e5cebb8182caf0b3b39da0906948 Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Revert "Checkstyle enforcer" This reverts commit 541d0a36997f292bb037a2199463431eee538358 We are going to talk a bit more about this before doing it. Change-Id: I788ecea18796c6eb325285dfaa83a6aae300634c
Checkstyle enforcer Started to enforce checkstyle, if the code style doesn't match the checkstyle settings build will break. This is needed in order to make sure folks comply to one code style and don't start diverging. For now the enforcement is only limited to: - make sure no TABS are present in the java files - make sure that no trailing whitespaces are present Along with code style enforcement updates all the files that didn't comply else compilation would not be successful. Added new exclusion in .gitignore Change-Id: Ic95da373575cec3cfe0c99b31fce92f66bc41263 Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Principal to contain all the user roles - Added IUserManager.getUserLevels() which returns all the controller levels for the passed user - Modified CustomRealm to return a principal containing all the controller roles for the passed user - Code style and format changes for the touched files Signed-off-by: Alessandro Boch <aboch@cisco.com>
Five more Equals/HashCode/StringBuilder replacements I'm intentionally breaking these up into small groups so they can be reasonably reviewed, rather than one giant group that can't. Contributes to fixing bug 20. Tenth set. Change-Id: I62a1b9724ed235c6b406fbbf2a005606cfd9d87e Signed-off-by: Ed Warnicke <eaw@cisco.com> Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Five more Equals/HashCode/StringBuilder replacements I'm intentionally breaking these up into small groups so they can be reasonably reviewed, rather than one giant group that can't. Contributes to fixing bug 20. Ninth set. Change-Id: Icf3ea474ed0313ab92e93717658f20f6bc7c228c Signed-off-by: Ed Warnicke <eaw@cisco.com>
Enable multiple roles per user (backend) Signed-off-by: Alessandro Boch <aboch@cisco.com>
API 2 Documentation for opendaylight.controller.usermanager Signed-off-by: Maurice Qureshi <maquresh@cisco.com>
Logging related enhancements. Signed-off-by: Madhavan Kasthurirangan <mkasthur@cisco.com>
- Added the username/password criteria in usermanager - Relaxed the criteria for nodename/gateway name in devices Change-Id: Id476f2d99e7dbaf285df761ff7e756d3d592cce3 Signed-off-by: dibhatia <dibhatia@cisco.com>
Auth Principal to work with Remote authorization Also added some helpful OSGi console commands for remote auth. Change-Id: I2c092cb73c7603acc2a2171e1d1fcc5669a9373d Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
Replacing Spring Security framework with Apache Tomcat Valve for Web Security (UI Only). Northbound will be handled as part of a different commit. Updated Web UI modules : 1. Root 2. Flows 3. Devices 4. Topology 5. Troublehshooting Change-Id: I09fa1968a184bf6ae0c6248e8eea3c05a40433d8 Signed-off-by: Venkatraghavan Sankarasubbu <vensanka@cisco.com>
ISSUE: Some changes to Authorization CHANGE: - Fixed enum string in AppRoleLevel and added fromString() method - Added couple of methods to IResourceAuthorization - Have some IResourceAuthorization methods to return Status - Changed UserManagerImpl.getUserLevel() to check against local configured users as well, instead of against only local authenticated users - Added a couple of Junits tests Change-Id: I713fa48afa9791a2ba1a4a837dce678d03e4c171 Signed-off-by: Alessandro Boch <aboch@cisco.com>
OpenDaylight Controller functional modules. Change-Id: I1cd6668738099e8db3cfe83f812a92c922ced38c Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>