Ericsson / exchangecalendar

Exchange 2007/2010/2013 Calendar, Tasks, Contacts and GAL Provider.
GNU General Public License v3.0
925 stars 112 forks source link

Addressbook using Alias instead of main Address if Alias exists. #142

Open 5nafu opened 9 years ago

5nafu commented 9 years ago

I am using Version 3.3.1 of ExchangeCalendar. In our organization we have some Accounts with Aliases. Unfortunalty the autocompletion for Emailadresses uses the first Alias (proxyAddress) instead of the main Mail address. From the Log:

<t:Resolution 
        xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" 
        xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" 
        xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" 
        xmlns:a1="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006" 
        xmlns:a2="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <t:Mailbox>
        <t:Name>Correct-User</t:Name>
        <t:EmailAddress>Correct-User@domain.invalid</t:EmailAddress>
        <t:RoutingType>SMTP</t:RoutingType>
        <t:MailboxType>PublicDL</t:MailboxType>
    </t:Mailbox>
    <t:Contact>
        <t:DisplayName>Correct-User</t:DisplayName>
        <t:EmailAddresses>
            <t:Entry Key="EmailAddress1">smtp:alias1@domain.invalid</t:Entry>
            <t:Entry Key="EmailAddress2">smtp:alias2@domain.invalid</t:Entry>
            <t:Entry Key="EmailAddress3">smtp:alias3@domain.invalid</t:Entry>
        </t:EmailAddresses>
        <t:ContactSource>ActiveDirectory</t:ContactSource>
        <t:Alias>Correct-User</t:Alias>
        <t:DirectoryId>&lt;GUID=6324ae0e-f01a-4a6f-bcf7-eafab8a082c0&gt;</t:DirectoryId>
    </t:Contact>
</t:Resolution>

<t:Mailbox 
        xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" 
        xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" 
        xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" 
        xmlns:a1="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006" 
        xmlns:a2="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <t:Name>Correct-User</t:Name>
    <t:EmailAddress>Correct-User@domain.invalid</t:EmailAddress>
    <t:RoutingType>SMTP</t:RoutingType>
    <t:MailboxType>PublicDL</t:MailboxType>
</t:Mailbox>

<t:Contact 
        xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" 
        xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" 
        xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" 
        xmlns:a1="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006" 
        xmlns:a2="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <t:DisplayName>Correct-User</t:DisplayName>
    <t:EmailAddresses>
        <t:Entry Key="EmailAddress1">smtp:alias1@domain.invalid</t:Entry>
        <t:Entry Key="EmailAddress2">smtp:alias2@domain.invalid</t:Entry>
        <t:Entry Key="EmailAddress3">smtp:alias3@domain.invalid</t:Entry>
    </t:EmailAddresses>
    <t:ContactSource>ActiveDirectory</t:ContactSource>
    <t:Alias>Correct-User</t:Alias>
    <t:DirectoryId>&lt;GUID=6324ae0e-f01a-4a6f-bcf7-eafab8a082c0&gt;</t:DirectoryId>
    </t:Contact>

The corresponding LDIF is:

version: 1
dn: CN=Correct-User,OU=Verteiler,DC=domain,DC=invalid
objectClass: top
objectClass: group
cn: Correct-User
displayName: Correct-User
distinguishedName: CN=Correct-User,OU=Verteiler,DC=domain,DC=invalid
dSCorePropagationData: 20140731074808.0Z
dSCorePropagationData: 20131203090221.0Z
dSCorePropagationData: 16010101000417.0Z
gidNumber: 41384
groupType: -2147483640
instanceType: 0
mail: Correct-User@domain.invalid
mailNickname: Correct-User
member: CN_of_Member1
member: CN_of_Member2
member: CN_of_Member3
msExchALObjectVersion: 21
msExchArbitrationMailbox: CN=SystemMailbox{dfa5ff27-49e1-41e2-a342-3da4fa93d688},CN=Users,DC=domain,DC=invalid
msExchPoliciesExcluded: {26491cfc-9e50-4857-861b-0cb8df22b5d7}
msExchRecipientDisplayType: 1073741833
msExchVersion: 44220983382016
msSFU30Name: Correct-User
msSFU30NisDomain: domain
name: Correct-User
objectCategory: CN=Group,CN=Schema,CN=Configuration,DC=domain,DC=invalid
objectGUID:: Du+/vSRjGu+/vW9K77+977+977+977+977+9
objectSid:: AQUAAAAAAAUVAAAA77+9au+/vRgzG0Ey77+9FO+/vRzvv70xAAA=
proxyAddresses: smtp:alias1@domain.invalid
proxyAddresses: smtp:alias2@domain.invalid
proxyAddresses: smtp:alias3@domain.invalid
proxyAddresses: X400:C=DE;A= ;P=Oranization;O=domain;S=Correct-User;
proxyAddresses: SMTP:Correct-User@domain.invalid
reportToOriginator: TRUE
sAMAccountName: Correct-User
sAMAccountType: 268435456
showInAddressBook: CN=All Groups,CN=All Address Lists,CN=Address Lists Container,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=invalid
showInAddressBook: CN=Globale Standardadressliste,CN=All Global Address Lists,CN=Address Lists Container,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=invalid
showInAddressBook: CN=Alle Gruppen,CN=All Address Lists,CN=Address Lists Container,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=invalid
textEncodedORAddress: X400:C=DE;A= ;P=Oranization;O=domain;S=Correct-User;
uSNChanged: 22232517
uSNCreated: 44070
whenChanged: 20150313141747.0Z
whenCreated: 20090629113923.0Z
bavincen commented 9 years ago

Screen shot Please?

5nafu commented 9 years ago

Please see attached Screenshot. I only changed the Addresses for privacy reasons. screenshot - 19 03 2015 - 12 48 10

Woi commented 9 years ago

This affects me as well in my day to day work. Are there any news on this yet?