In the case that the forest level is 2003, the try to enable the Samba AD recycle bin fails with a weird error: # source4/scripting/bin/enablerecyclebin /usr/local/samba/private/sam.ldb Traceback (most recent call last): File "source4/scripting/bin/enablerecyclebin", line 51, in <module> res = sam_ldb.modify(msg) _ldb.LdbError: (53, 'rootdse: failed to set optional feature for 766ddcd8-acd0-445e-f3b9-a7f9b6744f2a - rootdse_enable_recycle_bin: Domain functional level must be at least 4\n') This feature is supported in forest functional level 2008r2 and later. Since 4.5 will provide better support for tombstones, etc., the script should display a nice error message. :-)
It should be noted that the recycle bin in Samba is untested and even less well understood. We should probably move the script to scripting/devel until that improves.