فهرست منبع

update Adldap2/Adldap2

CauseFX 5 سال پیش
والد
کامیت
9752c1abd8

+ 5 - 5
api/composer.lock

@@ -8,16 +8,16 @@
     "packages": [
         {
             "name": "adldap2/adldap2",
-            "version": "v10.3.1",
+            "version": "v10.3.3",
             "source": {
                 "type": "git",
                 "url": "https://github.com/Adldap2/Adldap2.git",
-                "reference": "936a4e2eb925d005198f716a75bb78068c4de94d"
+                "reference": "c2a8f72455d3438377d955fc0f4b9ed836b47463"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/Adldap2/Adldap2/zipball/936a4e2eb925d005198f716a75bb78068c4de94d",
-                "reference": "936a4e2eb925d005198f716a75bb78068c4de94d",
+                "url": "https://api.github.com/repos/Adldap2/Adldap2/zipball/c2a8f72455d3438377d955fc0f4b9ed836b47463",
+                "reference": "c2a8f72455d3438377d955fc0f4b9ed836b47463",
                 "shasum": ""
             },
             "require": {
@@ -69,7 +69,7 @@
                 "issues": "https://github.com/Adldap2/Adldap2/issues",
                 "source": "https://github.com/Adldap2/Adldap2"
             },
-            "time": "2020-09-09T12:55:51+00:00"
+            "time": "2021-08-09T15:22:35+00:00"
         },
         {
             "name": "bogstag/oauth2-trakt",

+ 2 - 2
api/vendor/adldap2/adldap2/readme.md

@@ -9,12 +9,12 @@
 <p align="center">
     <strong>
         <a href="https://ldaprecord.com">LdapRecord</a> is the successor to Adldap2 - and comes with a ton of new features.
-    </strong> </br> Adldap2 will continue to be supported with bug fixes, but will not receive new features.
+    </strong> </br> Adldap2 will continue to be supported with bug fixes, <i>but will not receive new features.</i>
 </p>
 
 <p align="center">
  <strong>
- <a href="https://stevebauman.ca/posts/why-ldap-record/">Read Why</a>
+ <a href="https://stevebauman.ca/why-ldap-record/">Read Why</a>
  </strong>
 </p>
 

+ 2 - 4
api/vendor/adldap2/adldap2/src/Adldap.php

@@ -153,10 +153,8 @@ class Adldap implements AdldapInterface
     public function __call($method, $parameters)
     {
         $provider = $this->getDefaultProvider();
-
-        if (!$provider->getConnection()->isBound()) {
-            // We'll make sure we have a bound connection before
-            // allowing dynamic calls on the default provider.
+        
+        if (! $provider->getConnection()->isBound()) {
             $provider->connect();
         }
 

+ 3 - 3
api/vendor/adldap2/adldap2/src/Connections/ConnectionInterface.php

@@ -120,7 +120,7 @@ interface ConnectionInterface
      *
      * @link http://php.net/manual/en/function.ldap-get-entries.php
      *
-     * @param $searchResult
+     * @param resource $searchResult
      *
      * @return mixed
      */
@@ -131,7 +131,7 @@ interface ConnectionInterface
      *
      * @link http://php.net/manual/en/function.ldap-count-entries.php
      *
-     * @param $searchResult
+     * @param resource $searchResult
      *
      * @return int
      */
@@ -155,7 +155,7 @@ interface ConnectionInterface
      *
      * @link http://php.net/manual/en/function.ldap-first-entry.php
      *
-     * @param $searchResult
+     * @param resource $searchResult
      *
      * @return mixed
      */

+ 24 - 26
api/vendor/adldap2/adldap2/src/Query/Builder.php

@@ -509,16 +509,15 @@ class Builder
         do {
             $this->connection->controlPagedResult($perPage, $isCritical, $cookie);
 
-            // Run the search.
-            $resource = $this->run($filter);
+            if (! $resource = $this->run($filter)) {
+                break;
+            }
 
-            if ($resource) {
-                // If we have been given a valid resource, we will retrieve the next
-                // pagination cookie to send for our next pagination request.
-                $this->connection->controlPagedResultResponse($resource, $cookie);
+            // If we have been given a valid resource, we will retrieve the next
+            // pagination cookie to send for our next pagination request.
+            $this->connection->controlPagedResultResponse($resource, $cookie);
 
-                $pages[] = $this->parse($resource);
-            }
+            $pages[] = $this->parse($resource);
         } while (!empty($cookie));
 
         // Reset paged result on the current connection. We won't pass in the current $perPage
@@ -559,23 +558,22 @@ class Builder
             // Update the server controls.
             $this->connection->setOption(LDAP_OPT_SERVER_CONTROLS, $controls);
 
-            // Run the search.
-            $resource = $this->run($filter);
+            if (! $resource = $this->run($filter)) {
+                break;
+            }
 
-            if ($resource) {
-                $errorCode = $dn = $errorMessage = $refs = null;
+            $errorCode = $dn = $errorMessage = $refs = null;
 
-                // Update the server controls with the servers response.
-                $this->connection->parseResult($resource, $errorCode, $dn, $errorMessage, $refs, $controls);
+            // Update the server controls with the servers response.
+            $this->connection->parseResult($resource, $errorCode, $dn, $errorMessage, $refs, $controls);
 
-                $pages[] = $this->parse($resource);
+            $pages[] = $this->parse($resource);
 
-                // Reset paged result on the current connection. We won't pass in the current $perPage
-                // parameter since we want to reset the page size to the default '1000'. Sending '0'
-                // eliminates any further opportunity for running queries in the same request,
-                // even though that is supposed to be the correct usage.
-                $controls[LDAP_CONTROL_PAGEDRESULTS]['value']['size'] = $perPage;
-            }
+            // Reset paged result on the current connection. We won't pass in the current $perPage
+            // parameter since we want to reset the page size to the default '1000'. Sending '0'
+            // eliminates any further opportunity for running queries in the same request,
+            // even though that is supposed to be the correct usage.
+            $controls[LDAP_CONTROL_PAGEDRESULTS]['value']['size'] = $perPage;
         } while (!empty($controls[LDAP_CONTROL_PAGEDRESULTS]['value']['cookie']));
 
         // After running the query, we will clear the LDAP server controls. This
@@ -595,13 +593,13 @@ class Builder
      */
     protected function parse($resource)
     {
-        // Normalize entries. Get entries returns false on failure.
-        // We'll always want an array in this situation.
-        $entries = $this->connection->getEntries($resource) ?: [];
-
-        // Free up memory.
         if (is_resource($resource)) {
+            $entries = $this->connection->getEntries($resource);
+            
+            // Free up memory.
             $this->connection->freeResult($resource);
+        } else {
+            $entries = [];
         }
 
         return $entries;

+ 5 - 5
api/vendor/composer/InstalledVersions.php

@@ -29,7 +29,7 @@ private static $installed = array (
     'aliases' => 
     array (
     ),
-    'reference' => '414dc4c37d9f1ea1739e52365c87922321a4f984',
+    'reference' => '7bb47ec76fe2d84d5bb6e4102d47337ceb00fcec',
     'name' => '__root__',
   ),
   'versions' => 
@@ -41,16 +41,16 @@ private static $installed = array (
       'aliases' => 
       array (
       ),
-      'reference' => '414dc4c37d9f1ea1739e52365c87922321a4f984',
+      'reference' => '7bb47ec76fe2d84d5bb6e4102d47337ceb00fcec',
     ),
     'adldap2/adldap2' => 
     array (
-      'pretty_version' => 'v10.3.1',
-      'version' => '10.3.1.0',
+      'pretty_version' => 'v10.3.3',
+      'version' => '10.3.3.0',
       'aliases' => 
       array (
       ),
-      'reference' => '936a4e2eb925d005198f716a75bb78068c4de94d',
+      'reference' => 'c2a8f72455d3438377d955fc0f4b9ed836b47463',
     ),
     'bogstag/oauth2-trakt' => 
     array (

+ 6 - 6
api/vendor/composer/installed.json

@@ -2,17 +2,17 @@
     "packages": [
         {
             "name": "adldap2/adldap2",
-            "version": "v10.3.1",
-            "version_normalized": "10.3.1.0",
+            "version": "v10.3.3",
+            "version_normalized": "10.3.3.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/Adldap2/Adldap2.git",
-                "reference": "936a4e2eb925d005198f716a75bb78068c4de94d"
+                "reference": "c2a8f72455d3438377d955fc0f4b9ed836b47463"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/Adldap2/Adldap2/zipball/936a4e2eb925d005198f716a75bb78068c4de94d",
-                "reference": "936a4e2eb925d005198f716a75bb78068c4de94d",
+                "url": "https://api.github.com/repos/Adldap2/Adldap2/zipball/c2a8f72455d3438377d955fc0f4b9ed836b47463",
+                "reference": "c2a8f72455d3438377d955fc0f4b9ed836b47463",
                 "shasum": ""
             },
             "require": {
@@ -31,7 +31,7 @@
             "suggest": {
                 "ext-fileinfo": "fileinfo is required when retrieving user encoded thumbnails"
             },
-            "time": "2020-09-09T12:55:51+00:00",
+            "time": "2021-08-09T15:22:35+00:00",
             "type": "library",
             "installation-source": "dist",
             "autoload": {

+ 5 - 5
api/vendor/composer/installed.php

@@ -6,7 +6,7 @@
     'aliases' => 
     array (
     ),
-    'reference' => '414dc4c37d9f1ea1739e52365c87922321a4f984',
+    'reference' => '7bb47ec76fe2d84d5bb6e4102d47337ceb00fcec',
     'name' => '__root__',
   ),
   'versions' => 
@@ -18,16 +18,16 @@
       'aliases' => 
       array (
       ),
-      'reference' => '414dc4c37d9f1ea1739e52365c87922321a4f984',
+      'reference' => '7bb47ec76fe2d84d5bb6e4102d47337ceb00fcec',
     ),
     'adldap2/adldap2' => 
     array (
-      'pretty_version' => 'v10.3.1',
-      'version' => '10.3.1.0',
+      'pretty_version' => 'v10.3.3',
+      'version' => '10.3.3.0',
       'aliases' => 
       array (
       ),
-      'reference' => '936a4e2eb925d005198f716a75bb78068c4de94d',
+      'reference' => 'c2a8f72455d3438377d955fc0f4b9ed836b47463',
     ),
     'bogstag/oauth2-trakt' => 
     array (