• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. stuhad
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    stuhad

    @stuhad

    0
    Reputation
    1
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    stuhad Unfollow Follow

    Latest posts made by stuhad

    • RE: LDAP Plugin install

      @Sebastian-Roth said in LDAP Plugin install:

      Did you see Tom’s post? There seemed to be an issue in the version check script on our webserver which led to it saying you are “up to date” eventhough you are running the years old 1.5.5 version. Tom fixed it. You can always be sure the version number in the bottom right corner is the one you have.

      Hey sorry about the confusion I did see his comment, but clearly did not understand. It’s a huge relief that we aren’t dealing with a failed upgrade.

      Thanks for all your help with this everyone, I have finally got the plugin working. As @Kiweegie suggested early on the password complexity seemed to be the issue. I had made sure there was no special characters in it, but I had made the password obscenely long. Changing it < 24 characters seems to have done the trick.

      Apologies for all the confusion and thanks again for all the help.

      posted in General
      S
      stuhad
    • RE: LDAP Plugin install

      OK sorry I’m not sure what changed but it seems like the GUI is now saying we are in fact not running 1.5.7 but actually 1.5.5, which at least makes sense as no one remembers upgrading Fog, and it matches the log output. Just not sure why it was reporting 1.5.7 before… perhaps a DNS issue?

      6b8da88d-60e5-4a0f-bb96-2cbed0665a5a-image.png

      The only change I can think of is I performed an apt install to install ldap-utils so I could troubleshoot if it was perhaps a network issue between our fog server and the domain controllers not sure why this would make any difference to what the GUI was reporting.

      I’ve confirmed I can query the domain controllers using ldapsearch from the fog server without issue so it doesn’t appear to be a network problem. Unfortunately, ldap logins still aren’t working to the fog server.

      Would you recommend I try actually upgrading to 1.5.7?

      Cheers,

      posted in General
      S
      stuhad
    • RE: LDAP Plugin install

      @Sebastian-Roth

      $ grep FOG_VERSION /var/www/html/fog/lib/fog/system.class.php
              define('FOG_VERSION', '1.5.5');
      $ find /var/www -name "system.class.php"
      /var/www/fog/lib/fog/system.class.php
      
      posted in General
      S
      stuhad
    • RE: LDAP Plugin install

      Hey Sebastion,

      I’m not certain if we are on 1.5.5 or 1.5.7, perhaps the upgrade failed? Is there any way I can tell definitively?

      Here is the output you requested.

      $ ls -al /var/www; ls -al /var/www/html; ls -al /var/www/html/fog
      total 16
      drwxr-xr-x  4 root     root     4096 Mar 14  2019 .
      drwxr-xr-x 14 root     root     4096 Mar 14  2019 ..
      drwxr-xr-x 10 www-data www-data 4096 Mar 14  2019 fog
      drwxr-xr-x  2 root     root     4096 Mar 14  2019 html
      total 20
      drwxr-xr-x 2 root root  4096 Mar 14  2019 .
      drwxr-xr-x 4 root root  4096 Mar 14  2019 ..
      lrwxrwxrwx 1 root root    13 Mar 14  2019 fog -> /var/www/fog/
      -rw-r--r-- 1 root root 10918 Mar 14  2019 index.html
      lrwxrwxrwx 1 root root 13 Mar 14  2019 /var/www/html/fog -> /var/www/fog/ 
      

      @Sebastian-Roth said in LDAP Plugin install:

      ls -al /var/www; ls -al /var/www/html; ls -al /var/www/html/fo

      posted in General
      S
      stuhad
    • RE: LDAP Plugin install

      Sorry we are running Ubuntu 18.04.4 LTS

      Under Fog Configuration > Fog Version Information it says we’re running the latest stable version: 1.5.7

      But then it states under Kernel Versions:
      DefaultMember Fog Version: (1.5.5)

      and the bottom right hand corner of the GUI states: 1.5.5

      bdb77a4d-a863-457c-9313-6ec089ec4d69-image.png

      posted in General
      S
      stuhad
    • RE: LDAP Plugin install

      Thanks for the quick response guys, and sorry about the late reply.

      Glad that I installed the correct php plugin, I’ve restarted the fog server a couple of times after installing as well.

      Based on Kiweegie’s example I’ve changed the Search scope to Subtree and below, but unfortunately this doesn’t seem to have fixed the issue.

      How does the LDAP plugin handle spaces in the DN search list? for example:
      Search Base DN: ou=fog users,dc=company,dc=com,dc=au

      Here’s our (edited for privacy) config for one of our DCs

      LDAP connection name: dc1
      LDAP Server Address: IP Address (is an IP ok?)
      LDAP Server Port: 389
      Use Group Matching: ticked
      Search Base DN: ou=fog users,dc=company,dc=com,dc=au
      Group Search DN: ou=fog users,dc=company,dc=com,dc=au
      Admin group: cn=fog admins,ou=fog users,dc=company,dc=com,dc=au
      Mobile group: cn=fog admins,ou=fog users,dc=company,dc=com,dc=au
      User Name Attribute: sAMAccountName
      Group Member Attribute: member
      Search Scope: Subtree and below
      Bind DN: cn=ldapadmin,ou=services,dc=company,dc=com,dc=au
      Bind password: added in plaintext

      posted in General
      S
      stuhad
    • LDAP Plugin install

      Hi,
      I’ve tried installing the LDAP plugin on our Fog Server (v1.5.7), but not sure what I’ve done wrong.

      I’ve installed php-ldap, restarted the Fog server, confirmed the php module is loaded. Installed the LDAP plugin.

      Configured a new LDAP server, with what I believe to be the correct settings for our Active Directory domain controller, but I’m not able to login to Fog with any LDAP credentials.

      I’m not really sure where to go looking for logs, I’ve grep’d /var/log/apache2/error.log and I see this error:

      [Wed Feb 05 04:15:40.799757 2020] [proxy_fcgi:error] [pid 3604] [client 172.16.32.102:31678] AH01071: Got error 'PHP message: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/fog/lib/fog/fogpage.class.php on line 832\n', referer: http://172.16.17.5/fog/management/index.php?node=ldap&sub=list
      

      Any suggestions on how to troubleshoot further?

      Thanks heaps,

      posted in General
      S
      stuhad