src/it/finsiel/siged/dao/jdbc/UtenteDAOjdbc.java
public void sincronizzaPassword(int utenteId, String newPwd)
            throws DataException {
        Connection connection = null;
        PreparedStatement pstmt = null;
        try {
            connection = jdbcMan.getConnection();
            pstmt = connection.prepareStatement(UPDATE_PASSWORD);
            pstmt.setString(1, newPwd);
            pstmt.setInt(2, utenteId);
            if (pstmt.executeUpdate() < 1)
                logger
                        .warn("Impossibile sincronizzare la password utente per id:"
                                + utenteId);

        } catch (Exception e) {
            throw new DataException(e.getMessage() + " id :" + utenteId);
        } finally {
            jdbcMan.close(pstmt);
            jdbcMan.close(connection);
        }
    }
/*
     * SINC PASSWORD BETWEEN LDAP AND APPLICATION
     */
SINC PASSWORD BETWEEN LDAP AND APPLICATION
SINC PASSWORD BETWEEN LDAP AND APPLICATION
public void sincronizzaPassword(int utenteId, String newPwd)
            throws DataException {
        Connection connection = null;
        PreparedStatement pstmt = null;
        try {
            connection = jdbcMan.getConnection();
            pstmt = connection.prepareStatement(UPDATE_PASSWORD);
            pstmt.setString(1, newPwd);
            pstmt.setInt(2, utenteId);
            if (pstmt.executeUpdate() < 1)
                logger
                        .warn("Impossibile sincronizzare la password utente per id:"
                                + utenteId);
        } catch (Exception e) {
            throw new DataException(e.getMessage() + " id :" + utenteId);
        } finally {
            jdbcMan.close(pstmt);
            jdbcMan.close(connection);
        }
    }
public void sincronizzaPassword ( int utenteId , String newPwd ) throws DataException { Connection connection = null ; PreparedStatement pstmt = null ; try { connection = jdbcMan . getConnection ( ) ; pstmt = connection . prepareStatement ( UPDATE_PASSWORD ) ; pstmt . setString ( 1 , newPwd ) ; pstmt . setInt ( 2 , utenteId ) ; if ( pstmt . executeUpdate ( ) < 1 ) logger . warn ( "Impossibile sincronizzare la password utente per id:" + utenteId ) ; } catch ( Exception e ) { throw new DataException ( e . getMessage ( ) + " id :" + utenteId ) ; } finally { jdbcMan . close ( pstmt ) ; jdbcMan . close ( connection ) ; } }
SINC PASSWORD BETWEEN LDAP AND APPLICATION
SINC PASSWORD BETWEEN LDAP AND APPLICATION