summaryrefslogtreecommitdiff
path: root/source4/dsdb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-18 20:51:37 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-02 08:16:50 +1100
commitb1db66a501e3b5e5df66e722ad849a821c667d5b (patch)
treea34212a8933980dc7c5774e8316d7cffab569cec /source4/dsdb/common
parentf1b6484232cbcd31056b8f905f3b111d0c9069b0 (diff)
downloadsamba-b1db66a501e3b5e5df66e722ad849a821c667d5b.tar.gz
samba-b1db66a501e3b5e5df66e722ad849a821c667d5b.tar.bz2
samba-b1db66a501e3b5e5df66e722ad849a821c667d5b.zip
s4-dsdb: allow the component name to be specified in dsdb_get_extended_dn_guid()
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r--source4/dsdb/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 561edff94c..528c68b856 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -2797,11 +2797,11 @@ int dsdb_functional_level(struct ldb_context *ldb)
/*
return a GUID from a extended DN structure
*/
-NTSTATUS dsdb_get_extended_dn_guid(struct ldb_dn *dn, struct GUID *guid)
+NTSTATUS dsdb_get_extended_dn_guid(struct ldb_dn *dn, struct GUID *guid, const char *component_name)
{
const struct ldb_val *v;
- v = ldb_dn_get_extended_component(dn, "GUID");
+ v = ldb_dn_get_extended_component(dn, component_name);
if (v == NULL) {
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
}