r20023: handle <SID=...> <WKGUID=...> dn's also in ldb_dn_new_fmt()
authorStefan Metzmacher <metze@samba.org>
Sun, 3 Dec 2006 20:45:13 +0000 (20:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:28:48 +0000 (14:28 -0500)
metze
(This used to be commit 01e3a5080a38c93c4bbf249b03135314b7e0b3f1)

source4/lib/ldb/common/ldb_dn.c

index ae178986f43c3e10fe481e86490c3ebc4e55e71a..7a17d2cb71f7a0393c5eb3fb0639dc871a1fcb42 100644 (file)
@@ -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;