Nigeria's former national security adviser has pleaded not guilty to charges of possessing weapons illegally.

In a court in the Nigerian capital, Abuja Sambo Dasuki Tuesday denied illegal possession of five rifles, dozens of bullets and a bulletproof Range Rover.

The court granted Dasuki bail and adjourned the case to October 26 when the trial is to start.

Dasuki was a key adviser of former President Goodluck Jonathan and had had taken control of weapons procurement from the Ministry of Defense.

Nigeria's new president, Muhammadu Buhari, has ordered an investigation into military hardware and weapons purchased since 2007, part of his ongoing fight to end corruption and ensure the armed forces are properly equipped to fight the Boko Haram Islamic uprising.