我的java程序如下:
 public static String MY_SEARCHBASE="dc=example,dc=com";
    public static String MY_FILTER="(sn=lh)";  public List SelectUser(String userID) {
    List list = new ArrayList();
    LdapContextUtil ldapContextUtil = new LdapContextUtil();
    DirContext ctx = ldapContextUtil.getContext();
    try {
  
      SearchControls sh=new SearchControls();
         sh.setSearchScope(SearchControls.SUBTREE_SCOPE);
         NamingEnumeration rss=ctx.search(MY_SEARCHBASE,MY_FILTER,sh);
报错为:
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'dc=example,dc=com'请问为什么?如何解决?已经困扰二天了,郁闷中:(