【发布时间】:2017-04-12 18:28:13
【问题描述】:
我正在尝试通过 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 解码一个值时没有成功
示例值:'\x04\x00\x01\x00\x05\xf0\x00\x00R\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|i7\x00\ xc0\xa8\x016' - 我知道这是一条 A 记录,将名称“barbel”指向 192.168.1.54
有人在 Python 中使用过 dnsRecord 值吗?
【问题讨论】:
标签: python data-structures dns active-directory ldap