是否有库、程序或简单的正则表达式来检查输入中指定的 DN 是否格式正确?
示例:输入:经理,ou=company,dc=net ---> 输出:格式不正确
输入:cn=manager, ou=company, dc=net ---> 输出:格式良好
ldap
ldap ×1