summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-19 20:55:46 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-02 08:16:51 +1100
commit64802c5e2711eec1a0046098955354e5cd978636 (patch)
tree661c474a381b1198b984c95cb2df9fc9d209b0bb /source4
parentb34db0840de701b4d42918a8da952959a6955453 (diff)
downloadsamba-64802c5e2711eec1a0046098955354e5cd978636.tar.gz
samba-64802c5e2711eec1a0046098955354e5cd978636.tar.bz2
samba-64802c5e2711eec1a0046098955354e5cd978636.zip
s4-dsdb: added dsdb_dn_is_upgraded_link_val()
This is used to detect if a link has been stored in the w2k3 extended format
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/common/util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 528c68b856..ef47079f9f 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -2875,6 +2875,15 @@ bool dsdb_dn_is_deleted_val(struct ldb_val *val)
}
/*
+ return true if a ldb_val containing a DN in storage form is
+ in the upgraded w2k3 linked attribute format
+ */
+bool dsdb_dn_is_upgraded_link_val(struct ldb_val *val)
+{
+ return memmem(val->data, val->length, "<RMD_ADDTIME=", 13) != NULL;
+}
+
+/*
return a DN for a wellknown GUID
*/
int dsdb_wellknown_dn(struct ldb_context *samdb, TALLOC_CTX *mem_ctx,