<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    thanks for your answer, Andre.<br>
    I think the "
    <meta charset="utf-8">
    loginEnabledAttr" - option was the one I was looking for, but I have
    the calendarserver in version 2.4 and the settings (caldavd.plist)
    is in the plist format so I needed to convert the loginEnabledAttr
    option now my ldap settings looks like this: <br>
     <small><small><small>&lt;!--  OpenLDAP Directory Service --&gt;<br>
              &lt;key&gt;DirectoryService&lt;/key&gt;<br>
              &lt;dict&gt;<br>
                &lt;key&gt;type&lt;/key&gt;<br>
               
&lt;string&gt;twistedcaldav.directory.ldapdirectory.LdapDirectoryService&lt;/string&gt;<br>
          <br>
                &lt;key&gt;params&lt;/key&gt;<br>
                &lt;dict&gt;<br>
                  &lt;key&gt;cacheTimeout&lt;/key&gt;<br>
                  &lt;integer&gt;30&lt;/integer&gt;<br>
                  &lt;key&gt;realmName&lt;/key&gt;<br>
                  &lt;string&gt;Test Realm&lt;/string&gt;<br>
                  &lt;key&gt;uri&lt;/key&gt;<br>
                  &lt;string&gt;<a class="moz-txt-link-freetext" href="ldap://localhost:389/">ldap://localhost:389/</a>&lt;/string&gt;<br>
                  &lt;key&gt;tls&lt;/key&gt;<br>
                  &lt;false/&gt;<br>
                  &lt;key&gt;tlsCACertFile&lt;/key&gt;<br>
                  &lt;string&gt;&lt;/string&gt;<br>
                  &lt;key&gt;tlsCACertDir&lt;/key&gt;<br>
                  &lt;string&gt;&lt;/string&gt;<br>
                  &lt;key&gt;tlsRequireCert&lt;/key&gt;<br>
                  &lt;string&gt;demand&lt;/string&gt;<br>
                  &lt;key&gt;credentials&lt;/key&gt;<br>
                  &lt;dict&gt;<br>
                    &lt;key&gt;initials&lt;/key&gt;<br>
                    &lt;string&gt;LDAPUSER&lt;/string&gt;<br>
                    &lt;key&gt;password&lt;/key&gt;<br>
                    &lt;string&gt;PASSWORD&lt;/string&gt;<br>
          &lt;/dict&gt;<br>
                  &lt;key&gt;authMethod&lt;/key&gt;<br>
                  &lt;string&gt;LDAP&lt;/string&gt;<br>
                  &lt;key&gt;rdnSchema&lt;/key&gt;<br>
                  &lt;dict&gt;<br>
                    &lt;key&gt;base&lt;/key&gt;<br>
                    &lt;string&gt;dc=rockyourlife,dc=de&lt;/string&gt;<br>
                    &lt;key&gt;guidAttr&lt;/key&gt;<br>
                    &lt;string&gt;entryUUID&lt;/string&gt;<br>
                    &lt;key&gt;users&lt;/key&gt;<br>
                    &lt;dict&gt;<br>
                      &lt;key&gt;rdn&lt;/key&gt;<br>
                      &lt;string&gt;ou=People&lt;/string&gt;<br>
                      &lt;key&gt;attr&lt;/key&gt;<br>
                      &lt;string&gt;cn&lt;/string&gt;<br>
                      &lt;key&gt;emailSuffix&lt;/key&gt;<br>
                      &lt;string&gt;&lt;/string&gt;<br>
                      &lt;key&gt;filter&lt;/key&gt;<br>
                     
          &lt;string&gt;(objectClass=inetOrgPerson)&lt;/string&gt;<br>
                      &lt;key&gt;loginEnabledAttr&lt;/key&gt;<br>
                      &lt;string&gt;initials&lt;/string&gt;<br>
                      &lt;key&gt;loginEnabledValue&lt;/key&gt;<br>
                      &lt;true/&gt;<br>
                    &lt;/dict&gt;<br>
        </small></small></small><br>
    I didn't changed the following group setting etc., because I'm not
    quite sure if I want this feature.<br>
    I reinstalled the server, so that I'm sure there are no changes in
    the source files made by myself. <br>
    Now I'm still getting the LDAP no such Object error message. <br>
    And he logs the wrong filter again: <br>
