s4-dsdb: fixed dsdb_get_extended_dn_sid()
authorAndrew Tridgell <tridge@samba.org>
Wed, 18 Aug 2010 08:36:12 +0000 (18:36 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 20 Aug 2010 10:34:11 +0000 (20:34 +1000)
it should honor the component_name

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dsdb/common/util.c

index 7c2414a23f49382b1fbd90aba7160d348e4f1fb9..fc117b9fa3b987edfca5cb439f48e4b30d461c83 100644 (file)
@@ -3112,7 +3112,7 @@ NTSTATUS dsdb_get_extended_dn_sid(struct ldb_dn *dn, struct dom_sid *sid, const
        struct TALLOC_CTX *tmp_ctx;
        enum ndr_err_code ndr_err;
 
-       sid_blob = ldb_dn_get_extended_component(dn, "SID");
+       sid_blob = ldb_dn_get_extended_component(dn, component_name);
        if (!sid_blob) {
                return NT_STATUS_OBJECT_NAME_NOT_FOUND;
        }