authorizedUsernames are case sensitive when using LDAP
<authorizedUsernames>Tom,Andy,Harry,Pez</authorizedUsernames> fails in openfire.xml while
<authorizedUsernames>tom,andy,harry,pez</authorizedUsernames> works fine.
Not sure if the setup process allows to add names with upper case characters but in any way Openfire should convert them to lower case to make sure that they work.
Added the clause when using LDAP, will retest using LDAP
LG, I cannot reproduce in latest trunk, looking at line 265 is there a particular place where you were running into this issue?