Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Dolibarr
  3. Dolibarr OIDC

Dolibarr OIDC

Scheduled Pinned Locked Moved Solved Dolibarr
18 Posts 5 Posters 3.9k Views 5 Watching
  • 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.
  • C Offline
    C Offline
    charlesnw
    wrote on last edited by
    #1

    Hello.

    I was doing some research and I see Dolibarr supports OIDC.

    https://wiki.dolibarr.org/index.php?title=Authentication,_SSO_and_SSL

    Any possibility of switching to that from LDAP?

    Dolibarr is my only Cloudron app using LDAP and not 2fa protected.

    1 Reply Last reply
    3
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      It is on our list, but the OAuth2 integration which we have to use here still has issues. We keep an eye on that though!

      1 Reply Last reply
      2
      • C Offline
        C Offline
        charlesnw
        wrote on last edited by
        #3

        IMG_2313.jpeg

        Looks like it’s OIDC ?

        1 Reply Last reply
        1
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          @vladimir.d has looked into this these days, he may have more insights. However you can also try to get it to work as a Cloudron OpenID client and if it works let us know, then we can integrate it into the package quickly. So far we hit issues around OAuth grants if I recall correctly.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            charlesnw
            wrote on last edited by
            #5

            I will wait for @vladimir.d to reply 🙂 Otherwise I'll attempt to set it up as a Cloudron OIDC client in next couple days.

            1 Reply Last reply
            1
            • C Offline
              C Offline
              charlesnw
              wrote on last edited by
              #6

              Hello all.

              I have :

              • Edited the conf file:

              $dolibarr_main_authentication='openid_connect,dolibarr';

              • Enabled the OpenID module:

              image.png

              (I suppose when the package is deployed, you'll want that module enabled by default?) https://www.dolibarr.org/forum/t/help-needed-using-doli-enable-modules-in-docker-installation/29945 seems relevant for that.

              I am now at the settings screen:

              image.png

              Hopefully I will shortly have OIDC working. Once I do, should I send some kind of pull request or?

              1 Reply Last reply
              0
              • C Offline
                C Offline
                charlesnw
                wrote on last edited by
                #7

                If anyone has some time to help me hack on this, it would be greatly appreciated.

                I attempted to map the Dollibar OIDC bits to the Cloudron OpenID fields. Not sure if I got it correct. Also, I suppose that the sync script will need to be run even with OIDC?

                1 Reply Last reply
                0
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #8

                  @vladimir.d also has a branch with an attempt to get it working at https://git.cloudron.io/packages/dolibarr-app/-/tree/oidc-v21?ref_type=heads

                  1 Reply Last reply
                  0
                  • vladimir.dV Offline
                    vladimir.dV Offline
                    vladimir.d
                    wrote on last edited by
                    #9

                    Unfortunately I'm not sure if OpenID auth is working properly in Dolibarr at the moment.
                    We are facing into same errors as explained at https://github.com/Dolibarr/dolibarr/issues/33974

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      charlesnw
                      wrote on last edited by
                      #10

                      Can you share a config which will get me to that error? I’m happy to troubleshoot it.

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        charlesnw
                        wrote on last edited by
                        #11

                        I see the latest Cloudron Dolibarr update supports OIDC! Thanks! This is awesome. It was my last app to not support OIDC login.

                        1 Reply Last reply
                        1
                        • nebulonN nebulon marked this topic as a question on
                        • nebulonN nebulon has marked this topic as solved on
                        • C Offline
                          C Offline
                          charlesnw
                          wrote on last edited by
                          #12

                          I have a number of Dolibar instances deployed on my Cloudron. Post OIDC update all of them work for OIDC login. All but 1 work for the local admin login.

                          i get the error:

                          Not an OpenID Connect flow

                          The configuration of all of them (on the filesystem/cloudron side) is stock / identical. I've got custom groups etc inside the instances to support the various lines of business. However I haven't made any major global or code etc changes to any of them, just customized modules/perms etc via the GUI.

                          Any ideas?

                          1 Reply Last reply
                          1
                          • J Offline
                            J Offline
                            joseph
                            Staff
                            wrote on last edited by
                            #13

                            Dolibarr being the beast it is, might be worth disabling the customizations one by one and figure out what change breaks.

                            1 Reply Last reply
                            0
                            • C Offline
                              C Offline
                              charlesnw
                              wrote on last edited by
                              #14

                              I can't do that. I can't login as admin. 🙂

                              1 Reply Last reply
                              0
                              • J Offline
                                J Offline
                                joseph
                                Staff
                                wrote on last edited by
                                #15

                                Rough.. But I think you can maybe delete the plugin from the filesystem in /app/data/ . I don't know the exact directory but I am guessing there is a plugins subdirectory somewhere inside it from where you can delete/move the plugin one by one .

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  charlesnw
                                  wrote on last edited by
                                  #16

                                  I’ll take a look. Thanks for the suggestion.

                                  I don’t think that will solve my issue. I’ll update this thread with the results either way 🙂

                                  1 Reply Last reply
                                  0
                                  • C Offline
                                    C Offline
                                    charlesnw
                                    wrote on last edited by
                                    #17

                                    Did not work. I made the

                                    /app/data/dolibarr

                                    directory identical to a working instance. I restarted the instance that I can't login to as admin and get exact same error. Any way to increase the logging?

                                    1 Reply Last reply
                                    0
                                    • O Offline
                                      O Offline
                                      OskarArdolo
                                      wrote on last edited by
                                      #18

                                      Hi, I had same problem today. I was unable to connect to admin account using password.
                                      A workaround I did was to edit Dolibarr "admin" account username to an already existing Cloudron username (using a Dolibarr account that had administrator rights). I could then connect with OIDC on the edited admin account.

                                      But I'm pretty sure I was able to connect to that admin account with username/password months ago. I'm not a big fan of the workaround I used today.

                                      1 Reply Last reply
                                      1

                                      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.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Bookmarks
                                      • Search