(&amp;(&amp;(!(objectClass=organizationalUnit))(objectClass=inetOrgPerson))(|(uid=UlrichFourier)(userid=UlrichFourier)))<br>
    <br>
    I don't want him to look at the uid or userid, I want him to compare
    the username with a LDAP field called Initials.<br>
    <br>
    Thank you so far<br>
    Ulrich Fourier<br>
    <br>
    On Thu Apr 17 19:13:54 2014, Andre LaBranche wrote:<br>
    <blockquote type="cite"><br>
      Hi,<br>
      <br>
      It would be advisable to attempt to configure the ldap client for
      your site using caldavd.plist, instead of editing the code. Our
      ldap client is highly configurable / flexible, and so far I
      haven't found any reason to need to edit the source code to adapt
      our ldap client to a wide variety different ldap servers.<br>
      <br>
      You can look at
      <a class="moz-txt-link-freetext" href="http://trac.calendarserver.org/browser/CalendarServer/trunk/twistedcaldav/stdconfig.py">http://trac.calendarserver.org/browser/CalendarServer/trunk/twistedcaldav/stdconfig.py</a>
      under twistedcaldav.directory.ldapdirectory.LdapDirectoryService
      to see all the available settings.<br>
      <br>
      If the change you need cannot be represented using the plist,
      kindly let us know exactly what you're doing so we can consider
      making whatever you are doing configurable.<br>
      <br>
      -dre<br>
      <br>
      On Apr 17, 2014, at 8:18 AM, Ulrich Fourier
      <a class="moz-txt-link-rfc2396E" href="mailto:ulrich.fourier@rockyourlife.de">&lt;ulrich.fourier@rockyourlife.de&gt;</a> wrote:<br>
      <br>
      <blockquote type="cite"><br>
        So i fixed it by editing the source file so that my custom field
        got<br>
        also checked.<br>
        Now I'm working on another error message, which also appeared
        earlier:<br>
        ldap.NO_SUCH_OBJECT: {'desc': 'No such object'}<br>
        <br>
        I tested the request he is sending to the server(the filter and
        the<br>
        attributes) with the phpldapbrowser and got the correct
        response.<br>
        Thanks,<br>
        Ulrich<br>
        <br>
        On 17.04.14 15:09, Ulrich Fourier wrote:<br>
        <blockquote type="cite"><br>
          Hi everyone,<br>
          A simple and stupid question:<br>
          I'm currently working with the calendarserver and a ldap
          server.<br>
          Users should be authenticated with the ldap server, but the
          uid field<br>
          what is used by the calendarserver to look for the right user,
          is used<br>
          for something different in my setup. I have there an integer.
          So how can<br>
          i configure calendarserver to use the 'cn' or any other self
          defined field?<br>
          <br>
          Thank you<br>
          <br>
          Ulrich Fourier<br>
          <br>
          _______________________________________________<br>
          calendarserver-users mailing list<br>
          <a class="moz-txt-link-abbreviated" href="mailto:calendarserver-users@lists.macosforge.org">calendarserver-users@lists.macosforge.org</a><br>
<a class="moz-txt-link-freetext" href="https://lists.macosforge.org/mailman/listinfo/calendarserver-users">https://lists.macosforge.org/mailman/listinfo/calendarserver-users</a><br>
        </blockquote>
        <br>
        _______________________________________________<br>
        calendarserver-users mailing list<br>
        <a class="moz-txt-link-abbreviated" href="mailto:calendarserver-users@lists.macosforge.org">calendarserver-users@lists.macosforge.org</a><br>
<a class="moz-txt-link-freetext" href="https://lists.macosforge.org/mailman/listinfo/calendarserver-users">https://lists.macosforge.org/mailman/listinfo/calendarserver-users</a><br>
      </blockquote>
    </blockquote>
  </body>
</html>