Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Custom GUI add USER

Custom GUI add USER

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 203 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    simonv
    wrote on last edited by
    #1

    Hi all,

    I am writing a Web Gui and I will integrate the FOP2 dispatcher console in it.
    In the Admin part of the gui I would like to add the tab to add FOPusers instead of using FOP admin console.
    Till now I added the user in the table mysql database asterisk.fop2users and sqlite database fop2settings.db, but when I try to login to the dispatcher console the login is unsuccessful.

    If I add the same user with the same password using FOP2/Admin console the login works.
    Can someone explain me how the procedure of adding new users works ?

    Thank you

    Br
    Simon

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      You do not need to add anything to the sqlite fop2settings.db, it is not used for authentication and it will be populated by fop2 as soon as a user logs into fop2 and open up preferences from the GUI.

      You only need to add the entry to the fop2users table, but also all related tables (fop2plugins, fop2groups, fop2UserGroup, fop2UserPlugin) if you want to add groups and plugins to some user.

      Run /usr/local/fop2/autconfig-users.sh and inspect the output from when you add a user manually to the fop2users table, compare with a user created directly via the manager.

      In any case, your approach might be not the best. The FOP2 Manager can be configured to support custom backends, and do it the other way around. The FOP2 Manager can read your backend data and generate the proper buttons and user entries. When you reload Asterisk, fop2 will run the FOP2 Manager update conf script and retrieve any modifications into its own tables. That is how it works with all supported backends (FreePBX, MiRTA, Elastix 4, Thirdlane, etc).

      Best regards,

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups