From: Wolfgang M. M. <wol...@us...> - 2004-04-24 13:46:02
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xmldb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7226/src/org/exist/xmldb Modified Files: DatabaseImpl.java Log Message: Added XmldbRealm for Tomcat Index: DatabaseImpl.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/DatabaseImpl.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** DatabaseImpl.java 14 Apr 2004 12:17:22 -0000 1.12 --- DatabaseImpl.java 24 Apr 2004 13:45:54 -0000 1.13 *************** *** 166,175 **** if ( user != null ) { u = pool.getSecurityManager().getUser( user ); ! if ( u == null ) ! throw new XMLDBException( ErrorCodes.PERMISSION_DENIED, "user " + user + " does not exist" ); ! if ( !u.validate( password ) ) ! throw new XMLDBException( ErrorCodes.PERMISSION_DENIED, "invalid password" ); } try { --- 166,177 ---- if ( user != null ) { u = pool.getSecurityManager().getUser( user ); ! if ( u == null ) { ! throw new XMLDBException( ErrorCodes.PERMISSION_DENIED, "user " + user + " does not exist" ); ! } ! if ( !u.validate( password ) ) { ! throw new XMLDBException( ErrorCodes.PERMISSION_DENIED, "invalid password" ); + } } try { |