Hi,
The attached patch adds unit tests for some of the ad_gpo functionality. It also fixes some failure mode processing code in ad_gpo.c that was uncovered by the unit tests. This patch depends on a previously submitted patch ("Remove GPO dependency on libsamba-security"), which has not yet been pushed to master.
Regards, Yassir.