Make the basedn optional.