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

How do you install this. I copied the files into multi-ldap but what do I need from There. #73

Closed ivonpint closed 2 months ago

ivonpint commented 1 year ago

Well i guess i figured it out.

  1. get the make.php from https://github.com/osTicket/osTicket-plugins
  2. place the make.php in the root of the plugin folder and have the multi-ldap folder with all the files in it
  3. run php -dphar.readonly=0 make.php build multi-ldap
  4. You will see the plugin when you add a plugin
philbertphotos commented 1 year ago

That is interesting need to look at how they do that and include it in my instructions. Thanks .

ivonpint commented 1 year ago

Great plugin BTW! I got it installed but I cant seem to get it working. I'm missing something, somewhere.

image image image

philbertphotos commented 1 year ago

You still have an issue?

flimby1 commented 1 year ago

It's still necessary to make the phar file? Because I tried it but in the apache error log I see this: [php:error] [pid 25992:tid 1892] [client 10.26.64.53:59628] PHP Fatal error: Uncaught Error: Failed opening required 'C:/xampp/htdocs/sito2/include/plugins/multi-ldap.phar/auth.php' (include_path='./;C:/xampp/htdocs/sito2/include/;C:/xampp/htdocs/sito2/include/pear/;phar://C:/xampp/htdocs/sito2/include/plugins/auth-ldap - Copia.phar/include') in C:\xampp\htdocs\sito2\scp\sync_mldap.php:13\nStack trace:\n#0 {main}\n thrown in C:\xampp\htdocs\sito2\scp\sync_mldap.php on line 13, referer: http://server_host/sito2/scp/plugins.php?id=9&xid=13

philbertphotos commented 12 months ago

Never used the PHAR file. it may cause issues with sync_mldap.php since it needs to be copied to the SCP folder and I suspect that is why sync is failing. I copy the files directly to the required folder.

flimby1 commented 12 months ago

Ok so I use only to copy multi-ldap on the plugin folder. It seems that I was able to see the user from the active directory but if I try to login I receive the error 49 for bad credentials

philbertphotos commented 12 months ago

Ok so I use only to copy multi-ldap on the plugin folder. It seems that I was able to see the user from the active directory but if I try to login I receive the error 49 for bad credentials

When you first installed the plugin it creates logs in the Osticket log section can you tell me what it says MLA-Copy or MLA-Updated.

If you recently updated to the new version it should say MLA-????

flimby1 commented 12 months ago

Yes I find in the log the MLA-Updated

philbertphotos commented 12 months ago

OK did it fail or successful? It would say MLA-Updated (failed) or MLA-Updated (success) Include where it was trying to copy too.

flimby1 commented 12 months ago

it says MLA-Updated (success) Here the message: Replacing file 'C:\xampp\htdocs\sito2\include\plugins\multi-ldap/sync_mldap.php' to SCP folder successful

philbertphotos commented 12 months ago

GREAT seems like it could be a problem, between lunix and windows paths

philbertphotos commented 12 months ago

This is the problem in line 13 require_once (INCLUDE_DIR . 'plugins/'.$_REQUEST['plugin'].'/auth.php'); Linux uses "/" but linux uses "\" I need to make compatible with both OS systems.

philbertphotos commented 12 months ago

Or its an incompatibility with PHAR file. I suggest that you dont use PHAR and see if the error goes away ... I am leaning more to that ync_mldap.php is looking for auth.php but its in a compressed PHAR file it cant read.

So delete the PHAR and copy the RAW files instead to the same folder should fix the issue I never designed it to work as a PHAR.

flimby1 commented 12 months ago

I've already deleted the phar file and use only the folder from the project: The plugin file are in this folder: c:\xampp\htdocs\sito2\include\plugins

flimby1 commented 12 months ago

the problem is still present, now I have a doubt, is the plugin compatible with the Active directory based on Windows 2012? EDIT: image In this image you can see the result of a search on the ldap if you need (I had to cenuse some part for privacy)

philbertphotos commented 11 months ago

the problem is still present, now I have a doubt, is the plugin compatible with the Active directory based on Windows 2012? EDIT: image In this image you can see the result of a search on the ldap if you need (I had to cenuse some part for privacy)

I use it with Windows 2012 so yes it works. The plugin is not compatible with phar format

philbertphotos commented 2 months ago

Finally FIXED