title: TYPO3: Map fe_users to a parent record of fe_users
body: <p>In a custom extension I extend the fe_users table with a field "manager". This fields holds the boss of the user.</p>
  
  <p>Now I want to save the value of the field "tx_igldapssoauth_dn" (which comes from <a href="https://extensions.typo3.org/extension/ig_ldap_sso_auth/" rel="nofollow noreferrer">ext:ig_ldap_sso_auth</a>) of the parent record in the field "manager" and not the "uid".</p>
  
  <p>My model looks like that:</p>
  
  <pre><code>&lt;?php
  namespace Vendor\Extension\Domain\Model;
  
  class FrontendUser extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
  {
  
      /**
       * DN of the users manager
       *
       * @var Vendor\Extension\Domain\Model\FrontendUser
       * @lazy
       */
      protected $manager = '';
  
      /**
       * Returns the manager
       *
       * @return Vendor\Extension\Domain\Model\FrontendUser $manager
       */
      public function getManager()
      {
          return $this-&gt;manager;
      }
  
      /**
       * Sets the manager
       *
       * @param Vendor\Extension\Domain\Model\FrontendUser $manager
       * @return void
       */
      public function setManager($manager)
      {
          $this-&gt;manager = $manager;
      }
  }
  </code></pre>
  
  <p>TCA:</p>
  
  <pre><code>'manager' =&gt; [
      'exclude' =&gt; true,
      'label' =&gt; 'LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xlf:tx_myext_feusers_users.manager',
      'config' =&gt; [
          'type' =&gt; 'select',
          'renderType' =&gt; 'selectSingle',
          'foreign_table' =&gt; 'fe_users',
      ],
  ],
  </code></pre>
  
  <p>This works fine and returns me the parent record. BUT this saves the "uid" of the parent record in the column "manager" and not the value of the field "tx_igldapssoauth_dn".</p>
  
  <p>So what needs to be configured or changed in order to save the value of "tx_igldapssoauth_dn" in the field "manager" and not the "uid"?</p>
  
  <p><strong>EDIT (more detailed info)</strong></p>
  
  <p>The value for the field "manager" is filled by the LDAP (it is the DN of the parent user, the boss) as well as "tx_igldapssoauth_dn", which is the DN of the user itself. So "tx_igldapssoauth_dn" is a unique value and can be compared with the uid of the entry.</p>
  
  <p>My problem is not saving the needed value to the field "manager" but connecting the field "manger" with the field "tx_igldapssoauth_dn".</p>
  
  <p>So if the field "manager" on a record holds the value <code>CN=Firstname Lastname,OU=Department,DC=example,DC=net</code> it should connect to the record which has the same value (<code>CN=Firstname Lastname,OU=Department,DC=example,DC=net</code>) in the field "tx_igldapssoauth_dn".</p>