{
// we need to check this here instead of in AuthenticationService
// because otherwise we are going to start up the system incorrectly
if ( isAnonymous( env ) && env.containsKey( EnvKeys.DISABLE_ANONYMOUS ) )
{
throw new LdapNoPermissionException( "cannot bind as anonymous "
+ "on startup while disabling anonymous binds w/ property: "
+ EnvKeys.DISABLE_ANONYMOUS );
}
this.initialEnv = env;