Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Multi LDAP authentication and LDAP Sync (1.2)

Plugin for OS Ticket that allows for authentication with multiple
domains and servers for agents and/or clients on osTicket also syncs user defined attributes from AD LDAP. The software is beta but works great in productions. I have been using it for the last 2 years and this is the first major update for ldap syncing.

I currently using it with 3 separate domains with no issues (feedback is welcome now that I am active again)

Updated to version 1.2


  • Multiple domain and server support.
  • SSL connection support.
  • LDAP login for both agents and clients (can be toggled for neither, either, or both).
  • Combines users in all domains into one for seamless searches.
  • Creates user accounts and syncs information as needed.
  • Sync accounts in LDAP with user defined schedule.
  • Syncs all attributes only on users that have change via AD time and date.
  • Custom defined ldap map attributes
  • Keeps track of updated users
Sync Configuration
download here :

Updating wiki....


  • Contact form fields
    1166 x 445 - 39K
  • @jphilbert continues to rock the osTicket multi LDAP scene. :)  [Thanks for posting this!]

  • Forgot to add an example of the LDAP config page.
    Please check the wiki before upgrading.
    1136 x 828 - 49K
  • @ntozier Thanks its my baby ...
    Its just hard to release updates when I am not comfortable with the code(cleanest vs functionality)... it took a while to get it to this point. The LDAP sync was a pain in the butt to got right enough for others to hopefully benefit from it.
  • Here is an example of the emailed report.

    1063 x 470 - 27K
  • So is this just an addition to the current LDAP plugin to allow multiple domains to be authenticated and using LDAP with one instance of OSTicket? 
  • edited May 2017
    Well it also syncs all users in LDAP based on the Mapping of values you input.

    847 x 433 - 31K
  • Very useful, Amazing work, thank you!
  • trying to use this with my site and get first run configuration error. unable to copy files. 

    Osticket ver 1.10
    ubuntuer 16.04 server
    php 7

  • It seems that you dont have permission to create/copy files from one folder to the other.
    The plugin copies a needed file to the /scp folder. You can copy sync_mldap.php manually.
  • Can you mention what php extensions are required for this plugin?  I installed it and the moment I clicked 'enable this plugin' the web server died with a 500 error.  

    Error log is empty, access log just reports 500 errors, PHP shows no other errors, I'm kind of at a loss but googling suggests similar behavior is caused by missing PHP modules. 
  • All it needs is the LDAP module ...but it should not do a 500 error when its missing but I will have to check and without a error log it very difficult to pin down the issue.
  • Yea i recall having the same error as atroon when trying out the plugin, if i recall correctly the php error log said that there was tables missing in the database.
  • it should not cause a 500 eror.
  • Hi,
    i have installed the plugin in osTicket 1.10.
    After install i only get blank pages and the osTicket does not work anymore.

    Any idea to fix or is the plugin not compatible with osTicket 1.10 ?
  • Its compatible .... sorry for the late response but I dont get emails when the forum post is updated.
    Let me know if you still need help getting it to work.
  • edited January 8
    Great work jphilbert!
    I would like to know 2 things:
    1. do I need both LDAP plugins...yours and original or I can use only yours?
    2. how do I exactly incorporate value mapping from LDAP to osticket? Lets say I want add office number in user info. Same way like you have on latest screenshot in this thread.
  • Hello!

    Great work with this plugin! I just would like to know if this will work with osTicket 1.10.1? I'm having issues with error 500 when trying to syncronize users.

    Thank you!
  • @TicketManiak
    1. You only need one ... I dont think both can work at the same time anyway..
    2. All you have to do is create it i the user info and map the LDAP value that it represents.
  • @jaristigueta Show me the log file.... seems like a common issue with some servers. working on a fix
  • @jphilbert

    I am having real trouble getting your plugin to work at all and I am not sure why, I have attached some screenshots if you wouldn't mind taking a look and pointing me in the right direction.

    947 x 672 - 141K
    945 x 915 - 169K
  • edited January 17
    @mattm what is the acctual problem... Will it not authenticate?
  • @jphilbert,

    Nothing seems to happen at all, idealy I want to sync all my users.  I have turned on the verbose logging but when I check the logs they dont even seem to exist.
  • jphilbert

    2. All you have to do is create it i the user info and map the LDAP value that it represents.

    ...could you be a little more specific about this? Where I can find this "user info"?
  • So I'm still having some issues getting your plugin to work. I'll try to describe what I'm seeing.

    I'm receiving errors on the sync. It looks like agents work but not my ldap users.

    Sync executed on (February 14 2018 2:29 pm) next execution in (February 14 2018 2:39 pm)Total ldapusers: (0) Total agents: (3) Total Updated Users: (0) Execute Time: (0:00:05.009)

    To help in my testing I have three ldap users set up in OsTicket.

    Here is my search filter which works because I did an AD query with it and it returned all my users.


    Authentication mode is set to staff and client.

    Ldap attributes: cn,telephonenumber,physicalDeliveryOfficeName,mail

    sync map: name:cn, phone:telephonenumber,office:physicalDeliveryOfficeName,email:mail

    ldap sync filter: (&(sAMAccountType=805306368)(mail=*))

    Also no one who is part of ldap can login. It just says access denied.

    Any assistance would be appreciated.

Sign In or Register to comment.