1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-11-13 12:55:06 -05:00

LDAP: comment iCal code

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@463 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-03-19 11:42:28 +00:00
parent 119f224de6
commit 4dddf4a50f

View File

@ -696,6 +696,7 @@ public class LdapConnection extends AbstractConnection {
if (needObjectClasses) { if (needObjectClasses) {
ldapPerson.put("objectClass", PERSON_OBJECT_CLASSES); ldapPerson.put("objectClass", PERSON_OBJECT_CLASSES);
} }
// iCal: replace current user alias with login name
if (session.getAlias().equals(ldapPerson.get("uid"))) { if (session.getAlias().equals(ldapPerson.get("uid"))) {
if (returningAttributes.contains("uidnumber")) { if (returningAttributes.contains("uidnumber")) {
ldapPerson.put("uidnumber", userName); ldapPerson.put("uidnumber", userName);