• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    LDAP Plugin custom Port

    Scheduled Pinned Locked Moved
    General
    2
    5
    274
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      flo
      last edited by

      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!

      Regards
      Flo

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        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);
        

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 2
        • F
          flo
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • F
            flo
            last edited by flo

            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?
            thanks!

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @flo
              last edited by Sebastian Roth

              @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.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

              1 Reply Last reply Reply Quote 2
              • 1 / 1
              • First post
                Last post

              196

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project