• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Fernando Gietz
    3. Posts
    F
    • Profile
    • Following 0
    • Followers 8
    • Topics 67
    • Posts 554
    • Best 52
    • Controversial 0
    • Groups 1

    Posts made by Fernando Gietz

    • RE: Access Control - hide tabs?

      Hi @lenels2eng ,

      No, you can not hide the tabs. AccessControl plugin only can “hide” the menu, the icon in the top, and submenu entries, the options that are in the left.

      posted in FOG Problems
      F
      Fernando Gietz
    • RE: LDAP authorization with groups in rfc2307bis schema on OpenDirectory

      The LDAP plugin is not prepare to support two or more groups 😞
      To the next version we need to implement the support to two or more groups and the feature to customize the filters.

      posted in General Problems
      F
      Fernando Gietz
    • RE: LDAP authorization with groups in rfc2307bis schema on OpenDirectory

      @Daniel-Miller I think that the change in the implode lines are not necessary. We can try to debug the code to see the value of the variables $grpMemAttr,$filter,$adminGroups:

      $adminGroups = explode(',', $adminGroup);
              $adminGroups = array_map('trim', $adminGroups);
              $filter = sprintf(
                  '(&(|(cn=%s))(%s=%s))', /*<------------ CHANGE THIS*/
                  implode(')(name=', (array)$adminGroups),
                  $grpMemAttr,
                  $this->escape($userDN, null, LDAP_ESCAPE_FILTER)
              );
      //********* DEBUG ********************
              var_dump($grpMemAttr,$filter,$adminGroups);
              exit;
      //************************************
              /**
               * The attribute to get.
               */
              $attr = array($grpMemAttr);
              /**
               * Read in the attributes
               */
              $result = $this->_result($grpSearchDN, $filter, $attr);
              if (false !== $result) {
                  return 2;
              }
              /**
               * If no record is returned then user is not in the
               * admin group. Change the filter and check the mobile
               * group for membership.
               */
              $userGroups = explode(',', $userGroup);
              $userGroups = array_map('trim', $userGroups);
              $filter = sprintf(
                  '(&(|(cn=%s))(%s=%s))', /*<------------ CHANGE THIS*/
                  implode(')(name=', (array)$userGroups),
                  $grpMemAttr,
                  $this->escape($userDN, null, LDAP_ESCAPE_FILTER)
              );
              /**
               * The attribute to get.
               */
              $attr = array($grpMemAttr);
      

      Please paste the output.

      posted in General Problems
      F
      Fernando Gietz
    • RE: LDAP authorization with groups in rfc2307bis schema on OpenDirectory

      I had an issue like this in March, not the same but …

      LDAP Plugin with openLDAP

      The problem was the filter and the work around was a little change in the code. We can try to see where is the problem and make a little change.

      The filter:

      &(|(name=admins))(member=uid=JohnDoe,ou=People,dc=domain,dc=org)
      

      Doesnt work well, but the next one:

      &(|(cn=admins))(member=uid=JohnDoe,ou=People,dc=domain,dc=org)
      

      Works fine.

      I think if we do a little change in the code in line 640 of ldap.class.php:

              $userGroups = explode(',', $userGroup);
              $userGroups = array_map('trim', $userGroups);
              $filter = sprintf(
                  '(&(|(name=%s))(%s=%s))',
                  implode(')(name=', (array)$userGroups),
                  $grpMemAttr,
                  $this->escape($userDN, null, LDAP_ESCAPE_FILTER)
              );
              /**
               * The attribute to get.
               */
              $attr = array($grpMemAttr);
              /**
               * Execute the ldap query
               */
              $result = $this->_result($grpSearchDN, $filter, $attr);
      

      To:

              $userGroups = explode(',', $userGroup);
              $userGroups = array_map('trim', $userGroups);
              $filter = sprintf(
                  '(&(|(cn=%s))(%s=%s))', /*<------------ CHANGE THIS*/
                  implode(')(name=', (array)$userGroups),
                  $grpMemAttr,
                  $this->escape($userDN, null, LDAP_ESCAPE_FILTER)
              );
              /**
               * The attribute to get.
               */
              $attr = array($grpMemAttr);
              /**
               * Execute the ldap query
               */
              $result = $this->_result($grpSearchDN, $filter, $attr);
      

      Works?

      posted in General Problems
      F
      Fernando Gietz
    • RE: Unable to change multicast nic.

      I suppose that the multicast workrd to you well in the previous FOG version, no?

      posted in Bug Reports
      F
      Fernando Gietz
    • RE: Unable to change multicast nic.

      In each node definition you can config the network interface, maybe there?

      posted in Bug Reports
      F
      Fernando Gietz
    • RE: Unable to change multicast nic.

      I don´t use storage nodes in my environmet but in the FOG settings -> Muklticast Settings -> UDPCAST INTERFACE you can config the network interface to send the multicast tasks.

      I don´t know if this configuration is global, the same for all storage nodes

      posted in Bug Reports
      F
      Fernando Gietz
    • RE: FOG client under Ubuntu 18.04. Authentication ERROR: Could not authenticate

      @Sebastian-Roth Can you send me the zazzles files? the link of the previous post is obsolete

      posted in Bug Reports
      F
      Fernando Gietz
    • RE: Multi-Task Problem

      I will not drop the msShutdown and msMaxwait columns (I don´t know if in this version are neccesary), I will only add the new columns. Try with this:

      ALTER TABLE multicastSessions
      ADD COLUMN msAnon3 VARCHAR(250) AFTER msNFSGroupID;
      
      ALTER TABLE multicastSessions
      ADD COLUMN msAnon4 VARCHAR(250) AFTER msAnon3;
      
      posted in FOG Problems
      F
      Fernando Gietz
    • FOG client under Ubuntu 18.04. Authentication ERROR: Could not authenticate

      Hi,
      I am updating my Ubuntu 18.04 image and I see that the FOG client is not working fine.

      OS: Ubuntu 18.04
      FOG Client: 0.11.16

      13/06/2019 17:50 Middleware::Communication URL: http://xxxx.eus/fog/management/index.php?sub=requestClientInfo&configure&newService&json
       13/06/2019 17:50 Middleware::Response Success
       13/06/2019 17:50 Middleware::Communication URL: http://xxxx.eus/fog/management/index.php?sub=requestClientInfo&mac=94:57:A5:ED:DE:E1&newService&json
       13/06/2019 17:50 Middleware::Authentication Waiting for authentication timeout to pass
       13/06/2019 17:50 Middleware::Communication Download: http://xxxx.eus/fog/management/other/ssl/srvpublic.crt
       13/06/2019 17:50 Middleware::Authentication ERROR: Could not authenticate
       13/06/2019 17:50 Middleware::Authentication ERROR: Value cannot be null.
      Parameter name: authority
       13/06/2019 17:50 Middleware::Response Success
       13/06/2019 17:50 Middleware::Communication URL: http://xxxx.eus/fog/service/getversion.php?clientver&newService&json
       13/06/2019 17:50 Middleware::Communication URL: http://xxxx.eus/fog/service/getversion.php?newService&json
      
       13/06/2019 17:50 Service Creating user agent cache
       13/06/2019 17:50 Middleware::Response ERROR: Unable to get subsection
       13/06/2019 17:50 Middleware::Response ERROR: Object reference not set to an instance of an object
       13/06/2019 17:50 Middleware::Response ERROR: Unable to get subsection
       13/06/2019 17:50 Middleware::Response ERROR: Object reference not set to an instance of an object
       13/06/2019 17:50 Middleware::Response ERROR: Unable to get subsection
       13/06/2019 17:50 Middleware::Response ERROR: Object reference not set to an instance of an object
      

      The mono version in the client is the 4.

      # dpkg -l | grep "ii  mono"
      ii  mono-4.0-gac                                                     4.6.2.7+dfsg-1ubuntu1                       all          Mono GAC tool (for CLI 4.0)
      ii  mono-4.0-service                                                 4.6.2.7+dfsg-1ubuntu1                       all          Mono service manager for CLI 4.0
      ii  mono-complete                                                    4.6.2.7+dfsg-1ubuntu1                       amd64        complete Mono runtime, development tools and all libraries
      ii  mono-csharp-shell                                                4.6.2.7+dfsg-1ubuntu1                       all          interactive C# shell
      ii  mono-devel                                                       4.6.2.7+dfsg-1ubuntu1                       all          Mono development tools
      ii  mono-gac                                                         4.6.2.7+dfsg-1ubuntu1                       all          Mono GAC tool
      ii  mono-jay                                                         4.6.2.7+dfsg-1ubuntu1                       amd64        LALR(1) parser generator oriented to Java/CLI
      ii  mono-mcs                                                         4.6.2.7+dfsg-1ubuntu1                       all          Mono C# 2.0 / 3.0 / 4.0 / 5.0  compiler for CLI 2.0 / 4.0 / 4.5
      ii  mono-runtime                                                     4.6.2.7+dfsg-1ubuntu1                       amd64        Mono runtime - default version
      ii  mono-runtime-common                                              4.6.2.7+dfsg-1ubuntu1                       amd64        Mono runtime - common files
      ii  mono-runtime-sgen                                                4.6.2.7+dfsg-1ubuntu1                       amd64        Mono runtime - SGen
      ii  mono-utils                                                       4.6.2.7+dfsg-1ubuntu1                       amd64        Mono utilities
      ii  mono-xbuild                                                      4.6.2.7+dfsg-1ubuntu1                       all          MSBuild-compatible build system for Mono
      ii  mono-xsp4                                                        4.2-2.1                                     all          simple web server to run ASP.NET 4.0 applications
      ii  mono-xsp4-base                                                   4.2-2.1                                     all          base libraries for XSP 4.0
      ii  monodoc-base                                                     4.6.2.7+dfsg-1ubuntu1                       all          shared MonoDoc binaries
      ii  monodoc-http                                                     4.2-2.2                                     all          MonoDoc http based viewer
      ii  monodoc-manual                                                   4.6.2.7+dfsg-1ubuntu1                       all          compiled XML documentation from the Mono project
      
      

      Any ideas?

      posted in Bug Reports linux client
      F
      Fernando Gietz
    • RE: Multi-Task Problem

      Your database is … strange!!! XD

      MariaDB [fog]> desc multicastSessions;
      +--------------------+--------------+------+-----+---------+----------------+
      | Field              | Type         | Null | Key | Default | Extra          |
      +--------------------+--------------+------+-----+---------+----------------+
      | msID               | int(11)      | NO   | PRI | NULL    | auto_increment |
      | msName             | varchar(250) | NO   |     | NULL    |                |
      | msBasePort         | int(11)      | NO   |     | NULL    |                |
      | msLogPath          | longtext     | NO   |     | NULL    |                |
      | msImage            | longtext     | NO   |     | NULL    |                |
      | msClients          | int(11)      | NO   |     | NULL    |                |
      | msSessClients      | int(11)      | NO   |     | NULL    |                |
      | msInterface        | varchar(250) | NO   |     | NULL    |                |
      | msStartDateTime    | datetime     | NO   |     | NULL    |                |
      | msPercent          | int(11)      | NO   |     | NULL    |                |
      | msState            | int(11)      | NO   |     | NULL    |                |
      | msCompleteDateTime | datetime     | NO   |     | NULL    |                |
      | msIsDD             | int(11)      | NO   |     | NULL    |                |
      | msNFSGroupID       | int(11)      | NO   | MUL | NULL    |                |
      | msAnon3            | varchar(250) | NO   |     | NULL    |                |
      | msAnon4            | varchar(250) | NO   |     | NULL    |                |
      | msAnon5            | varchar(250) | NO   |     | NULL    |                |
      +--------------------+--------------+------+-----+---------+----------------+
      17 rows in set (0.012 sec)
      
      posted in FOG Problems
      F
      Fernando Gietz
    • RE: Multi-Task Problem

      Hi @Joe-Gill
      And the msAnon3 column, does exist in the database?

      #desc multicastSessions;
      
      posted in FOG Problems
      F
      Fernando Gietz
    • RE: Multi-Task Problem
      • /var/log/httpd/ssl_error_log
      • /var/log/httpd/error_log

      Try to see if when tou create a multicast tasks appears any error.

      posted in FOG Problems
      F
      Fernando Gietz
    • RE: Multi-Task Problem

      The problem is that the multicastSession is not created ( I am very clever boy XD) but we dont know the reason of this behaviour.

      Any errors in the php log?

      posted in FOG Problems
      F
      Fernando Gietz
    • RE: Multi-Task Problem

      And in the database appears?
      See the multicastSessions and MulticastSessionAssoc

      If you go to the Active Tasks page, the multicast tasks appears?

      posted in FOG Problems
      F
      Fernando Gietz
    • RE: Multi-Task Problem

      And the log of the multicast tasks?
      /opt/fog/log/multicast.log.udpcastxxxx
      Where xxxx is the ID of the multicast tasks.

      posted in FOG Problems
      F
      Fernando Gietz
    • RE: New Plugin: Host Status plugin (1.5.6 FOG version)

      @fry_p You can change both, line 110 and 114. If all works fine, when you are in FOS, must return 111 code. If you are under windows, must return 0.

      which value return when you are under windows? 0 or 6?
      If the value is 6, which OS are you using (Windows 7,8,10)?

      Another oddity is that the built in host pinging on the host list page is working properly and even detecting these are windows clients.

      The hostStatus plugin uses the same code that FOGHostPing daemon, if the daemon detects fine the status, there is something that doesn´t work correctly.

      You have 1500 hosts, the daemon launchs one ping per second then the status is updated every 25 minutes, in your case the status info is not very reliable. In my opinion is better disable this daemon.

      posted in General
      F
      Fernando Gietz
    • RE: New Plugin: Host Status plugin (1.5.6 FOG version)

      Sorry!!! A little mistake in the code XD is not $ping, is $val

      Change the line:

       printf($strtoupdate, 'fos', 'cogs', 'green', 'FOS');
      

      To:

       printf($strtoupdate, 'fos', 'cogs', 'green', $val);
      
      posted in General
      F
      Fernando Gietz
    • RE: New Plugin: Host Status plugin (1.5.6 FOG version)

      For your first suggestion of modifying the PHP file with the $ping variable in the place of “Unknown”. When I hovered over the red exclamation after doing that, nothing appeared.

      The $ping value is null. Lets go to do another little test. Send a inventory or download task over the computer, when the computer is running the FOS, go to the host edit page and, return anything? Must to return 111 value.

      For the second suggestion of a tcpdump, there is quite a bit of chatter on that port for hosts all over our district. Is it possible fog is using this port for other purposes? I ran it for a 30 seconds and opened the host page and saw a lot of traffic, but none from the host I was working with.

      No, this port is used only for detect the status. If you have enabled the FOGPingHost daemon, you must to see all attemps of the server to detect the status of all computers that are in FOG (more or less 1 attemp by second). If you see this traffic, then the problem is in the computer or in the net (firewall, …)
      How many computers are in your server? When you list or search any computers, which status appears in the result list? All Unkkown?

      posted in General
      F
      Fernando Gietz
    • RE: New Plugin: Host Status plugin (1.5.6 FOG version)

      You can test if the servers tries to create the socket with the tcpdump command:

      # tcpdump -i ens192 port 445
      tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
      listening on ens192, link-type EN10MB (Ethernet), capture size 262144 bytes
      
      16:15:06.613891 IP MyFOGServerNAME.50146 > MyClientName.microsoft-ds: Flags [S], seq 2877078362, win 29200, options [mss 1460,sackOK,TS val 949852974 ecr 0,nop,wscale 7], length 0
      16:15:06.614212 IP MyClientName.microsoft-ds > MyFOGServerNAME.50146: Flags [S.], seq 3947598439, ack 2877078363, win 8192, options [mss 1460,nop,wscale 8,sackOK,TS val 7027147 ecr 949852974], length 0
      16:15:06.614236 IP MyFOGServerNAME.50146 > MyClientName.microsoft-ds: Flags [.], ack 1, win 229, options [nop,nop,TS val 949852974 ecr 7027147], length 0
      16:15:06.614291 IP MyFOGServerNAME.50146 > MyClientName.microsoft-ds: Flags [F.], seq 1, ack 1, win 229, options [nop,nop,TS val 949852974 ecr 7027147], length 0
      16:15:06.614585 IP MyClientName.microsoft-ds > MyFOGServerNAME.50146: Flags [.], ack 2, win 2081, options [nop,nop,TS val 7027148 ecr 949852974], length 0
      16:15:06.614636 IP MyClientName.microsoft-ds > MyFOGServerNAME.50146: Flags [R.], seq 1, ack 2, win 0, length 0
      
      
      posted in General
      F
      Fernando Gietz
    • 1
    • 2
    • 3
    • 4
    • 5
    • 27
    • 28
    • 3 / 28