<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><!-- OpenLDAP Directory Service --><br>
<key>DirectoryService</key><br>
<dict><br>
<key>type</key><br>
<string>twistedcaldav.directory.ldapdirectory.LdapDirectoryService</string><br>
<br>
<key>params</key><br>
<dict><br>
<key>cacheTimeout</key><br>
<integer>30</integer><br>
<key>realmName</key><br>
<string>Test Realm</string><br>
<key>uri</key><br>
<string><a class="moz-txt-link-freetext" href="ldap://localhost:389/">ldap://localhost:389/</a></string><br>
<key>tls</key><br>
<false/><br>
<key>tlsCACertFile</key><br>
<string></string><br>
<key>tlsCACertDir</key><br>
<string></string><br>
<key>tlsRequireCert</key><br>
<string>demand</string><br>
<key>credentials</key><br>
<dict><br>
<key>initials</key><br>
<string>LDAPUSER</string><br>
<key>password</key><br>
<string>PASSWORD</string><br>
</dict><br>
<key>authMethod</key><br>
<string>LDAP</string><br>
<key>rdnSchema</key><br>
<dict><br>
<key>base</key><br>
<string>dc=rockyourlife,dc=de</string><br>
<key>guidAttr</key><br>
<string>entryUUID</string><br>
<key>users</key><br>
<dict><br>
<key>rdn</key><br>
<string>ou=People</string><br>
<key>attr</key><br>
<string>cn</string><br>
<key>emailSuffix</key><br>
<string></string><br>
<key>filter</key><br>
<string>(objectClass=inetOrgPerson)</string><br>
<key>loginEnabledAttr</key><br>
<string>initials</string><br>
<key>loginEnabledValue</key><br>
<true/><br>
</dict><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>
(&(&(!(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"><ulrich.fourier@rockyourlife.de></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>