title: adding a LDAP attribute with PHP
body: <p>can't figure out what is the right syntax to add an additional attributes to a LDAP entry. When authenticating i get this array:</p>
  
  <pre><code>    Array
  (
      [0] =&gt; Array
          (
              [cn] =&gt; Array
                  (
                      [0] =&gt; Vit Kos
                  )
  
              [shortname] =&gt; Array
                  (
                      [0] =&gt; vit.kos
                  )
  
              [uid] =&gt; Array
                  (
                      [0] =&gt; vit.kos
                  )
  
              [mail] =&gt; Array
                  (
                      [0] =&gt; vit.kos@email.com
                  )
  
              [objectclass] =&gt; Array
                  (
                      [0] =&gt; top
                      [1] =&gt; person
                      [2] =&gt; organizationalPerson
                      [3] =&gt; inetOrgPerson
                      [4] =&gt; dominoPerson
                  )
  
              [givenname] =&gt; Array
                  (
                      [0] =&gt; Vit
                  )
  
              [userpassword] =&gt; Array
                  (
                      [0] =&gt; password here
                  )
  
              [sn] =&gt; Array
                  (
                      [0] =&gt; Kos
                  )
  
              [localadmin] =&gt; Array
                  (
                      [0] =&gt; CN=#SysHQAdmin
                  )
  
              [mailaddress] =&gt; Array
                  (
                      [0] =&gt; Vit.Kos@email.com
                  )
  
              [maildomain] =&gt; Array
                  (
                      [0] =&gt; EMAIL
                  )           
  
  
              [dn] =&gt; CN=Vit Kos,OU=###,O=EMAIL
          )
  
  )
  </code></pre>
  
  <p>need to get an additional attribute member to be like</p>
  
  <pre><code>Array (
          [uid] =&gt; Array
              (
                  [0] =&gt; vit.kos
              )
  
          [mail] =&gt; Array
              (
                  [0] =&gt; vit.kos@email.com
              )
         [member] =&gt; Array
              (
                  [0] =&gt; MEMBER HERE
              )
  )
  </code></pre>
  
  <p>Never worked with LDAP before so it's quite confusing for me. Thanks for the answers.</p>