The United Nations secretary general , Kofi Annan , said Friday that President Bashar al-Assad of Syria had pledged to respect an embargo on weapons going into Lebanon and to help secure the border with added guards and a greater liaison with the Beirut authorities .