<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Apr 23, 2014, at 6:13 AM, Ulrich Fourier &lt;<a href="mailto:ulrich.fourier@rockyourlife.de">ulrich.fourier@rockyourlife.de</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br>thank you so far, I really appreciate your help.<br><br>Ok I'm on Debian Squeeze and I think i need to compile the new version<br>from source.<br>Which version is compatible with squeeze, how can I install them from<br>source?<br></blockquote><div><br></div><div>Hi,</div><div><br></div><div>If you have to ask this, it will probably be challenging. I don’t know anything specific about Squeeze, but in general the same process can be used on any viable platform. The high level overview is to install the dependencies required for our bootstrapping code to run, then run that code which fetches more dependencies, then run Calendar Server.</div><div><br></div><div>We don’t have much in the way of documentation (consider that we are *also* an open source project, but not *only* an open source project - the primary vehicle for Calendar Server doesn’t require much technical documentation), although I did recently make a start on what will hopefully become a complete document, eventually:</div><div><br></div><div><a href="http://trac.calendarserver.org/browser/CalendarServer/trunk/doc/Admin/Guide.rst">http://trac.calendarserver.org/browser/CalendarServer/trunk/doc/Admin/Guide.rst</a></div><div><br></div><div>Note that the above applies to trunk and not any prior release, but you should probably use the <a href="http://trac.calendarserver.org/browser/CalendarServer/tags/release/CalendarServer-5.2">CalendarServer-5.2</a>&nbsp;release since trunk is not stable right now. We don’t have anything like ‘porting instructions’ for various platforms, and in general we rely on the native package managers for those platforms to do the porting work.</div><div><br></div><div>Perhaps you could contact whoever developed the Calendar Server package you’re using now and ask if they can build a newer one. Very recently, Ubuntu Trusty received a Calendar Server 5.2 package, thanks to Rahul Amaran. I’m sure it was no small amount of work :)</div><div><br></div><div>-dre</div><div><br></div><br><blockquote type="cite">I can't find the information on the website.<br><br>Thanks<br>Uli<br><br>On 20.04.14 22:48, Andre LaBranche wrote:<br><blockquote type="cite">Hi,<br><br>loginEnabledAttr isn’t what you want for this purpose. This setting designates an LDAP attribute on the user record that can be checked to determine if a user is allowed to log into Calendar Server; along with loginEnabledValue which allows you to define what value of loginEnabledAttr is interpreted to mean the setting is enabled.<br><br>Also, I’m sorry that I forgot to ask you what version you are using. 2.4 is positively ancient, and after a quick glance I’m not sure that there’s any way to configure 2.4 to do what you want. I heard on the internet that 5.2 was recently packaged for Ubuntu ’Trusty' :)<br><br>In a more modern version of Calendar Server, I think all you need to edit is<br><br>rdnSchema —&gt; users —&gt; mapping —&gt; recordName<br><br>the default value of that setting is ‘uid’, but you can set it to whatever. You might want to be aware of any potential syntax differences between ‘uid’ and your chosen attribute. You can examine this by looking at your LDAP server’s schema. For example, in OS X, you can check in /etc/openldap/schema:<br><br>grep -r "'initials'" -A 10 /etc/openldap/schema<br><br>microsoft.std.schema claims the syntax for this attribute is<br>1.3.6.1.4.1.1466.115.121.1.15, single value, no specification of case matching.<br><br>microsoft.ext.schema has a different definition, which may matter if you’re using that schema.<br><br>According to core.ldif and core.schema, ‘uid’ uses<br>1.3.6.1.4.1.1466.115.121.1.15{256}, and ignores case for equality and substring matches.<br><br>You might also need to check if the LDAP server’s indices for ‘initials’ are similar to the ‘uid’ indices, to make sure the performance and supported search types are the same.<br><br>Cheers,<br>-dre<br><br>On Apr 20, 2014, at 12:26 PM, Ulrich Fourier &lt;<a href="mailto:ulrich.fourier@rockyourlife.de">ulrich.fourier@rockyourlife.de</a>&gt; wrote:<br><br><blockquote type="cite">Hi,<br><br>thanks for your answer, Andre.<br>I think the " 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> &lt;!-- &nbsp;OpenLDAP Directory Service --&gt;<br> &nbsp;&nbsp;&nbsp;&lt;key&gt;DirectoryService&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&lt;dict&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;type&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;twistedcaldav.directory.ldapdirectory.LdapDirectoryService&lt;/string&gt;<br><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;params&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dict&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;cacheTimeout&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;integer&gt;30&lt;/integer&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;realmName&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;Test Realm&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;uri&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;<a href="ldap://localhost:389/&lt;/string&gt;">ldap://localhost:389/&lt;/string&gt;</a><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;tls&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;false/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;tlsCACertFile&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;tlsCACertDir&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;tlsRequireCert&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;demand&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;credentials&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dict&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;initials&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;LDAPUSER&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;password&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;PASSWORD&lt;/string&gt;<br>&lt;/dict&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;authMethod&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;LDAP&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;rdnSchema&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dict&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;base&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;dc=rockyourlife,dc=de&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;guidAttr&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;entryUUID&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;users&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;dict&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;rdn&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;ou=People&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;attr&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;cn&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;emailSuffix&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;filter&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;(objectClass=inetOrgPerson)&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;loginEnabledAttr&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;initials&lt;/string&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;loginEnabledValue&lt;/key&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;true/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/dict&gt;<br><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">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 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 &lt;<a href="mailto:ulrich.fourier@rockyourlife.de">ulrich.fourier@rockyourlife.de</a>&gt; wrote:<br><br><blockquote type="cite">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">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 href="mailto:calendarserver-users@lists.macosforge.org">calendarserver-users@lists.macosforge.org</a><br>https://lists.macosforge.org/mailman/listinfo/calendarserver-users<br></blockquote>_______________________________________________<br>calendarserver-users mailing list<br><a href="mailto:calendarserver-users@lists.macosforge.org">calendarserver-users@lists.macosforge.org</a><br>https://lists.macosforge.org/mailman/listinfo/calendarserver-users<br></blockquote></blockquote></blockquote></blockquote></blockquote></div><br></body></html>