WASHINGTON (AP) -- Declaring that members of the military will no longer be asked to lie, President Barack Obama fulfilled a campaign promise Wednesday and signed a landmark law repealing the ban on gay men and women serving openly in the armed services.
"This is a good day," a beaming Obama said. "This is a very good day."
The new law ends the 17-year-old "don't ask, don't tell" policy that forced gays to hide their sexual orientation or face dismissal. Its repeal comes as public opinion on such issues as gay marriage and gay rights in general has grown more tolerant.
"I say to all Americans, gay or straight, who want nothing more than to defend this country in uniform, your country needs you, your country wants you, and we will be honored to welcome you into the ranks of the finest military the world has ever known," Obama said.
The service chiefs must first complete implementation plans before lifting the old policy - and they must certify to lawmakers that it won't damage combat readiness, as critics charge. But Obama said: "We are not going to be dragging our feet to get this done."
The signing ceremony was a breakthrough moment for the nation's gay community, the military and for Obama himself. The president vowed during his 2008 campaign to repeal the law and faced pressure from liberals who complained he was not acting swiftly enough.
For Obama, it was the second high-profile bill signing ceremony within a week. On Friday, he signed into a law a tax package he negotiated with Republicans that extended Bush-era tax rates for two more years, cut payroll taxes and ensured jobless benefits to the unemployed for another year.
The two events, however, could not have been more different in tone.
The tax deal divided Democrats and forced Obama to accept extensions of tax cuts for the wealthiest, a step he had promised to not take. With Senate Republican leader Mitch McConnell at his side during that bill signing, Obama seemed dutiful and subdued.
Wednesday's signing of the repeal of "don't ask, don't tell" had the feel of a political rally. Speaking in the Interior Department's auditorium, Obama appeared in his element as shouts of "Thank you, Mr. President!" interrupted him.
"I couldn't be prouder," Obama said.
Obama hailed the "courage and vision" of Defense Secretary Robert Gates and praised Gates and Joint Chiefs of Staff Chairman Adm. Mike Mullen, who advocated changing the law.
"No longer will tens of thousands of Americans in uniform be asked to live a lie, or look over their shoulder in order to serve the country that they love," Obama said.
Among those in attendance at the ceremony was the son of a World War II veteran who was saved by a gay comrade during the Battle of the Bulge. Also present was Marine Staff Sgt. Eric Alva, the first American wounded in the war in Iraq who has spoken out against the Pentagon policy.
The Pentagon now must begin addressing the practical consequences of the law. Guidelines must be completed that cover a host of questions, from how to educate troops to how sexual orientation should be handled in making barracks assignments.
While officials have avoided timetables, the process will probably take months.
The new law is the second of three expected victories in what's turned out to be - for Obama - a surprisingly productive lame-duck Congress. Weeks after his self-described "shellacking" in the midterm vote, he's won lopsided approval of a tax cut compromise, and the Senate is poised to deliver his top foreign policy goal: ratification of a new nuclear arms treaty with Russia.
Born 17 years ago as a compromise between President Bill Clinton and a resistant Pentagon, the "don't ask, don't tell" policy became for gay rights campaigners a notorious roadblock on the way to full acceptance.
Yet he has also faced rising discontent among gay activists who believed he hadn't moved forcefully enough. He's been heckled at campaign appearances over AIDS funding and the failure to end the military service ban.
Obama countered that as commander in chief, he had to ensure the ban's end is carefully prepared for.
That's just what the bill from Congress mandates.
"The implementation and certification process will not happen immediately; it will take time," Air Force Chief of Staff Gen. Norton Schwartz warned in an e-mail that went out right after Saturday's Senate vote. "Meanwhile, the current law remains in effect. All Air Force members should conduct themselves accordingly."
Military and administration officials are wrestling with numerous legal questions raised by the end of the ban - knowing that courts are waiting in the wings. They include what to do about pending expulsion proceedings, and when those ousted under the old policy might apply to rejoin the armed forces.
Associated Press writer Mark S. Smith contributed to this report.