为空的时候使用的是匿名验证。
你可以使用ldapbind命令测试一下:
ldapbind -h test.com -p 389 -D uid=xxx,dc=test,dc=com -w bldd我感觉你用的好像是AD吧?这是很变态的一个东西。