如果在积极目录中仅仅存在用户,那么以下搜索术语似乎会回合:
NamingEnumeration<SearchResult> ne = dirContext.search(
baseDN,
userObjectQuery,
new String[] { userName },
SearchControls)
用户目标表喜欢userObjectQuery=(&;sAMAccountName=%u)(objectqu=user)
。
用户名称将取代以上<代码>%。
我如何确保用户口号也相应,然后才回去?