• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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 Mar 24, 2019, 7:46 PM

    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
    • G
      george1421 Moderator
      last edited by Mar 24, 2019, 9:53 PM

      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 Mar 27, 2019, 4:19 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • F
          flo
          last edited by flo Mar 27, 2019, 10:21 AM Mar 27, 2019, 4:21 PM

          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!

          G 1 Reply Last reply Apr 14, 2019, 12:01 AM Reply Quote 0
          • G
            george1421 Moderator @flo
            last edited by Sebastian Roth Apr 13, 2019, 11:28 PM Apr 14, 2019, 12:01 AM

            @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

            157

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project