[PATCH] Add DNS widkcard support.

Andrew Bartlett abartlet at samba.org
Thu Jul 27 03:31:01 UTC 2017

On Thu, 2017-07-27 at 14:00 +1200, Gary Lockyer via samba-technical
> Patches to add support for DNS wild card records.
> Tests validated against Windows server 2012 R2
> Reviews and push appreciated

Thanks Gary,

My biggest concern here is in the re-parsing of the DN as a string, and
then the manipulations required to try and create the wildcard

Can we instead parse this into a struct ldb_parse_tree and use routines
like ldb_dn_get_rdn_name() and ldb_dn_get_rdn_val() to work out the
bits you want from the original DN, and use LDB_SCOPE_ONELEVEL to
ensure you don't look further down the tree than you expect.

That should make the string work here seem much more mundane. 


Andrew Bartlett
Andrew Bartlett
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   

More information about the samba-technical mailing list