Originally raised in spring-projects/spring-boot#17861
The org.springframework.ldap.core.support.AbstractContextSource class has a setupAuthenticatedEnvironment which is passed a principal and credentials. If either of these are null a NullPointerException is thrown because null values are not permitted in a Hashtable.
I think it might be better if DirContextAuthenticationStrategy implementations could guard against null values and not add entries in such cases.
Originally raised in spring-projects/spring-boot#17861
The
org.springframework.ldap.core.support.AbstractContextSourceclass has asetupAuthenticatedEnvironmentwhich is passed aprincipalandcredentials. If either of these arenullaNullPointerExceptionis thrown becausenullvalues are not permitted in aHashtable.I think it might be better if
DirContextAuthenticationStrategyimplementations could guard againstnullvalues and not add entries in such cases.