This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Embedded
- :
- FlexNet Embedded Forum
- :
- REST API - Enabling Security
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 21, 2016
12:51 PM
REST API - Enabling Security
I'm having some problems enabling the Secuirty for the REST API. I'm running the following command to generate the producer settings:
in order to set the admin and producer passwords to 1P@ssw0rd. In the fne-prop.txt I have the following
When I try to log in (using the WebUI (flsm), through flexnetadmin.sh, or through a REST API Client), the flexnetls.log shows the following:
For example, the syntax I'm using to see features with the flexnetadmin.sh is:
Anyone seen any similar issues? The server is running on CentOS 6.7, I'm using FNE Server 2016.08
Thanks
./flexnetlsconfig.sh -prop ./fne-prop.txt -o ./producer-settings.xml -id ./IdentityClientServer.bin -admin-password 1P@ssw0rd -producer-password 1P@ssw0rd
in order to set the admin and producer passwords to 1P@ssw0rd. In the fne-prop.txt I have the following
security.enabled=true
security.token.duration=30m
When I try to log in (using the WebUI (flsm), through flexnetadmin.sh, or through a REST API Client), the flexnetls.log shows the following:
09:37:05,297 INFO Authorize request for user "admin"
09:37:05,300 WARN Empty encoded password
09:37:05,301 WARN Authorization attempt at uri=/api/1.0/instances/~/authorize failed for user admin (error BadCredentialsException)
For example, the syntax I'm using to see features with the flexnetadmin.sh is:
./flexnetlsadmin.sh -server http://:7070/ -authorize admin 1P@ssw0rd -features
Anyone seen any similar issues? The server is running on CentOS 6.7, I'm using FNE Server 2016.08
Thanks
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 04, 2016
06:59 PM
The issue turned out to be that when I had been testing this functionality by uninstalling, reconfiguring, and re-installing the License Server that the data directory (I]/var/opt/flexnetls/{WHATEVER}/ folder) was not being cleared and was locked to the original password when it was first installed (in this case I first installed it with no password). Uninstalling the License Server, deleting the data directory, and then re-installing the license server fixed this issue.
Just a FYI, this means if someone:
[LIST=1]
installs the license server
changes the admin password from the defaultRESTpassword one provided to someOtherPassword
uninstalls the license server (without deleting the data directory)
re-installs the license server
then the password for the RESTful API is someOtherPassword, NOT defaultRESTpassword
Just a FYI, this means if someone:
[LIST=1]
then the password for the RESTful API is someOtherPassword, NOT defaultRESTpassword