Prasad on his blog (you can find the link on the right), has a really really useful collection of dql that can be used for various admin tasks. I’m going to slowly build up my own list of DQL for much the same purposes. A note on convention: This is standard convention but as a refresher (or for those not aware of that convention) anything within < > is to be filled in at runtime. Remove the < > brackets and replace with appropriate value.
update dm_sysobject object set acl_name = ‘<acl_name>’, set acl_domain = ‘<acl_owner>’ where folder (‘/<folder>’, DESCEND) and r_lock_owner = ”
update dm_sysobject object set acl_name = ‘<new_acl_name>’, set acl_domain = ‘<acl_owner>’ where folder (‘/<folder>’, DESCEND) and r_lock_owner = ” and acl_name = ‘<old_acl_name>’
The following comes in very hand when you’re trying to troubleshoot authentication problems. Go into DA and find the Administrative Methods; there should be one called ‘SET_OPTIONS’ which allows you to put in trace_authentication and set it to true. All authentication attempts will then be logged to the docbase log.
A few notes: