Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Script integration

    Kopano WebApp
    2
    9
    575
    Loading More Posts
    • 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.
    • Coffee_is_life
      Coffee_is_life last edited by

      Hello everyone,

      I’ve wrote a html/php based frontend to add shared folders to z-push devices. - this is working fine and im proud of it :)
      but for further manageability it would be greate if its possible to add these folders in mapi devices too.

      Is there any way to add shared folders in Webapp/deskapp via sh/php script?

      thanks in advance,
      coffee_is_life

      fbartels 1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano @Coffee_is_life last edited by fbartels

        @Coffee_is_life said in Script integration:

        Is there any way to add shared folders in Webapp/deskapp via sh/php script?

        yes, this functionality is part of the mdm plugin.

        EDIT: just looking at this sentence, without the context of ActiveSync: are you talking about adding shared folders to webapp itself?

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • Coffee_is_life
          Coffee_is_life last edited by

          i tried the mdm plugin in the past, but if i’m correct, i can only change my own devices… is this correct?

          the script is designed for the administrator to add/remove shared folders for a given user

          coffee_is_life

          1 Reply Last reply Reply Quote 0
          • fbartels
            fbartels Kopano last edited by

            Yes, that is true. The mdm plugin is designed for users and not administrators.

            Regards Felix

            Resources:
            https://kopano.com/blog/how-to-get-kopano/
            https://documentation.kopano.io/
            https://kb.kopano.io/

            Support overview:
            https://kopano.com/support/

            1 Reply Last reply Reply Quote 0
            • Coffee_is_life
              Coffee_is_life last edited by

              then i update my initial question:
              is there any way to add additional folders to a given user via php/sh-script to mapi devices (webapp/deskapp/outlook 2010)?

              coffee_is_life

              1 Reply Last reply Reply Quote 0
              • fbartels
                fbartels Kopano last edited by fbartels

                Sorry for the cat & mouse game, but what you are asking is the following:

                Is there a (web) gui so that I (as an administrator) can manage shared folders for my users ActiveSync devices?

                Is that correct? If so then the answer is: “no, there isn’t”.

                Edit: I am still confused about you exactly mean with “Mapi devices”.

                Regards Felix

                Resources:
                https://kopano.com/blog/how-to-get-kopano/
                https://documentation.kopano.io/
                https://kb.kopano.io/

                Support overview:
                https://kopano.com/support/

                1 Reply Last reply Reply Quote 0
                • Coffee_is_life
                  Coffee_is_life last edited by Coffee_is_life

                  i’ve build the webgui to add shared folders myself. - this is working for z-push devices.

                  What im searching for is a methode, executed on mailserver or webappserver (best via php, perl or shell script) to add a shared store to another user who are using webapp/deskapp.

                  coffee_is_life

                  1 Reply Last reply Reply Quote 0
                  • fbartels
                    fbartels Kopano last edited by

                    Ah, so my hunch from my first reply is true.

                    Which folder a user has open in WebApp (and as DeskApp is a wrapper around WebApp this is true for it as well) is stored in the users settings json. There are a bunch of script to export/import/update the users settings object.

                    Ultimately this is about injecting the correct data into the settings object. You can find some scripts that do this at https://stash.kopano.io/projects/KSC/repos/webapp-tools/browse

                    Regards Felix

                    Resources:
                    https://kopano.com/blog/how-to-get-kopano/
                    https://documentation.kopano.io/
                    https://kb.kopano.io/

                    Support overview:
                    https://kopano.com/support/

                    1 Reply Last reply Reply Quote 0
                    • Coffee_is_life
                      Coffee_is_life last edited by

                      Hello there,

                      just a quick update on how i solved this, maybe someone else want to do it on his/her own:

                      when the script is executed via the webgui, the webapp settings are backuped for the given user, than a json parser goes through and adds/removes the entry from the file.
                      Then the settings are restored and after a reload the user will see the new folder or wont see the removed folder anymore - seems to work like a charm. - The only thing to do (but its more cosmetics than anything else) is to check the permissions first. otherwise the folder just wont show up :)

                      If someone is interested i could create a git for that (but i need to change it a bit - for example a configfile to define the ldap/db plugin to check the given user)

                      best regards
                      coffee_is_life

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post