这个连接能用了,可是检索用户的时候老是只能检索出一个用户
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
aResult=new ArrayList();
hResult=new Hashtable();
/*查询所有用户*/
NamingEnumeration en = ctx.search("","uid=*",constraints);
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
aResult=new ArrayList();
hResult=new Hashtable();
/*查询所有用户*/
NamingEnumeration en = ctx.search("","uid=*",constraints);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货