Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Mailbox Alias cannot be resolved in CDO Logon...


Message #1 by "Dante Tang" <dante.tang@s...> on Mon, 17 Dec 2001 03:19:40
I got a BIG problem for CDO Logon...



As you know, a mailbox alias will be used to Logon a CDO Session. However, 

I discovered a potential problem when I added a new account in my Exchange 

Server this morning.



I found that, even I suppied the unique mailbox alias to logon a CDO 

Session. CDO cannot resolve it under a condition: If the mailbox alias is 

a part of the Display Name / First Name / Last Name of other users, the 

mailbox alias cannot be resolve. As a result, the mailbox of the user 

cannot be accessed after CDO Logon.



For example, there is an employee called "Martin Chan" and his mailbox 

alias is "martin.chan". Another employee is called "Amy Chan", and her 

mailbox alias is "chan". Both mailbox alias are unique. 



I have written a simple ASP program to display the current user name after 

CDO Logon. When I use "martin.chan" to logon, it can display "Martin Chan" 

as the current user name. However, when I use "chan" to logon, the current 

user name is "Unknown". It seems that ambiguity exists so CDO cannot 

resolve which mailbox I am refering to.



After that, I used Outlook to verify my assumption. I created a new 

profile, the mailbox alias is "chan", when I clicked the "Check Name" 

button in the Properties page. Outlook showed me two mailboxes: "Martin 

Chan" and "Amy Chan"...



This make me confused... Mailbox Alias is unique. But Outlook check it 

with the Display Name / First Name / Last Name of other users. That's why 

I cannot logon CDO successfully by using "chan". Since CDO cannot figure 

out which mailbox I am refering to.



However, this situation may exist in the real world... Does anyone know 

the workaround for this potential problem?



Million Thanks for any advice or comment in advance.



Dante
Message #2 by "Anand" <Anand@S...> on Mon, 24 Dec 2001 10:03:36 +0800
This is a multi-part message in MIME format.



------=_NextPart_000_0052_01C18C62.413105E0

Content-Type: text/plain;

	charset="US-ASCII"

Content-Transfer-Encoding: 7bit



That is absolutely true. 



MAPI fails to initiate the session if a user's alias is conflicting with

another user's firstname, lastname or alias, in part or in full, that

user will be denied access to his/her mailbox, this is a feature of

Exchange Server 5.5 by design.

 

The best solution is to use the user's SMTP address to initiate the MAPI

session. For example,

 

bstrMailbox = "SMTP:" & bstrMailbox

bstrProfileInfo = bstrExchServer + vbLF + bstrMailbox

objMapiSession.Logon "", "", False, True, 0, True, bstrProfileInfo

 

Hope it helps to solve your problem.

 

Best Regards

Anand, 

Software Engineer, 

HCL Perot Systems

 





-----Original Message-----

From: Dante Tang [mailto:dante.tang@s...] 

Sent: 17 December 2001 03:20

To: ASP CDO

Subject: [asp_cdo] Mailbox Alias cannot be resolved in CDO Logon...







I got a BIG problem for CDO Logon...



As you know, a mailbox alias will be used to Logon a CDO Session.

However,

I discovered a potential problem when I added a new account in my

Exchange

Server this morning.



I found that, even I suppied the unique mailbox alias to logon a CDO

Session. CDO cannot resolve it under a condition: If the mailbox alias

is

a part of the Display Name / First Name / Last Name of other users, the

mailbox alias cannot be resolve. As a result, the mailbox of the user

cannot be accessed after CDO Logon.



For example, there is an employee called "Martin Chan" and his mailbox  

alias is "martin.chan". Another employee is called "Amy Chan", and her

mailbox alias is "chan". Both mailbox alias are unique.



I have written a simple ASP program to display the current user name

after

CDO Logon. When I use "martin.chan" to logon, it can display "Martin

Chan"

as the current user name. However, when I use "chan" to logon, the

current

user name is "Unknown". It seems that ambiguity exists so CDO cannot

resolve which mailbox I am refering to.



After that, I used Outlook to verify my assumption. I created a new

profile, the mailbox alias is "chan", when I clicked the "Check Name"

button in the Properties page. Outlook showed me two mailboxes: "Martin

Chan" and "Amy Chan"...



This make me confused... Mailbox Alias is unique. But Outlook check it

with the Display Name / First Name / Last Name of other users. That's

why

I cannot logon CDO successfully by using "chan". Since CDO cannot figure

out which mailbox I am refering to.



However, this situation may exist in the real world... Does anyone know

the workaround for this potential problem?



Million Thanks for any advice or comment in advance.



Dante



---

You are currently subscribed to asp_cdo as: anand@s... To

unsubscribe send a blank email to $subst('Email.Unsub')



---

Change your mail options at  <http://p2p.wrox.com/manager.asp>













  Return to Index