Bug 12167 - Add error message for enablerecyclebin script, if functional level is to low
Add error message for enablerecyclebin script, if functional level is to low
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
4.5.0rc2
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-18 22:55 UTC by Marc Muehlfeld
Modified: 2016-08-23 04:03 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Muehlfeld 2016-08-18 22:55:19 UTC
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. :-)
Comment 1 Andrew Bartlett 2016-08-23 04:03:44 UTC
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.