python/sites: Rework site DN construction
authorAndrew Bartlett <abartlet@samba.org>
Thu, 29 Oct 2015 03:34:27 +0000 (16:34 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 24 Dec 2015 03:09:29 +0000 (04:09 +0100)
commit12813ea55518f7f953a80041e8d5dd1ae2107510
treeac203edf11db585c1ffa3520c0cb2f7002a1213c
parentdbcb13cb055f47926901e442d09ecb6fa77d1502
python/sites: Rework site  DN construction

This new routine is safe against escape characters and works
against Windows 2012R2.

The dn= filter in the old code was samba-specific.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/sites.py