dsdb-acl: use dsdb_get_structural_oc_from_msg() rather than class_schemaid_guid_by_lD...
commit6ab41506857814d69d897471a14002d98fb4c172
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 Jan 2013 22:26:15 +0000 (2 09:26 +1100)
committerStefan Metzmacher <metze@samba.org>
Mon, 21 Jan 2013 15:12:45 +0000 (21 16:12 +0100)
treeea37e87a1f17a223e87bb70353cc018cd0d44c98
parent730433984c9f3dd30ee0b07dc22af56b4d3a062f
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>
source4/dsdb/samdb/ldb_modules/acl.c