public static SysUser getUserFromLDAP(String uid) throws EasyJException {
LDAPConnection connection = new LDAPConnection();
try {
connection.connect(LDAPServerAddress, 389);
connection.bind(LDAPConnection.LDAP_V3, "cn=admin,dc=sei,dc=pku",
"seiseforge");
LDAPSearchResults rs = connection.search("uid=" + uid
+ ",ou=People,o=SEForge,dc=sei,dc=pku",
LDAPConnection.SCOPE_SUB, "objectClass=*", null, false);
SysUser user = new SysUser();