<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.2.4</td>
</tr>
</tbody>
</table>
<p dir="auto">I got this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int(22519) // error_reporting
string(1) &quot;1&quot;  // display_errors

                                                                                                           
  [Symfony\Component\Debug\Exception\UndefinedMethodException]                                             
  Attempted to call an undefined method named &quot;first&quot; of class &quot;Doctrine\ORM\Tools\Pagination\Paginator&quot;.  
                                                                                                           

worker:run [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] &lt;command&gt;

root@live:/var/www# echo $?
0"><pre class="notranslate"><code class="notranslate">int(22519) // error_reporting
string(1) "1"  // display_errors

                                                                                                           
  [Symfony\Component\Debug\Exception\UndefinedMethodException]                                             
  Attempted to call an undefined method named "first" of class "Doctrine\ORM\Tools\Pagination\Paginator".  
                                                                                                           

worker:run [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] &lt;command&gt;

root@live:/var/www# echo $?
0
</code></pre></div>
<p dir="auto">Yes Paginator has no ::first method.<br>
But I expected Symfony to have an exit code different than zero.</p>
<p dir="auto">Reproducable:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="protected function execute(InputInterface $input, OutputInterface $output)
{
        $nope-&gt;getCarter();
}"><pre class="notranslate"><code class="notranslate">protected function execute(InputInterface $input, OutputInterface $output)
{
        $nope-&gt;getCarter();
}
</code></pre></div>
<p dir="auto">Exit code is still zero.</p>
<p dir="auto">Currently, the Ldap user provider is only able to fetch basic user information.</p>
<p dir="auto">In the medium/long term (Symfony 3.2+), we want to be able to support user roles (Role-Based Access Control – RBAC) stored in an LDAP server.</p>
<p dir="auto">We definitely want to do this using a standard way, in order to be able to integrate with popular LDAP-based identity providers.</p>
<p dir="auto">This issue will be used in order to track the discussion about the future implementation, and the improvement which need to be done to the <code class="notranslate">LdapUserProvider</code>. The topmost post (this one), will recap the content of the discussion.</p>