dsdb-acl: use dsdb_get_structural_oc_from_msg() rather than class_schemaid_guid_by_lD...
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 Jan 2013 22:26:15 +0000 (09:26 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Jan 2013 08:22:36 +0000 (09:22 +0100)
commitd76b80369063efd19eebed0db89be3ef4411a6df
tree7789ec5be7f4529576412c0ba7676ee1104a3031
parent128c31cccb498c9ff7a04f4f72dbce0b097e4eed
dsdb-acl: use dsdb_get_structural_oc_from_msg() rather than class_schemaid_guid_by_lDAPDisplayName

This uses dsdb_get_last_structural_objectclass(), which encodes this ordering
knowledge in one place in the code, rather than using this uncommented
magic expression:

(char *)oc_el->values[oc_el->num_values-1].data

Andrew Bartlett

Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 6ab41506857814d69d897471a14002d98fb4c172)
source4/dsdb/samdb/ldb_modules/acl.c