philbertphotos / osticket-multildap-auth-plugin

Plugin for OS Ticket that allows for authentication with multiple domains.
GNU General Public License v3.0
28 stars 16 forks source link

Not getting 2 Domain LDAP logins to work #78

Closed cmwg71 closed 2 months ago

cmwg71 commented 7 months ago

I am using osTicket 1.18.1 with your current Multi LDAP 1.8

Question 1: 1.18 has multiple instances for plugins, does your plugin support this? ie. create an instance per LDAP domain? or should the multi domains be added into one instance (separtion ;)?

Question 2: i created one instance with the first domain and this worked instantly and very fast LDAP lookup. After adding 2nd instance for 2nd domain, both LDAP lookups don´t work. Putting it into one instance, does not work either.

(for both above, the connection test always returns OK)

Question 3: there is nothing in the osTicket system logs noted - not even errors. Is there a server side log i should be looking at?

cmwg71 commented 7 months ago

If possible, please post up to date screenshots of a multi domain setup in your plugin - that would be a great help!

cmwg71 commented 7 months ago

Not sure if this will help, trying to run sync_mldap.php from console i get the following back:

PHP Fatal error: Uncaught Error: Class "LDAPMultiAuthentication" not found in /var/www/vhosts/domain/include/plugins/multi-ldap/sync_mldap.php:16 Stack trace:

0 {main}

thrown in /var/www/vhosts/domain/include/plugins/multi-ldap/sync_mldap.php on line 16

cmwg71 commented 7 months ago

Additionally i verified, using instances:

seemingly only the first instance (in the order shown in the list) works, if both are active only results from the first are shown, if the first is inactive, no results are shown from the second.

if the second however is then made the first and only entry, it gives back results - so it actually works, but not with multiple ldaps as instances in the listing

philbertphotos commented 7 months ago

@cmwg71 that is interesting and in truth I assumed it would work without any changes and never actually tested it. I would have to figure out what instances look for when it comes to searches.,

sync_mldap.php cannot be ran directly. Let me get back to you this weekend.

cmwg71 commented 7 months ago

Thanks for the info! If you need anything from me, just give a shout here.

cmwg71 commented 6 months ago

any news or progress?

philbertphotos commented 6 months ago

Let me check ... I am currently testing two instances with different domains. Never needed to do so since the plugin and do multiple domains on its own

cmwg71 commented 5 months ago

how is the testing going?

cmwg71 commented 5 months ago

Sorry to bug you, but have you had any progress? would really like to use your plugin for a productive osTicket site.

philbertphotos commented 2 months ago

@cmwg71 all fixed ...and you are not bothering me just a change in jobs caused some delays.