Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

As saadmin access denied on config->user setting // after upgrading to 2.2RC1

Hey guys,

since having upgraded to the latest release candidate 2.2RC1 some menues are restricted issuing and "Access denied" message although I got the highest permission set sadmin.

So I checked database and noticed that there seems to be a new column NEW_ACCESSLVL and an "old" one ACCESSLVL filled with different values.

mysql> select * from operators;

| ACCESSLVL |       | NEW_ACCESSLVL |
       NULL                          sadmin

Tried to update the ACCESSLVL but only accepts integers ?

Please give me a hint?

Regards

Marco
in OCS Inventory NG server for Unix by (520 points)

1 Answer

0 votes

Hey Marco

What was the previous version of OCS?
I think your config file is corrupt (config/profiles/sadmin.xml)

Regards

 

by (190 points)
Hey Airoine,

the previous had been the the stable OCS 2.1.2...

Here's the extract of my sadmin.xml

---------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<profile label="g(140)">
  <restrictions>
    <restriction key="GUI">NO</restriction>
    <restriction key="TELEDIFF_ACTIVATE">NO</restriction>
    <restriction key="TELEDIFF_VISIBLE">YES</restriction>
    <restriction key="EXPORT_XML">NO</restriction>
    <restriction key="WOL">NO</restriction>
  </restrictions>
  <config>
    <config-elem key="IPDISCOVER">YES</config-elem>
    <config-elem key="TELEDIFF">YES</config-elem>
    <config-elem key="CONFIG">YES</config-elem>
    <config-elem key="GROUPS">YES</config-elem>
    <config-elem key="CONSOLE">YES</config-elem>
    <config-elem key="ALERTE_MSG">YES</config-elem>
    <config-elem key="ACCOUNTINFO">YES</config-elem>
    <config-elem key="CHANGE_ACCOUNTINFO">YES</config-elem>
    <config-elem key="CHANGE_USER_GROUP">YES</config-elem>
    <config-elem key="MANAGE_PROFIL">YES</config-elem>
    <config-elem key="MANAGE_USER_GROUP">YES</config-elem>
    <config-elem key="MANAGE_SMTP_COMMUNITIES">YES</config-elem>
    <config-elem key="DELETE_COMPUTERS">YES</config-elem>
  </config>
  <blacklist>
    <blacklist-elem>MACADD</blacklist-elem>
    <blacklist-elem>SERIAL</blacklist-elem>
    <blacklist-elem>IPDISCOVER</blacklist-elem>
  </blacklist>
  <pages>
    <page>ms_all_computers</page>
    <page>ms_config</page>
    <page>ms_repart_tag</page>
    <page>ms_groups</page>
    <page>ms_all_soft</page>
    <page>ms_multi_search</page>
    <page>ms_custom_groups</page>
    <page>ms_custom_lock</page>
    <page>ms_custom_pack</page>
    <page>ms_custom_sup</page>
    <page>ms_custom_tag</page>
    <page>ms_dict</page>
    <page>ms_upload_file</page>
    <page>ms_upload_file_popup</page>
    <page>ms_regconfig</page>
    <page>ms_logs</page>
    <page>ms_admininfo</page>
    <page>ms_ipdiscover</page>
    <page>ms_admin_ipdiscover</page>
    <page>ms_doubles</page>
    <page>ms_label</page>
    <page>ms_users</page>
    <page>ms_add_user</page>
    <page>ms_user_details</page>
    <page>ms_config_account</page>
    <page>ms_profiles</page>
    <page>ms_add_profile</page>
    <page>ms_profile_details</page>
    <page>ms_custom_perim</page>
    <page>ms_local</page>
    <page>ms_help</page>
    <page>ms_stats</page>
    <page>ms_codes</page>
    <page>ms_blacklist</page>
    <page>ms_console</page>
    <page>ms_components</page>
    <page>ms_tele_package</page>
    <page>ms_tele_activate</page>
    <page>ms_tele_popup_active</page>
    <page>ms_tele_actives</page>
    <page>ms_tele_pack</page>
    <page>ms_rules_redistrib</page>
    <page>ms_custom_param</page>
    <page>ms_opt_ipdiscover</page>
    <page>ms_group_show</page>
    <page>ms_show_detail</page>
    <page>ms_custom_info</page>
    <page>ms_debug</page>
    <page>ms_computer</page>
    <page>ms_soft_csv</page>
    <page>ms_csv</page>
    <page>ms_tele_stats</page>
    <page>ms_tele_compress</page>
    <page>ms_speed_stat</page>
    <page>ms_admin_management</page>
    <page>ms_adminvalues</page>
    <page>ms_view_file</page>
    <page>ms_search_soft</page>
    <page>ms_options</page>
    <page>ms_snmp</page>
    <page>ms_snmp_detail</page>
    <page>ms_update_new_tag</page>
    <page>ms_server_redistrib</page>
    <page>jp_teledeploy_stats</page>
    <page>jp_teledeploy_speed_stats</page>
    <page>jp_activity_stats</page>
    <page>ms_ipdiscover_analyse</page>
    <page>ms_stats_connexion</page>
    <page>ms_add_key</page>
    <page>ms_export_ocs</page>
    <page>ms_qrcode</page>
    <page>ms_plugins</page>
    <page>ms_stats_top</page>
    <page>ms_server_infos</page>
    <page>ms_wiki</page>
    <page>ms_irc</page>
    <page>ms_forums</page>
    <page>ms_offers</page>
    <page>ms_ask</page>
    <page>ms_pluginsmanager</page>
  </pages>
</profile>

 

Can't see any error - but maybe you?

 

Regards

Marco
Interestingly today I got no problems on editing users-groups and so on...
I didn't do anythin that could be reason for that symptom anyway thanks for helping so far.
 
Powered by Question2Answer
...