java.sql.SQLException: Scope not recognized

shineyear發表於2006-01-15
我使用JDBC-LDAP出現java.sql.SQLException: Scope not recognized錯誤,找不到問題在哪裡~~

程式碼如下:

Class.forName("com.octetstring.jdbcLdap.sql.JdbcLdapDriver");
String ldapConnectString ="jdbc:ldap://127.0.0.1:389/";
java.sql.Connection con;
con=DriverManager.getConnection(ldapConnectString,"cn=Manager,dc=guessant,dc=org","secret");
try {
Statement stmt = con.createStatement();
ResultSet rs =
stmt.executeQuery("SELECT * FROM ou=admin");
} catch (Exception e) {
e.printStackTrace();
}
}

相關文章