 |
|
|
|
| Author |
Message |
Candi Suriano
Joined: 05 Aug 2007 Posts: 2
|
Posted: Thu Oct 04, 2007 6:25 pm Post subject: Catastrophic failure" 0x8000FFFF |
|
|
I'm creating a user in Active Directory, setting the mail nickname and then
trying to mail enable them. This code has worked for 18 months with very few
problems. Now there's a new twist. I have to create the user and mailbox in a
different domain than the one I'm running in. I impersonate a domain admin
in the domain. Everything works up to the point where it tries to create the
mailbox. Then I get a "Catastrophic failure" 0x8000FFFF error message. Does
anyone have any idea what could be wrong?
I've appended a sample of the code to the end of this message. All of the
LDAP strings have been checked by multiple pairs of eyes. They specify valid
containers in AD and valid stores in Exchange. And I've left out some
details such as exception handling and the code for impersonation for the
sake of brevity.
--
Candi
Private Sub Create()
Dim newIdentity As System.Security.Principal.WindowsIdentity = Nothing
Dim newContext As
System.Security.Principal.WindowsImpersonationContext = Nothing
newIdentity = GetWindowsIdentity(GetValueFromConfig("CECUser1"),
"CEC", GetValueFromConfigEncrypt("CECPassword1"))
newContext = newIdentity.Impersonate
CreateUser()
newContext.Undo
End Sub
Private Sub CreateUser
Dim entry As DirectoryEntry = Nothing
Dim user As DirectoryEntry = Nothing
Dim strPath As String = String.Empty
Dim strExchangePath As String = String.Empty
Dim Mailbox As CDOEXM.IMailboxStore
Dim username As String = "testUser"
strPath =
String.Format("LDAP://{0}/OU={1},OU={2},OU={3},OU={4},OU={5},{6}", dcName,
"Users", "OEG Staff", "Hoffman", "850", "Campuses",
"DC=CEC,DC=root,DC=careered,dc=com")
entry = New DirectoryEntry(strPath)
user = entry.Children.Add("CN=" & username, "User")
with User
..Properties("userPrincipalName").Add(String.Format("{0}@{1}", username,
"cec.root.careered.com"))
.Properties("sAMAccountName").Add(username)
.CommitChanges()
SetProperty(user, "mail", username & "@careered.com")
strExchangePath =
String.Format("CN={0},CN={1},CN=InformationStore,CN={2},CN=Servers,CN={3},CN=Administrative
Groups,CN={4},CN=Microsoft Exchange,CN=Services,CN=Configuration,{5}", "MS1",
"First Storage Group", "850EMX001", "CEC", "Careered",
"DC=root,DC=careered,DC=com")
Mailbox = DirectCast(user.NativeObject, CDOEXM.IMailboxStore)
Mailbox.CreateMailbox(strExchangePath)
user.CommitChanges()
end sub
--
Candi
Archived from group: microsoft>public>exchange>applications |
|
| Back to top |
|
 |
