Friday, September 23, 2011

DCPromo error when removing a child domain

I set up a child domain in our lab at work. The child domain controller was a virtual 2008 server. When I tried to run dcpromo to get rid of it, I got the following error:

Active Directory Installation Wizard
The operation failed because:

Active Directory could not transfer the remaining data in directory partition
CN=Schema,CN=Configuration,DC=xxx,DC=NET to domain controller yyy.xxxx.NET.

"The RPC server is unavailable."

After pouring through Google and tons of forums, I could not find the answer, but everything seemed to point to it being a DNS problem. It turns out, that was indeed the case. On the parent domain controller, I opened up DNS and navigated to the child domain under forward lookup zones. I tried to ping the FQDN of the child domain controller but could not, however, I was able to ping it by computer name.

When I opened up the properties of the child domain in DNS, the name server listed for the child domain controller had its old IP address listed. So I changed it to the new IP address, and suddenly, all of the RPC errors went away and I was able to demote the child domain controller and remove the child domain!

It took me months to figure this out, and all the trouble was because the IP address of the domain controller changed.

Tuesday, July 19, 2011

Postfix Server

I was testing a monitoring program at work that generates a lot of email, and rather than bog down my company's email server, I wanted to set up my own. I decided to throw Postfix onto my Fedora VM. It seemed like a pretty basic install - just 'yum install postfix' and then edit the configuration file ( (I used the tutorial I found here.)

However, once I did this, I still wasn't getting any of the emails I was sending to myself through telnet. Hmm, was the domain set up correctly? Yup. I should have been getting email. (I set it up on a local domain, since I only needed to send email from one computer that was inside the network.)

After setting up Postfix and Cyrus (for POP/IMAP) on my ClearOS VM, that has a GUI for this sort of thing, I was able to compare its configuration file and figure out what I was doing wrong. It turns out that the 'mydomain' field in Postfix has nothing to do with the domains it accepts email for. Instead, you have to add the domains you want to accept email for under 'mydestination'.

That only took a day to figure out...

Saturday, June 25, 2011

Words of Wisdom (not my own)

Obey the king’s command, I say, because you took an oath before God. Do not be in a hurry to leave the king’s presence. Do not stand up for a bad cause, for he will do whatever he pleases. Since a king’s word is supreme, who can say to him, “What are you doing?”

Whoever obeys his command will come to no harm,
and the wise heart will know the proper time and procedure.
For there is a proper time and procedure for every matter,
though a person may be weighed down by misery.

Since no one knows the future,
who can tell someone else what is to come?
As no one has power over the wind to contain it,
so no one has power over the time of their death.
As no one is discharged in time of war,
so wickedness will not release those who practice it.

All this I saw, as I applied my mind to everything done under the sun. There is a time when a man lords it over others to his own hurt. Then too, I saw the wicked buried—those who used to come and go from the holy place and receive praise in the city where they did this. This too is meaningless.

When the sentence for a crime is not quickly carried out, people’s hearts are filled with schemes to do wrong. Although a wicked person who commits a hundred crimes may live a long time, I know that it will go better with those who fear God, who are reverent before him. Yet because the wicked do not fear God, it will not go well with them, and their days will not lengthen like a shadow.

There is something else meaningless that occurs on earth: the righteous who get what the wicked deserve, and the wicked who get what the righteous deserve. This too, I say, is meaningless. So I commend the enjoyment of life, because there is nothing better for a person under the sun than to eat and drink and be glad. Then joy will accompany them in their toil all the days of the life God has given them under the sun.

When I applied my mind to know wisdom and to observe the labor that is done on earth—people getting no sleep day or night— then I saw all that God has done. No one can comprehend what goes on under the sun. Despite all their efforts to search it out, no one can discover its meaning. Even if the wise claim they know, they cannot really comprehend it.

So I reflected on all this and concluded that the righteous and the wise and what they do are in God’s hands, but no one knows whether love or hate awaits them. All share a common destiny—the righteous and the wicked, the good and the bad, the clean and the unclean, those who offer sacrifices and those who do not.

As it is with the good,
so with the sinful;
as it is with those who take oaths,
so with those who are afraid to take them.

This is the evil in everything that happens under the sun: The same destiny overtakes all. The hearts of people, moreover, are full of evil and there is madness in their hearts while they live, and afterward they join the dead. Anyone who is among the living has hope—even a live dog is better off than a dead lion!

For the living know that they will die,
but the dead know nothing;
they have no further reward,
and even their name is forgotten.
Their love, their hate
and their jealousy have long since vanished;
never again will they have a part
in anything that happens under the sun.

Go, eat your food with gladness, and drink your wine with a joyful heart, for God has already approved what you do. Always be clothed in white, and always anoint your head with oil. Enjoy life with your wife, whom you love, all the days of this meaningless life that God has given you under the sun—all your meaningless days. For this is your lot in life and in your toilsome labor under the sun. Whatever your hand finds to do, do it with all your might, for in the realm of the dead, where you are going, there is neither working nor planning nor knowledge nor wisdom.

I have seen something else under the sun:

The race is not to the swift
or the battle to the strong,
nor does food come to the wise
or wealth to the brilliant
or favor to the learned;
but time and chance happen to them all.

Moreover, no one knows when their hour will come:

As fish are caught in a cruel net,
or birds are taken in a snare,
so people are trapped by evil times
that fall unexpectedly upon them.

Ecclesiastes 8:2-9:12

Sunday, March 13, 2011

Old Computers

Wow, I can't believe it's been over a year since my last post.

I've been trying to figure out to do with three of my computers. Currently, I have a Sempron 3300+ with 512MB of RAM that I use to watch videos on my TV. Since I use my Xbox for that now, I've been thinking about repurposing it, but my Xbox doesn't play HD video, so I'm not sure I want to get rid of it just yet. That being said, most of my video is not HD, and I hardly ever use it. So I don't know...

I also have a Pentium 4 1.7Ghz with 1GB of RAM that I installed Fedora 14 on. I could use it as an Apache server, but I already have a web hosting account with Godaddy. Perhaps I could put some kind of web app on it or use it for testing. I also could use it as an rsnapshot server to make backups, but there isn't really a whole lot I need to back up.

My third computer is a Celeron 1.4GHz with 256MB of RAM. Yep, it's junk and I should get rid of it. It's fast enough to run Ubuntu server though, so I could do that. I've been thinking about giving it to my brother for that purpose, but he said he wasn't interested. I could also just scrap it and make use of the Windows XP Professional license and the 20GB hard drive.

Who knows what I'll do.