summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-03 20:45:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:48 -0500
commit2f1fa42fe884e074c50d28896ee36ef7f50a43c4 (patch)
tree7bb89e77fdcdb4401730bb7617cad13135b78fec
parent46d282490780407d02f37ff16e38693ad1bc5724 (diff)
downloadsamba-2f1fa42fe884e074c50d28896ee36ef7f50a43c4.tar.gz
samba-2f1fa42fe884e074c50d28896ee36ef7f50a43c4.tar.bz2
samba-2f1fa42fe884e074c50d28896ee36ef7f50a43c4.zip
r20023: handle <SID=...> <WKGUID=...> dn's also in ldb_dn_new_fmt()
metze (This used to be commit 01e3a5080a38c93c4bbf249b03135314b7e0b3f1)
-rw-r--r--source4/lib/ldb/common/ldb_dn.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c
index ae178986f4..7a17d2cb71 100644
--- a/source4/lib/ldb/common/ldb_dn.c
+++ b/source4/lib/ldb/common/ldb_dn.c
@@ -143,6 +143,16 @@ struct ldb_dn *ldb_dn_new_fmt(void *mem_ctx, struct ldb_context *ldb, const char
* exploded_dn control is used */
dn->special = true;
/* FIXME: add a GUID string to ldb_dn structure */
+ } else if (strncasecmp(strdn, "<SID=", 8) == 0) {
+ /* this is special DN returned when the
+ * exploded_dn control is used */
+ dn->special = true;
+ /* FIXME: add a SID string to ldb_dn structure */
+ } else if (strncasecmp(strdn, "<WKGUID=", 8) == 0) {
+ /* this is special DN returned when the
+ * exploded_dn control is used */
+ dn->special = true;
+ /* FIXME: add a WKGUID string to ldb_dn structure */
}
dn->linearized = strdn;