我正在尝试通过Python编辑Active Directory dnsRecord值。该属性值是一个二元结构 - 我找到文档在各种场所的结构如http://www.indented.co.uk/2009/06/18/mapping-the-dnsrecord-attribute/我也发现了Perl代码的几个例子来解释价值,如https://wiki.samba.org/index.php/Working_with_Active_Directory_encoded_LDAP_values使用Python编码/解码AD dnsRecord值
但是我在解码值一直不成功的与Python
值示例:“\ X04 \ X00 \ X01 \ X00 \ X05 \ XF0 \ X00 \ x00R \ X02 \ X00 \ X00 \ X00 \ X00 \ X00 \ X00 \ X00 \ X00 \ X00 \ X00 | i7的\ x00 \ xc0 \ xa8 \ x016' - 我知道这是一条指向名称“barbel”的记录到192.168.1.54
有没有人在Python中使用dnsRecord值?