r19954: allow more special dn's:
authorStefan Metzmacher <metze@samba.org>
Wed, 29 Nov 2006 20:03:19 +0000 (20:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:28:40 +0000 (14:28 -0500)
this works now against w2k3:

bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<GUID=44087590-dd95-435c-adc1-ec20a50807be>" -s base
bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<SID=S-1-5-21-769185814-1958994947-1641909093-513>" -s base
bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<WKGUID=AB8153B7768811D1ADED00C04FD8D5CD,DC=w2k3,dc=vmnet1,dc=vm,dc=base>" -s base

and we should try to implement this in the server too...

metze
(This used to be commit 3c087c89707398d88799367240fe4e6f8b192bb4)

source4/lib/ldb/common/ldb_dn.c

index bb314fbe40ba2983fb52123a7e0e6a28493d8464..ae178986f43c3e10fe481e86490c3ebc4e55e71a 100644 (file)
@@ -93,6 +93,16 @@ struct ldb_dn *ldb_dn_new(void *mem_ctx, struct ldb_context *ldb, const char *st
                         * 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 = talloc_strdup(dn, strdn);
        } else {