1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r20023: handle <SID=...> <WKGUID=...> dn's also in ldb_dn_new_fmt()

metze
This commit is contained in:
Stefan Metzmacher 2006-12-03 20:45:13 +00:00 committed by Gerald (Jerry) Carter
parent b9b705b7dd
commit 01e3a5080a

View 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 */ * exploded_dn control is used */
dn->special = true; dn->special = true;
/* FIXME: add a GUID string to ldb_dn structure */ /* 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; dn->linearized = strdn;