public boolean getConnexion(String login, String password, Object user) throws RemoteException {
        
        boolean b=ldapTemplate.authenticate("", "(uid="+login+")", password);
        if(b){
            Person p=dao.findByPrimaryKey(login);
            if(!userOnLineLogin.containsKey(p.getUid())){
            userOnLine.put(user, p);
            userOnLineLogin.put(p.getUid(), user);
            refreshRemoteUsersList();
            userOnLineL.add(user);
            
            }else{
                b=false;
            }
            
        }
        
        return b;
    }