| Author |
Message |
PaulB
Guest
|
Posted:
Fri Sep 30, 2005 4:13 pm Post subject:
objsession.logon with profileinfo |
|
|
I am trying to create dynamic profiles to logon and logoff mailboxes. In the
most part this works as it should.
However, I note from MSDN that the "server name" and "mailbox name" are
assumed to be unresolved and therefore they are resolved before the logon.
So I am trying to pass absolute mailbox alias of "RECEPTION" and it is
failing with MAPI_E_LOGON_FAILED. Because I think it is finding this
ambiguous because aliases exist for RECEPTION and RECEPTION21.
Therefore is their anyway to force the logon function to assume it is an
absolute and not try to resolve the name?
many thanks,
Paul
|
|
| Back to top |
|
 |
Dan Mitchell
Guest
|
Posted:
Fri Sep 30, 2005 4:58 pm Post subject:
Re: objsession.logon with profileinfo |
|
|
"PaulB" <anonymous@discussions.microsoft.com> wrote in
news:470C80E8-92D0-47F8-AB65-0366C12CE565@microsoft.com:
| Quote: | Therefore is their anyway to force the logon function to assume it is
an absolute and not try to resolve the name?
|
Put "=" in front of it, so you'd use "=reception" in your case.
-- dan |
|
| Back to top |
|
 |
Dan Mitchell
Guest
|
Posted:
Sat Oct 01, 2005 12:58 am Post subject:
Re: objsession.logon with profileinfo |
|
|
"PaulB" <anonymous@discussions.microsoft.com> wrote in news:#
0J2C1fxFHA.3400@TK2MSFTNGP14.phx.gbl:
| Quote: | Tried this but still get the same problem.
I am passing profileinfo as "strserver & vblf & "=" & stralias"
|
Okay, if that doesn't work, then try using something even more unique --
the email address for that person should work, so stralias would be
"smtp:user@company.com" or whatever.
Oh, and presumably you meant
"strserver" & vblf & "=stralias", not
"strserver & vblf & "=" & stralias"
which has an even number of " symbols but means something very different.
-- dan
|
|
| Back to top |
|
 |
PaulB
Guest
|
Posted:
Sat Oct 01, 2005 12:58 am Post subject:
Re: objsession.logon with profileinfo |
|
|
Dan,
Tried this but still get the same problem.
I am passing profileinfo as "strserver & vblf & "=" & stralias"
Paul
"Dan Mitchell" <djmitchella@yahoo.com> wrote in message
news:Xns96E16BA037EF4djmitchellayahoocom@207.46.248.16...
| Quote: | "PaulB" <anonymous@discussions.microsoft.com> wrote in
news:470C80E8-92D0-47F8-AB65-0366C12CE565@microsoft.com:
Therefore is their anyway to force the logon function to assume it is
an absolute and not try to resolve the name?
Put "=" in front of it, so you'd use "=reception" in your case.
-- dan |
|
|
| Back to top |
|
 |
PaulB
Guest
|
Posted:
Mon Oct 03, 2005 1:57 pm Post subject:
Re: objsession.logon with profileinfo |
|
|
Dan,
Tried a number of educated guesses without success:
smtp:reception.10@domain.com
SMTP:reception.10@domain.com
=smtp:reception.10@domain.com
=SMTP:reception.10@domain.com
cn=reception
Full DN path
All fail with the same error. It is very annoying
Paul
"Dan Mitchell" <djmitchella@yahoo.com> wrote in message
news:Xns96E1AFE89DA69djmitchellayahoocom@207.46.248.16...
| Quote: | "PaulB" <anonymous@discussions.microsoft.com> wrote in news:#
0J2C1fxFHA.3400@TK2MSFTNGP14.phx.gbl:
Tried this but still get the same problem.
I am passing profileinfo as "strserver & vblf & "=" & stralias"
Okay, if that doesn't work, then try using something even more unique --
the email address for that person should work, so stralias would be
"smtp:user@company.com" or whatever.
Oh, and presumably you meant
"strserver" & vblf & "=stralias", not
"strserver & vblf & "=" & stralias"
which has an even number of " symbols but means something very different.
-- dan |
|
|
| Back to top |
|
 |
Dan Mitchell
Guest
|
Posted:
Mon Oct 03, 2005 4:58 pm Post subject:
Re: objsession.logon with profileinfo |
|
|
"PaulB" <anonymous@discussions.microsoft.com> wrote in
news:eG17#h$xFHA.2228@TK2MSFTNGP11.phx.gbl:
| Quote: | Tried a number of educated guesses without success:
smtp:reception.10@domain.com
SMTP:reception.10@domain.com
=smtp:reception.10@domain.com
=SMTP:reception.10@domain.com
cn=reception
Full DN path
All fail with the same error. It is very annoying
|
Does this mailbox actually have a valid SMTP address? I tried this with
a test account here (where there's "test1" mailbox and "test10" mailbox,
which map to "Test 1. Account1" and "Test 10. Account10") and had no end
of trouble getting it to work, because the test mailboxes don't _have_
smtp addresses. Poking around with the other (EX: etc) address types
didn't get me anywhere either.
It's not out of the question that it may actually be impossible to
automatically configure profiles to point at some awkward mailboxes, at
least without user intervention. The code that matches the string you
pass in to an entry in the addresslist isn't actually exposed by ExMAPI
(CDO1.21), it's part of the particular implementation that's hidden
away, and so working out how to get it to do what you want can involve a
fair bit of trial and error.
Two more things to try:
1. Create a profile pointing at this mailbox by hand (from the mail/fax
control panel), and see if you can find a string to type in there
that'll get you through without any further dialog clicking, then try
that string in profileinfo.
2. Alternatively, if you have access to a C++ Compiler, try the code
from http://support.microsoft.com/default.aspx?scid=kb;en-us;170225
which gives you a bit more fine-grained control. That said, I was trying
that code when I was experimenting here, and it didn't get me any
further than using CDO1.21 and profileInfo, it just got me more detailed
error messages..
Sorry I don't have anything more helpful to suggest.
-- dan |
|
| Back to top |
|
 |
|
|
|
|