John Fullbright
Joined: 05 Aug 2007 Posts: 365
|
Posted: Thu Oct 18, 2007 11:57 pm Post subject: Re: Catastrophic failure" 0x8000FFFF |
|
|
Back in the Exchange 2000 world, the RUS would throw an 8000ffff. It was
basically a "can't get there from here" error due to name resolution failure
or permissions failure. Given that:
1. How are you doing your LDAP binding and where to?
2. In DNS name resolution for the DC in the domain you are attemting to
write to work?
3. Do you have the permissions necessary to write in the target domain with
the credentials you are using?
"Candi Suriano" wrote in message @microsoft.com...
> I'm creating a user in Active Directory, setting the mail nickname and
> then
> trying to mail enable them. This code has worked for 18 months with very
> few
> problems. Now there's a new twist. I have to create the user and mailbox
> in a
> different domain than the one I'm running in. I impersonate a domain
> admin
> in the domain. Everything works up to the point where it tries to create
> the
> mailbox. Then I get a "Catastrophic failure" 0x8000FFFF error message.
> Does
> anyone have any idea what could be wrong?
>
> I've appended a sample of the code to the end of this message. All of the
> LDAP strings have been checked by multiple pairs of eyes. They specify
> valid
> containers in AD and valid stores in Exchange. And I've left out some
> details such as exception handling and the code for impersonation for the
> sake of brevity.
> --
> Candi
>
> Private Sub Create()
> Dim newIdentity As System.Security.Principal.WindowsIdentity =
> Nothing
> Dim newContext As
> System.Security.Principal.WindowsImpersonationContext = Nothing
> newIdentity =
> GetWindowsIdentity(GetValueFromConfig("CECUser1"),
> "CEC", GetValueFromConfigEncrypt("CECPassword1"))
> newContext = newIdentity.Impersonate
> CreateUser()
> newContext.Undo
> End Sub
>
>
> Private Sub CreateUser
> Dim entry As DirectoryEntry = Nothing
> Dim user As DirectoryEntry = Nothing
> Dim strPath As String = String.Empty
> Dim strExchangePath As String = String.Empty
> Dim Mailbox As CDOEXM.IMailboxStore
> Dim username As String = "testUser"
>
> strPath =
> String.Format("LDAP://{0}/OU={1},OU={2},OU={3},OU={4},OU={5},{6}", dcName,
> "Users", "OEG Staff", "Hoffman", "850", "Campuses",
> "DC=CEC,DC=root,DC=careered,dc=com")
> entry = New DirectoryEntry(strPath)
> user = entry.Children.Add("CN=" & username, "User")
> with User
>
> .Properties("userPrincipalName").Add(String.Format("{0}@{1}", username,
> "cec.root.careered.com"))
> .Properties("sAMAccountName").Add(username)
> .CommitChanges()
> SetProperty(user, "mail", username & "@careered.com")
> strExchangePath =
> String.Format("CN={0},CN={1},CN=InformationStore,CN={2},CN=Servers,CN={3},CN=Administrative
> Groups,CN={4},CN=Microsoft Exchange,CN=Services,CN=Configuration,{5}",
> "MS1",
> "First Storage Group", "850EMX001", "CEC", "Careered",
> "DC=root,DC=careered,DC=com")
> Mailbox = DirectCast(user.NativeObject,
> CDOEXM.IMailboxStore)
> Mailbox.CreateMailbox(strExchangePath)
> user.CommitChanges()
> end sub
> --
> Candi |
|
| Back to top |
|
 |
