LDAP Plugin custom Port

  • Hi,
    I’m playing around with fog at the moment and i need to connect fog via ldap to my OpenLDAP Server which runs on ports 7636 and 7389. I can not change these ports in my environment. I tried to edit some files in the ldap plugin folder an added the two ports to some code-lines but with no success. Is it possible to add those ports or allow manual entries in the port dropdown field?

    Thanks in advance for your help!


  • Moderator

    @flo FWIW, one of the developers are adding your request to the LDAP plugin. Those should be in the mainstream code on the next release of FOG 1.5.6.

  • Thank you, that worked for me but i had to add the two ports in other lines in that file too. There are checks implemented if the selected dropdown values are 389, 636…

    Is it possible to define this as an array with the possible ports in the top of the file in one of the next releases?

  • This post is deleted!

  • Moderator

    This is going to be a bit of a hackish answer.

    Edit the file: /var/www/html/fog/lib/plugins/ldap/pages/ldapmanagementpage.class.php

    Goto about line 208 which should look like this:

     $ports = array(389, 636);

    Edit it to look like this:

     $ports = array(389, 636, 7389, 7636);

Log in to reply