Some years after his escape to Bosnia, Latas was offered a position as tutor to the children of a Turkish merchant, on the condition that he converted to Islam and allowed himself to be circumcised. After his conversion, he took on the new name Omar Lufti. Eventually, he moved to
Constantinople with the merchant's family, and, by leveraging his value as a former Austrian soldier, negotiated for himself a position as lecturer at the Imperial Ottoman Military Academy. After serving in this position for some time, he was enlisted as
aide-de-camp to
Wojciech Chrzanowski, who was engaged in the re-organization of the Ottoman Army after the defeat of the Janissaries. Some time following the
Hungarian Revolution of 1848, Omar Pasha was given command of the Ottoman forces in
Moldavia and
Wallachia. There followed his command in
Bosnia against
Ali-paša Rizvanbegović, who had revolted against the Ottomans and begun to build up an independent power base. Omar commanded from his headquarters during this campaign, marking the beginning of his shift from frontline combat to broader strategic coordination. The campaign saw the respected historical aristocracy of the Muslim faith executed, plundered, and deposed in the interest of centralising Ottoman power in the region. As the Governor of Bosnia, he ordered Ottoman forces in the region to invade the neighbouring Montenegro, a diplomatic blunter which led to Austrian intervention and the withdrawal of the Ottoman representative in Vienna. == The Crimean War ==