Candi Suriano
Joined: 05 Aug 2007 Posts: 2
|
Posted: Mon Oct 22, 2007 10:02 pm Post subject: Re: Catastrophic failure" 0x8000FFFF |
|
|
John,
Thanks for your answer. It was the name resolution problem.
--
Candi
"John Fullbright" wrote:
> Back in the Exchange 2000 world, the RUS would throw an 8000ffff. It was
> basically a "can't get there from here" error due to name resolution failure
> or permissions failure. Given that:
>
> 1. How are you doing your LDAP binding and where to?
> 2. In DNS name resolution for the DC in the domain you are attemting to
> write to work?
> 3. Do you have the permissions necessary to write in the target domain with
> the credentials you are using?
>
>
>
> "Candi Suriano" wrote in message
> @microsoft.com...
> > I'm creating a user in Active Directory, setting the mail nickname and
> > then
> > trying to mail enable them. This code has worked for 18 months with very
> > few
> > problems. Now there's a new twist. I have to create the user and mailbox
> > in a
> > different domain than the one I'm running in. I impersonate a domain
> > admin
> > in the domain. Everything works up to the point where it tries to create
> > the
> > mailbox. Then I get a "Catastrophic failure" 0x8000FFFF error message.
> > Does
> > anyone have any idea what could be wrong?
> >
> > I've appended a sample of the code to the end of this message. All of the
> > LDAP strings have been checked by multiple pairs of eyes. They specify
> > valid
> > containers in AD and valid stores in Exchange. And I've left out some
> > details such as exception handling and the code for impersonation for the
> > sake of brevity.
> > --
> > Candi
> >
> > Private Sub Create()
> > Dim newIdentity As System.Security.Principal.WindowsIdentity =
> > Nothing
> > Dim newContext As
> > System.Security.Principal.WindowsImpersonationContext = Nothing
> > newIdentity =
> > GetWindowsIdentity(GetValueFromConfig("CECUser1"),
> > "CEC", GetValueFromConfigEncrypt("CECPassword1"))
> > newContext = newIdentity.Impersonate
> > CreateUser()
> > newContext.Undo
> > End Sub
> >
> >
> > Private Sub CreateUser
> > Dim entry As DirectoryEntry = Nothing
> > Dim user As DirectoryEntry = Nothing
> > Dim strPath As String = String.Empty
> > Dim strExchangePath As String = String.Empty
> > Dim Mailbox As CDOEXM.IMailboxStore
> > Dim username As String = "testUser"
> >
> > strPath =
> > String.Format("LDAP://{0}/OU={1},OU={2},OU={3},OU={4},OU={5},{6}", dcName,
> > "Users", "OEG Staff", "Hoffman", "850", "Campuses",
> > "DC=CEC,DC=root,DC=careered,dc=com")
> > entry = New DirectoryEntry(strPath)
> > user = entry.Children.Add("CN=" & username, "User")
> > with User
> >
> > .Properties("userPrincipalName").Add(String.Format("{0}@{1}", username,
> > "cec.root.careered.com"))
> > .Properties("sAMAccountName").Add(username)
> > .CommitChanges()
> > SetProperty(user, "mail", username & "@careered.com")
> > strExchangePath =
> > String.Format("CN={0},CN={1},CN=InformationStore,CN={2},CN=Servers,CN={3},CN=Administrative
> > Groups,CN={4},CN=Microsoft Exchange,CN=Services,CN=Configuration,{5}",
> > "MS1",
> > "First Storage Group", "850EMX001", "CEC", "Careered",
> > "DC=root,DC=careered,DC=com")
> > Mailbox = DirectCast(user.NativeObject,
> > CDOEXM.IMailboxStore)
> > Mailbox.CreateMailbox(strExchangePath)
> > user.CommitChanges()
> > end sub
> > --
> > Candi
>
>
>
|
|
| Back to top |
|
 |
|
|
| Related Topics: | Failure on IDataSource2::Open.. Hi, Our customers is using Exchange Server 2003 and we are getting a weird error during the open call. This problem occurs only once a week and does not seem to be related to particular events. The error code we receive is: 0x8000FFFF Any ideas ? Regards,
smtp failure with few providers Hello, I have few laptops users which need to send mail when there are in hotels, lounges, customers wifi access, ... Problem is now, lots of providers blocked usage of external smtp servers so my users receive mail but can't send mail. Because I manage m
Power failure DC went down Hello all over tyhe weekend the power in the building went down. The Exchange servers are located at datacenter so they had a power to them. The DC are located at the office where the power went down. I have two exchange servers, both are 2003 sp2 one of
Help on Event 217 backup failure hello, i have an issue with my backend server (e2k3), Ex mixed mode, pure e2k3 admin group. fe/be topology. i have migrated my groupwise data to this server, and now the backup failed with this event and i have a lot of log files in the log drive. it says
Logon Failure on database I have installed a ZetaFax connector ver 7 and 8, but the service Zetafax Connector is unable to start. On Apllication Log I see the follow error. Event Type: Error Event Source: MSExchangeIS Mailbox Store Event Category: Logons Event ID: 1022 Date: 11/0 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|