Topic Resolution: Resolved
Ansicht von 29 Antwort-Themen
  • Autor
    Beiträge
    • #38540
      Raphael Riquet
      Teilnehmer

        Hello,

        I am having trouble configuring LDAP on otobo/customer.pl so that users can log in to the portal directly with SSO.
        Could I get some help or documentation directly?

        Thank you.
        For your information, I am using version 11.

      • #38546
        Arnold
        Administrator

          Hi Raphael,

          LDAP as an authentication method does not allow for SSO. However, it allows your costumers to use the password from LDAP to authenticate. Further you need the account data of the customer which may also me synced from the same LDAP. Please refer to the defaults config to obtain an overview: https://github.com/RotherOSS/otobo/blob/rel-11_0/Kernel/Config/Defaults.pm

          Best regards,
          Arnold

        • #38548
          Raphael Riquet
          Teilnehmer

            Hello Arnold,

            Is it possible to use SSO with Otobo?

          • #38549
            Arnold
            Administrator

              Absolutly. You need an SSO service that speaks OIDC or Kerberos. What SSO solution are currently employing?

            • #38550
              Raphael Riquet
              Teilnehmer

                So I have just confirmed on my end that it must be LDAP linked to our AD.

              • #38573
                Raphael Riquet
                Teilnehmer

                  Hello Arnold,

                  When I run a command to check if my Otobo server is properly connected to LDAP, it works, but I can’t see my client users on Otobo. Is this normal? And I can’t log in with my AD credentials.

                • #38575
                  Raphael Riquet
                  Teilnehmer

                    When I try to log in to customer.pl, I get this error message:
                    Authentication succeeded, but no customer record is found in the customer backend. Please contact the administrator.

                  • #38598
                    Arnold
                    Administrator

                      Authentication succeeded, but no customer record is found in the customer backend. Please contact the administrator.

                      Ah! That is actually more helpful than you realize. You can authenticate successfully. That means that OTOBO can verify the provided username and password on login. Now you are missing a user record in OTOBO that represents that user. I assume you would like the same data (from LDAP). So I suggest you sync that data from LDAP aswell. Configure this to setup LDAP as a backend for your customer user data: https://github.com/RotherOSS/otobo/blob/rel-11_0/Kernel/Config/Defaults.pm#L1744-L1819

                      Good look,
                      Arnold

                    • #38599
                      Raphael Riquet
                      Teilnehmer

                        Thank you, I can connect with LDAP, but is there an automatic link?
                        For example, if a user submits a ticket by email, will it automatically be sent to customer.pl?
                        And is it possible to ensure that each manager in each department has access to their department’s tickets, but that other users only see their own tickets?

                      • #38605
                        Arnold
                        Administrator

                           Thank you, I can connect with LDAP, but is there an automatic link?
                          For example, if a user submits a ticket by email, will it automatically be sent to customer.pl?

                          If the ticket is created by email and the email address belongs to customer user (you can check that from the admin panel) the customer user is assigned automatically by OTOBO and is visible for the user in the customer portal.

                          And is it possible to ensure that each manager in each department has access to their department’s tickets, but that other users only see their own tickets?

                          That certainly is possible, however configuration is a tiny bit daunting. You need to create a customer in OTOBO for each department. The customer id has to be reflected in LDAP. Customer users should be assigned to customers by LDAP mapping like this: https://github.com/RotherOSS/otobo/blob/rel-11_0/Kernel/Config/Defaults.pm#L1806

                          Now, we want to limit CompanyTicketAccess (enabled by default) limit the access to a customer user group.
                          Create a group like „Management“ and assign the managers to this group: https://doc.otobo.de/manual/admin/11.0/en/content/administration-area/users-groups-roles/customer-users-groups.html. Now, navigate to Admin -> System Settings -> CustomerFrontend::Navigation###CustomerTicketOverview###002-Ticket and set the visibility to the management group.

                          A tip: It might help to activate the System Setting SwitchToCustomer to test the configuration with the users like they appear in the directory service.

                           

                        • #38709
                          Raphael Riquet
                          Teilnehmer

                            Hello, I have a new problem. I managed to set up LDAP, but in Otobo, when I wanted to reply to a ticket, it gave me the email address + the SAMAccount, so it doesn’t work because the email address is required in the reply. How can I fix this error? Thank you.

                          • #38712
                            Raphael Riquet
                            Teilnehmer

                              <exemple : raphael@blabla.com riquet-raphael>

                            • #38725
                              Arnold
                              Administrator

                                Have a look at the CustomerUser data in the admin panel. What is filled in the field email? Is it a valid email address?

                                 

                              • #38728
                                Raphael Riquet
                                Teilnehmer

                                  Okay, so I need to go to Administrator > System Configuration > and look for CustomerUser?

                                • #38732
                                  Raphael Riquet
                                  Teilnehmer


                                    You can clearly see the fields that are good.

                                  • #38736
                                    Arnold
                                    Administrator

                                      Okay, then walk me through the error scenario…

                                      I assume you are in the TicketZoom and on top of the Article you press „Reply“.
                                      If that is correct. Please inspect the sender of the article you are responding to (Icon of an i in the top right of the article and then hover the entry in the from field).

                                    • #38739
                                      Raphael Riquet
                                      Teilnehmer

                                        As seen in the image, there is a ticket to create, and when I want to reply to it, it doesn’t work because we see the LDAP username passepartout_j. And I can’t find the i.

                                      • #38740
                                        Arnold
                                        Administrator

                                          That is the response mask.

                                          What is the sender of the article you are replying to?

                                        • #38742
                                          Raphael Riquet
                                          Teilnehmer

                                            This is the window for responding to a ticket.
                                            The user sent us a ticket by email, and we received it on Otobo. The image shows when we responded > empty response.

                                          • #38751
                                            Arnold
                                            Administrator

                                              The user sent us a ticket by email, and we received it on Otobo. The image shows when we responded > empty response.

                                              Right. But what is the email address of the user that sent the email that created the ticket. What does OTOBO show in the article (the email that created the ticket)? Please inspect the sender of the article you are responding to (Icon of an i in the top right of the article and then hover the entry in the from field).

                                            • #38754
                                              Raphael Riquet
                                              Teilnehmer

                                                When I press “i,” I get this information.

                                              • #38763
                                                Arnold
                                                Administrator

                                                  Nice. Now hover the mouse cursor over the sender and you will see what otobo parsed from the email.

                                                • #38764
                                                  Raphael Riquet
                                                  Teilnehmer

                                                    When I hover my mouse over it, I can see the email address, but the problem is that when I reply, it automatically puts the LDAP ID in. So it doesn’t work and we can’t reply to the ticket.

                                                  • #38766
                                                    Arnold
                                                    Administrator

                                                      But the ID is not part of the email as depicted in the sender of the article you are replying to?

                                                    • #38767
                                                      Raphael Riquet
                                                      Teilnehmer

                                                        When I hover my mouse over it, I see that the email address is not the username, but when I want to reply to the ticket, it automatically fills in both.

                                                      • #38769
                                                        Arnold
                                                        Administrator

                                                          Please post from your Config.pm the setting CustomerUserListFields.

                                                           

                                                           

                                                        • #38770
                                                          Raphael Riquet
                                                          Teilnehmer

                                                            CustomerUserPostMasterSearchFields => [‚mail‘],
                                                            CustomerUserNameFields => [‚givenname‘, ’sn‘],
                                                            CustomerUserNameFieldsJoin => ‚ ‚,
                                                            CustomerUserExcludePrimaryCustomerID => 0,
                                                            AdminSetPreferences => 0,
                                                            CacheTTL => 0,

                                                            Map => [
                                                            [ ‚UserTitle‘, Translatable(‚Title or salutation‘), ‚title‘, 1, 0, ‚var‘, “, 1, undef, undef ],
                                                            [ ‚UserFirstname‘, Translatable(‚Firstname‘), ‚givenname‘, 1, 1, ‚var‘, “, 1, undef, undef ],
                                                            [ ‚UserLastname‘, Translatable(‚Lastname‘), ’sn‘, 1, 1, ‚var‘, “, 1, undef, undef ],
                                                            [ ‚UserLogin‘, Translatable(‚Username‘), ’sAMAccountName‘, 1, 1, ‚var‘, “, 1, undef, undef ],
                                                            [ ‚UserEmail‘, Translatable(‚Email‘), ‚mail‘, 1, 1, ‚var‘, “, 1, undef, undef ],
                                                            [ ‚UserCustomerID‘, Translatable(‚CustomerID‘), ‚mail‘, 0, 1, ‚var‘, “, 1, undef, undef ],
                                                            [ ‚UserPhone‘, Translatable(‚Phone‘), ‚telephonenumber‘,1, 0, ‚var‘, “, 1, undef, undef ],
                                                            [ ‚UserAddress‘, Translatable(‚Address‘), ‚postaladdress‘, 1, 0, ‚var‘, “, 1, undef, undef ],
                                                            [ ‚UserComment‘, Translatable(‚Comment‘), ‚description‘, 1, 0, ‚var‘, “, 1, undef, undef ],
                                                            ],
                                                            };

                                                          • #38798
                                                            Arnold
                                                            Administrator

                                                              Thanks for the code. However, it does not include CustomerUserListFields.

                                                              It should be set like:

                                                              CustomerUserListFields => ['cn', 'mail'],

                                                              or

                                                              CustomerUserListFields => ['givenname', 'sn', 'mail'],

                                                              always with mail as the last property.

                                                               

                                                            • #38818
                                                              Raphael Riquet
                                                              Teilnehmer

                                                                Great, it works! Now I just need to manage the groups so that managers have access to their departments‘ tickets.

                                                              • #39257
                                                                Raphael Riquet
                                                                Teilnehmer

                                                                  Hello Arnold, I haven’t been able to create groups with the managers.
                                                                  I’ll give you an example to see if you can help me.
                                                                  Jean is the HR manager. Bernard and Paul are just HR employees.
                                                                  I would like Jean to be able to see Bernard and Paul’s tickets on the custom.pl portal, but I don’t want Paul and Bernard to have access to anyone else’s tickets. They shouldn’t be able to see other people’s tickets.

                                                              Ansicht von 29 Antwort-Themen
                                                              • Du musst angemeldet sein, um auf dieses Thema antworten zu können.