User: starksm 
  Date: 02/04/14 11:58:07

  Modified:    src/main/org/jboss/security/auth/spi
                        UsernamePasswordLoginModule.java
                        UsersRolesLoginModule.java
  Log:
  - Update the login configuration implementation to support dynamic
  addition and removal of login configurations.
  - Fix problem with not returning copies of the AppConfigurationEntry[]
  which caused the LoginContext authentication protocol to reuse
  old login modules.
  
  Revision  Changes    Path
  1.11      +6 -3      
jbosssx/src/main/org/jboss/security/auth/spi/UsernamePasswordLoginModule.java
  
  Index: UsernamePasswordLoginModule.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosssx/src/main/org/jboss/security/auth/spi/UsernamePasswordLoginModule.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- UsernamePasswordLoginModule.java  21 Feb 2002 19:16:43 -0000      1.10
  +++ UsernamePasswordLoginModule.java  14 Apr 2002 18:58:06 -0000      1.11
  @@ -42,7 +42,7 @@
    * @see #getRoleSets()
    
    @author [EMAIL PROTECTED]
  - @version $Revision: 1.10 $
  + @version $Revision: 1.11 $
    */
   public abstract class UsernamePasswordLoginModule extends AbstractServerLoginModule
   {
  @@ -96,7 +96,7 @@
         }
      }
   
  -   /**
  +   /** Perform the authentication of the username and password.
       */
      public boolean login() throws LoginException
      {
  @@ -171,7 +171,10 @@
      }
      protected String getUsername()
      {
  -      return getIdentity().getName();
  +      String username = null;
  +      if( getIdentity() != null )
  +         username = getIdentity().getName();
  +      return username;
      }
   
      /** Called by login() to acquire the username and password strings for
  
  
  
  1.10      +1 -1      
jbosssx/src/main/org/jboss/security/auth/spi/UsersRolesLoginModule.java
  
  Index: UsersRolesLoginModule.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosssx/src/main/org/jboss/security/auth/spi/UsersRolesLoginModule.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- UsersRolesLoginModule.java        8 Feb 2002 23:56:47 -0000       1.9
  +++ UsersRolesLoginModule.java        14 Apr 2002 18:58:06 -0000      1.10
  @@ -131,7 +131,7 @@
           SimpleGroup rolesGroup = new SimpleGroup("Roles");
           ArrayList groups = new ArrayList();
           groups.add(rolesGroup);
  -        while( users.hasMoreElements() )
  +        while( users.hasMoreElements() && targetUser != null )
           {
               String user = (String) users.nextElement();
               String value = roles.getProperty(user);
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to