s4:dsdb/acl Reduce calls to dsdb_get_schema() and add memory context
authorAndrew Bartlett <abartlet@samba.org>
Tue, 16 Mar 2010 03:43:33 +0000 (14:43 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 16 Mar 2010 08:25:55 +0000 (19:25 +1100)
commita7ec946cedf29ad8a88fcd0b253468b61f369d86
treeb09069e576bbbe85929c679ba5642d5712590b64
parent1e6fee4185b726e532c98e0feec1121d59f734c5
s4:dsdb/acl Reduce calls to dsdb_get_schema() and add memory context

dsdb_get_schema() isn't a very cheap call, due to the use of LDB
opaque pointers.  We need to call it less, and instead pass it as a
parameter where possible.

This also changes to the new API with a talloc context.

Andrew Bartlett
source4/dsdb/samdb/ldb_modules/acl.c