s4-pydsdb: Use local memory context in py_dsdb_get_oid_from_attid()
authorKamen Mazdrashki <kamenim@samba.org>
Mon, 20 Dec 2010 09:39:26 +0000 (11:39 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Mon, 20 Dec 2010 09:40:10 +0000 (11:40 +0200)
commite7206cfd4f28f720b72065f2ccbba0fe465c7b7f
tree1ca7010d2f8aa0547bff6fd0b734b7177dcd7560
parente1d3de3e173e2e1b31cfe0c7e8483eb205f4bb2d
s4-pydsdb: Use local memory context in py_dsdb_get_oid_from_attid()

This version reverts changes from commit b974966cc2b4d0b5b0d83206070b5f7c5c6495d1
and is what Matthieu Patou had commited in d784ecec555a3d9737e6f4b3894f27904d2b833c
with added reference to the schema cache.

I think referencing schema here is the right thing to be done
as thus we garantee that schema cache will stay in memory
for the time our function is executed
source4/dsdb/pydsdb.c