Lesson 22. Manage Network Services


Goals

Image Describe how macOS accesses shared network services

Image Configure built-in macOS network applications

Image Browse and access network file services using the Finder

Image Troubleshoot network shared service issues


Current operating systems provide a wide range of network and Internet service options, but all of them share the basic network architecture of client software, which accesses network services, and server software, which provides network services. macOS includes support for many popular network protocols, allowing you to connect and access a wide variety of shared network services.

This lesson first discusses the architecture of network services, in a general sense. Then you will be introduced to the key network service applications built into macOS. You will then learn how macOS can access popular file-sharing services. Finally, this lesson covers techniques for troubleshooting network services when problems arise.

Reference 22.1 About Network Services

From an architectural standpoint, shared network services are defined by client software (designed to access the service) and server software (designed to provide the service). The network service communication between the client and server software is facilitated by commonly known network protocols and standards.

By adhering to such standards, software developers can create unique yet compatible network client and server software. This allows you to choose the software tool that best fits your needs. For instance, you can use the built-in macOS Mail client created by Apple to access mail services provided by Apple, Google, Yahoo, or Microsoft.

About Network Services Software

Some client software takes the form of dedicated applications, as is the case with many Internet services, like email and web browsing. Other client software is integrated into the operating system—file and print services, for example. In either case, when you establish a network service connection, settings for that service are saved on the local computer to preference files. These client preferences often include resource locations and authentication information.

On the other side of this relationship is the server software, which is responsible for providing access to the shared resource. Properly setting up server software is usually a much more complicated affair. Server administrators may spend weeks designing, configuring, and administering the software that provides network services. Server-side settings include configuration options, protocol settings, and account information.

About Network Services Communication

Network clients and servers, sometimes of different makes, communicate using commonly known network protocols or network standards. A protocol becomes a standard once it is widely adopted and ratified by a standards committee. Part of what defines a specific network protocol is which TCP or UDP (User Datagram Protocol) ports are used for communications.

A primary feature of both the TCP and UDP transport mechanisms is the ability to handle multiple simultaneous connections and service protocols. This is accomplished by assigning each communication service to a specific port number or port range. Both TCP and UDP connection ports are defined between 0 and 65,535.

For instance, the standard TCP port for web traffic is port 80. When troubleshooting a network service, you must know the port numbers or ranges for that service. Apple maintains a list of commonly used network services and their associated TCP or UDP ports at Apple Support article HT202944, “TCP and UDP ports used by Apple software products.”


Note

This guide assumes the default port numbers and port ranges for each network service. Network administrators may choose to use a different port number than the default for testing, to “hide” a service, or to bypass router restrictions.


About Network Service Identification

At a minimum, accessing a network service requires knowledge of the service’s local network or Internet location. Some network services feature dynamic service discovery, which allows you to easily locate a network service by simply browsing a list of available services. In other cases, you must manually identify the service’s location with a specific network host address or name. Examples of both methods are detailed later in this lesson.

Finally, some network services are so popular that macOS includes built-in mechanisms for automatically locating the appropriate network service resources. Services in this last category are mainly configured via the Internet Accounts preferences, also covered later in this lesson.

Once you have located and connected to a network service, you often need to prove your identity to that service provider. This process is called authentication. Successful authentication to a network service is usually the last step in establishing a connection to that service. Once a connection is established, security technologies are normally in place to ensure that you’re allowed to access only certain resources. This process is called authorization. Both of these fundamental network service concepts, authentication and authorization, will be covered throughout this lesson and the next, Lesson 23, “Manage Host Sharing and Personal Firewall.”

About Dynamic Service Discovery

Requiring users to manually enter network addresses to access a network service isn’t very user friendly. What if you join a new network without knowing the exact names of all its available resources? Or what if the shared resource you need is hosted from another client computer that doesn’t have a DNS host name or the same IP address every time? To address these issues, macOS supports dynamic network service discovery protocols.

Dynamic network service discovery protocols allow you to browse local area and wide area network resources without knowing specific service addresses. In a nutshell, network devices providing services advertise the availability of their services on the network. As available network resources change, or as you move your client to different networks, the service discovery protocols dynamically update the list of available services.

macOS makes ample use of dynamic network service discovery throughout. For example, dynamic network service discovery allows you to browse for available network file shares with the Finder or to locate new network printers from the Printers & Scanners preferences. Other network applications built into macOS use service discovery to locate a variety of shared resources, including Messages, Image Capture, Photos, iTunes, Safari, and the macOS Server application. Third-party network applications also take advantage of dynamic network service discovery.

It is important to remember that the discovery protocol is used only to help you and the system locate available services. Once the discovery protocol provides your computer with a list of available services, its job is done. When you connect to a discovered service, the Mac establishes a connection to the service using the service’s protocol. For example, the Bonjour service discovery protocol can provide the Mac with a list of available screen-sharing systems, but when you select a Mac server from this list, the Mac establishes a screen-sharing connection to the server using the Virtual Network Computing (VNC) protocol.


Note

Mac OS X Snow Leopard 10.6 and later are no longer compatible with the AppleTalk network browsing or service connections.


Bonjour

Bonjour is the Apple implementation of Zero Configuration Networking, or Zeroconf, a collection of standards drafts that provide automatic local network configuration, naming, and service discovery. Bonjour uses a broadcast discovery protocol known as multicast DNS (mDNS) on UDP port 5353.


More Info

You can find out more about Bonjour at www.apple.com/support/bonjour/.


Bonjour is the primary set of dynamic network service discovery protocols used by macOS native services and applications. Bonjour is preferred because it is based on TCP/IP standards, so it integrates well with other TCP/IP-based network services. macOS also includes support for Wide-Area Bonjour, allowing you to browse WAN resources as well as LAN resources.

Whereas local Bonjour requires no configuration, Wide-Area Bonjour requires that your Mac be configured to use a DNS server and search domain that supports the protocol. Configuring DNS is covered in Lesson 19, “Manage Basic Network Settings,” and Lesson 20, “Manage Advanced Network Settings.”


More Info

macOS also supports network identification via the Back to My Mac feature in iCloud. However, a Back to My Mac system can be located only by the iCloud user who set it up. In other words, it doesn’t help other users locate your system. You can find out more about Back to My Mac from Apple Support article HT204618, “Set up and use Back to My Mac.”


Server Message Block

Originally designed by Microsoft, Server Message Block (SMB) has become the most common network service for sharing files and printers. SMB also includes a network discovery service that runs on UDP ports 137 and 138. Most current operating systems that provide support for SMB sharing also support dynamic discovery via SMB.

Despite the preferred status of SMB as the default file-sharing protocol in OS X Yosemite 10.10 and later, the network discovery portion of SMB is still not preferred over Bonjour. However, macOS does support browsing through the legacy NetBIOS and WINS protocols. Details on configuration of NetBIOS and WINS are covered in Lesson 20, “Manage Advanced Network Settings.”

About Network Host Addressing

At a minimum, all network hosts can be reached by their IP address. For most people, though, IP addresses are hard to remember, so other technologies have been created to give network hosts human-friendly network names.

Network host identification methods include:

Image IP address(es)—The primary network identifier for your Mac, an IP address, can always be used to establish a network connection.

Image DNS host name—All Mac computers have a host name configured via one of two methods. Traditionally, these names are hosted on a DNS server configured by administration at the DNS server. The Mac attempts to resolve its host name by performing a DNS reverse lookup on its primary IP address. However, many network clients don’t have properly configured DNS host names because of the administrative overhead required to create and update client DNS entries. So if the Mac can’t resolve a host name from the DNS server, it uses the Bonjour name instead.

Image Computer name—This name is used by other Apple systems to identify your Mac. The computer name is part of the Apple Bonjour implementation and is set in the Sharing preferences. The computer name is also used by AirDrop peer-to-peer file sharing.

Image Bonjour name—As covered previously, Bonjour is the macOS primary dynamic network discovery protocol; in addition, Bonjour provides a convenient naming system for use on a local network. The Bonjour name is usually similar to the computer name, but it differs in that it conforms to DNS naming standards and ends with .local. This allows the Bonjour name to be supported by more network devices than the standard computer name, which is generally recognized only by Apple systems. This name is also set in the Sharing preferences.

Image NetBIOS/WINS name—This name is used for the legacy Windows dynamic network discovery protocols as part of the SMB service. This name is set in either the Sharing or Network preferences.

Image

Reference 22.2 Configure Network Service Applications

Because of the widespread adoption of TCP/IP for nearly all LAN, WAN, and Internet communications, there really isn’t any difference between how you access a “standard network service” and an “Internet service.” With few exceptions, nearly all network services work the same way across a LAN as they do across the Internet. The primary difference between the two is the scope of service. Services like email and instant messaging can certainly work on a local level, but these services are also designed to communicate across separate networks and between servers. macOS includes a range of client applications designed to access different network services.


Tip

Although this guide focuses on the network client software built into macOS, many excellent third-party network clients are available for the Mac. In fact, when troubleshooting a network access problem, using an alternative network client is an excellent way to determine whether the issue is specific to your primary client software.


Use Safari Web Browser

macOS Sierra includes the updated Safari web browser. Safari is an efficient and robust browser that supports most websites. By far the most popular and ubiquitous network service, the Hypertext Transfer Protocol (HTTP) handles web communication using TCP port 80. Secure web communication, known by the acronym HTTPS, encrypts HTTP over a Secure Sockets Layer (SSL) or, more recently, over a Transport Layer Security (TLS) connection that by default uses TCP port 443.

Generally, little additional network configuration is required to use web services. You only need to provide the web browser with the Uniform Resource Locator (URL) or web address of the resource to which you want to connect. In macOS Sierra, Safari defaults to the most secure TLS communication even if you don’t specify HTTPS in the URL. The only exception is if you have to configure web proxies, as described in Lesson 20, “Manage Advanced Network Settings.”


More Info

You can find out more about Safari from the Apple website at www.apple.com/safari.


About Internet Accounts Preferences

A feature clearly influenced by iOS, the Internet Accounts preferences provides a single unified interface for configuring network service accounts. Formerly known as Mail, Contacts & Calendars preferences, the Internet Accounts preferences is used to configure a variety of macOS applications and services. In other words, entering a single network service account in the Internet Accounts preferences configures all appropriate network service applications built into macOS.

Image

Through the Internet Accounts preferences, macOS can be configured to use network service accounts for Apple iCloud, Microsoft Exchange, Google, Twitter, Facebook, LinkedIn, Yahoo, AOL, Vimeo, Flickr, and other common network service protocols, including those hosted from a system running macOS Server.


Note

macOS requires Microsoft Exchange Server 2007 Service Pack 1 Update Rollup 4 or later, with Exchange Web Services enabled. The Mail application also supports the various Microsoft-hosted Exchange services.



Note

The Internet Accounts preferences also includes support for services popular in non-English-speaking countries. These services appear automatically when the appropriate region is selected in the Language & Region preferences.


Each different service type includes varying levels of support for built-in macOS applications and services. For example, signing in with a Twitter account configures the system so that you can tweet from Notification Center or any supported application—whereas signing in to a service that provides multiple features, like Google or Yahoo, in turn configures multiple applications, including Mail, Notes, Calendar, Reminders, Contacts, and Messages. Apple iCloud includes support for even more features, including iCloud Drive, Photos, Safari, iCloud Keychain, Back to My Mac, Find My Mac, and FaceTime.

Configure Network Service Accounts

The best method for configuring network service accounts in macOS is by using the Internet Accounts preferences. Simply click an included service provider to get the sign-up process started. This reveals a service sign-in dialog, wherein each service will likely provide its own unique authentication dialog.

Image

Tip

If you don’t see the Internet Accounts list of services, simply click the small Add (+) button at the lower-right corner of the preferences pane.


If you are signing in to a service with multiple features, after you successfully authenticate, you will be allowed to enable any available options for the service. You can also return to the Internet Accounts preferences at any point to enable or disable a service feature. Additionally, from there you can verify or reenter account information by clicking the Details button.

Image

If you need to configure an Internet service that’s not listed in the Internet Accounts preferences, or you need to configure a local service provided by your organization, click Add Other Account at the bottom of the services list. This reveals a dialog allowing you to manually configure services for Mail, Notes, Calendar, Reminders, Contacts, and Messages. In many cases, if you add a service this way you will likely have to define additional configuration information. This information should be provided to you by an administrator of the service.

Image

If you choose “Server account,” the following dialog searches the local network for an OS X Server 10.7 or later system that provides compatible services.

Image

You can select your server from the list or enter the host name of a server that’s not on your local network. Because macOS can automatically detect macOS Server services, you’ll only need to enter network account authentication to complete the setup.

macOS can also accept a configuration profile for automatic configuration of network service accounts settings. A network administrator would provide a configuration profile containing all the necessary settings to properly configure the macOS network applications for a specific network service account. These settings can be deployed by simply double-clicking a local copy of a configuration profile or by having the Mac managed by a mobile device management (MDM) solution.


More Info

macOS Server can provide MDM services through Profile Manager. You can find out more about Profile Manager in macOS Server at www.apple.com/macos/server/.


Configure Mail

macOS includes the Mail application for handling email communications. Mail supports all standard email protocols and their encrypted counterparts, along with a variety of authentication standards. Mail also includes support for Exchange-based services.

With this many service options, properly configuring mail service settings can be quite daunting. Ideally, Mail is configured automatically via the Internet Accounts preferences or via a configuration profile. In fact, in the Mail application, selecting the menu option Mail > Accounts will redirect you to the Internet Accounts preferences.

Mail also includes its own account setup assistant that will walk you through the process of configuring mail account settings. This assistant starts automatically if no account has been set when Mail is opened, but you can start it at any time by selecting Mail > Add Account. The assistant first presents an interface similar to that found in the Internet Accounts preferences.

Image

When you select one of these default mail account types, the assistant attempts to automatically determine the appropriate mail protocol, security, and authentication settings. This includes support for the Autodiscovery feature of Microsoft Exchange Server. Further, when you set up a mail account here, the system will automatically attempt to configure Notes, Calendar, Reminders, and Contacts as well.

If you need to configure Mail for an account type not listed in the defaults, select the Other Mail Account option. After entering basic mail account information, the assistant attempts to automatically determine the appropriate mail settings. If your mail service uses a nonstandard configuration or is unreachable, you may have to manually enter the mail service settings here. This means you may need to work with the service administrator to obtain the appropriate configuration settings.

Image

Note

If you need to further tweak mail service settings, you’ll find advanced options in the Mail Accounts preferences, accessed by selecting Mail > Preferences. When the Mail preferences window opens, click the Accounts button in the toolbar to view and manage all Mail accounts.


In summary, macOS Mail support the following email services:

Image Standard mailbox access protocols—The standard protocol used between mail clients and mail servers for receiving mail is either Post Office Protocol (POP) on TCP port 110 or Internet Message Access Protocol (IMAP) on TCP port 143. Both protocols can also be encrypted with an SSL connection. By default, encrypted POP uses TCP port 995 and encrypted IMAP uses TCP port 993. Finally, iCloud defaults to secure IMAP.

Image Standard mail-sending protocols—The standard protocol used for sending mail from clients to servers and from server to server is Simple Mail Transfer Protocol (SMTP) on TCP port 25. Again, SMTP can be encrypted with an SSL connection on port 25, 465, or 587. The port used for secure SMTP varies by mail server function and administrator preference. Finally, iCloud defaults to secure SMTP.

Image Exchange-based mail service—Although popular, these services do not use mail standards for client communication. Instead, Mail communicates using the EWS protocol. EWS uses the standard ports for web traffic: TCP port 80 for standard transport and TCP port 443 for secure transport.

Configure Notes

Notes in OS X El Capitan 10.11 or later goes well beyond simple text notes by allowing you to include nearly any media in a note, including photos, video, map coordinates, and freehand drawn scribbles. As a default, Notes will save to the local system, but you can also have all your notes available on multiple devices when the Notes application is configured with a compatible service account.

The ability for Notes to contain media beyond simple text also required a significant change to how notes are saved via a network service. Notes in macOS Sierra defaults to saving via iCloud. This change was necessary to support the rich media that the new Notes application allows.

The legacy network service method for Notes is still available but only supports simple text notes. This legacy method utilizes EWS (Exchange Web Services) or IMAP mail services as the mechanism for saving the notes. In this case, the Notes application creates a special Notes mailbox on your mail service and automatically manages this mailbox; thus, the Mail application ignores this mailbox. However, you may notice this mailbox when using older versions of Mail or third-party mail clients.


Tip

You can also share individual notes to others via alternative network services, like iMessage or Facebook, by clicking the Share button (up-pointing arrow inside a box) in the Notes toolbar.


Upgrade a Legacy Notes Account

Users with a Notes account that have upgraded from OS X Yosemite 10.10 or earlier will be automatically prompted to upgrade to the new Notes sharing service.

Image

Accepting this one-way upgrade will move your existing notes to iCloud, which allows for all the features in Notes for OS X El Capitan 10.11 or later. Obviously, this upgrade requires that the user be signed in to iCloud. This also means that your upgraded notes are compatible only with the Notes application on iOS 9 or later. For this reason, if you still use Notes on devices with previous systems, you may not wish to upgrade immediately. If you plan to wait initially, at any point later you can upgrade by clicking the Upgrade button at the top of the notes listing.


Tip

Apple devices running previous systems, or any non-Apple devices, can also access upgraded notes from the iCloud website.


Image

More Info

You can find out more about the Notes upgrade process from Apple Support article HT204987, “Upgrade your Notes app.”


Configure a New Notes Account

Ideally, Notes will have been configured automatically along with other services via the iCloud or Internet Accounts preferences. In fact, in the Notes application, selecting the menu option Notes > Accounts will redirect you to the Internet Accounts preferences. As an option, the Internet Accounts preferences allow you to configure Notes without also configuring iCloud or the Mail application. However, without access to an iCloud account, Notes will use the legacy network service method that requires use of an EWS or IMAP mail service from a network service provider.

Configure Calendar and Reminders

macOS includes a scheduling application, Calendar, previously known as iCal. Although Calendar can certainly work on its own for managing your calendar information on your local Mac, it also integrates with a variety of network calendar services based on the EWS or CalDAV protocols. CalDAV, or Calendaring Extensions to WebDAV, as its name states, extends WebDAV (Web Distributed Authoring and Versioning), which is itself an extension of HTTP.

Ideally, Calendar will already have been configured automatically along with Mail via the Internet Accounts preferences or a configuration profile. In fact, in the Calendar application, selecting the menu option Calendar > Accounts redirects you to the Internet Accounts preferences.

Calendar also includes its own account setup assistant, which will walk you through the process of configuring mail account settings. This assistant doesn’t start automatically when the Calendar application is opened, but you can start it at any time by selecting Calendar > Add Account.

Image

When you select one of these default calendar account types, the assistant attempts to automatically determine the appropriate calendar service security and authentication settings. This includes support for the Autodiscovery feature of Microsoft Exchange Server. Further, when you set up a calendar account here, the system will automatically attempt to configure Mail, Notes, Reminders, and Contacts as well.

If you need to configure Calendar for an account type not listed in the defaults, select the option Other CalDAV Account. After entering the user mail address and account password, the assistant attempts to automatically determine the appropriate CalDAV settings. If your mail service uses a nonstandard configuration or is unreachable, you may have to manually enter the CalDAV service settings here. This means you may need to work with the service administrator to obtain the appropriate configuration settings.

Image

Note

If you need to further tweak calendar service settings, you’ll find advanced options in the Calendar Accounts preferences, accessed by selecting Calendar > Preferences. When the Calendar preferences window opens, select the Accounts button in the toolbar to view and manage all calendar service accounts.


Closely related to Calendar is the Reminders application, which allows you to maintain a personal to-do list. Reminders enables to-do lists to be saved on the local system, but you can also have to-do lists available on multiple devices when the Reminders application is configured for access to calendar services. This is because Reminders utilizes EWS or CalDAV network calendar services as the mechanism for saving the notes. Reminders creates to-do calendar events and automatically manages these events. Thus, the Calendar application ignores to-do events. However, many third-party calendar applications support to-do events within their interface; this includes previous versions of OS X iCal.

Ideally, Reminders will have been configured automatically along with other services via the Internet Accounts preferences or via a configuration profile. In fact, in the Reminders application, selecting the menu option Reminders > Accounts redirects you to the Internet Accounts preferences. As an option, the Internet Accounts preferences allow you to configure Reminders without also configuring Calendar. However, the Reminders application still requires use of an EWS or CalDAV calendar service from a network service provider.

Also like the Calendar application, Reminders includes its own account setup assistant, which will walk you through the process of configuring mail account settings. This assistant doesn’t start automatically when the Reminders application is opened, but you can start it at any time by selecting Reminders > Add Account. The assistant presents an interface similar to the Calendar Setup Assistant because again, Reminders only connects to EWS or CalDAV services. As of this writing, Reminders doesn’t support Facebook or Google calendar services.

Image

In summary, Calendar and Reminders support the following network calendar services:

Image CalDAV collaborative calendaring—Calendar supports a network calendar standard known as CalDAV. This standard uses WebDAV as a transport mechanism on TCP port 8008 or 8443 for encrypted communication, but CalDAV adds the administrative processes required to facilitate calendar and scheduling collaboration. The macOS Server Calendar service is based on CalDAV. Furthermore, CalDAV is being developed as an open standard, so any vendor can create software that provides or connects to CalDAV services.

Image Internet-based calendar services—Calendar and Reminders can use a variety of Internet-based calendar services, including iCloud, Yahoo, and Google calendar services. All three of these services are based on CalDAV and use the encrypted HTTPS protocol over TCP port 443.

Image Exchange-based calendaring service—Calendar includes support for this popular calendar service. Again, the macOS Exchange integration relies on EWS, which uses TCP port 80 for standard transport and TCP port 443 for secure transport.

Image Calendar web publishing and subscription—Calendar allows you to share your calendar information by publishing iCalendar files to WebDAV-enabled web servers. Because, as mentioned, WebDAV is an extension to the HTTP protocol, it runs over TCP port 80, or TCP port 443 if encrypted. You can also subscribe to iCalendar files, identified by the filename extension .ics, hosted on WebDAV servers. Configuration is fairly easy—accessing a shared calendar is identical to accessing a webpage. Simply provide the Calendar application with the URL of the iCalendar file. Although calendar publishing enables you to easily share calendars one way over the web, it doesn’t provide a true collaborative calendaring environment.


More Info

Apple hosts dozens of compatible calendars at www.apple.com/downloads/macosx/calendars.


Image Calendar email invitation—Calendar, again using iCalendar files, is integrated with Mail to automatically send and receive calendar invitations as email attachments. In this case the transport mechanism is whatever your primary mail account is configured to use. Although this method isn’t a calendaring standard, most popular mail and calendar clients can use this method.

Configure Contacts

macOS includes a contact management application, Contacts, previously known as Address Book. Similarly to other macOS network applications, Contacts, although it can certainly work on its own for managing nonshared contact information on your Mac, also integrates with a variety of network contact services based on EWS, CardDAV (Card Distributed Authoring and Versioning), or LDAP (Lightweight Directory Access Protocol).

Again, ideally Contacts is configured automatically via Internet Accounts preferences or a configuration profile. However, Contacts also features an easy-to-use setup assistant for configuring specific contact or directory network service accounts. You can start it at any time by selecting Contacts > Add Account. The assistant first presents an interface similar to that found in the Internet Accounts preferences.

Image

When you select one of these default contacts account types, the assistant attempts to automatically determine the appropriate account settings. This includes support for the Autodiscovery feature of Microsoft Exchange Server. Further, when you set up a contacts account here, the system will automatically attempt to configure Mail, Notes, Calendar, and Reminders as well.

If you need to configure Contacts for an account type not listed in the defaults, select the last option, Other Contacts Account. The only two other account types supported by the Contacts application are CardDAV and LDAP. Select the account type from the pop-up menu, and then provide the server and authentication information. You may need to work with the service administrator to obtain the appropriate configuration settings.

Image

Note

If you need to further tweak contact service settings, you’ll find advanced options in the Contacts Accounts preferences, accessed by selecting Contacts > Preferences. When the Contacts preferences window opens, click the Accounts button in the toolbar to view and manage all contact service accounts.


In summary, Contacts supports the following network contact services:

Image CardDAV contacts service—Contacts supports a network contacts service standard known as CardDAV. Here again, as the name implies, this standard uses WebDAV as a transport mechanism on TCP port 8800 or 8843 for encrypted communication. The macOS Server Contacts service is based on CardDAV. Furthermore, CardDAV is being developed as an open standard, so any vendor can create software that provides or connects to CardDAV services.


Note

The Apple selection of TCP ports 8800 and 8843 for CardDAV is not based on any assigned standard. Some implementations of CardDAV may use the standard ports for HTTP(S) and TCP, ports 80 and 443, for encrypted communication.


Image Internet-based contact services—Contacts can use a variety of Internet-based contact services, including iCloud, Google, Facebook, LinkedIn, and Yahoo contact services. All of these services are based on CardDAV and use the encrypted HTTPS protocol over TCP port 443.

Image Exchange-based contact service—Contacts includes support for this popular contact sharing service. Again, the macOS Exchange integration relies on EWS, which uses TCP port 80 for standard transport and TCP port 443 for secure transport.

Image Directory service contacts—Contacts can search contact databases via LDAP, the standard for network directory services, which uses TCP port 389 for standard transport and TCP port 636 for secure transport. Contacts can be configured for LDAP services either directly from its account setup assistant or via integration with the macOS systemwide directory service, as configured in the Users & Groups preferences.

Configure Messages

Instant messaging has grown well beyond text chatting with Messages, the application formerly known as iChat, included with macOS. Messages supports peer-to-peer file sharing, remote screen sharing, and high-resolution Messages Theater for sharing video from supported applications. Finally, Messages also includes support for the push-based messaging service iMessage, which allows you to communicate with iOS devices as well.


Note

Messages in macOS Sierra supports audio and video communications through FaceTime. Configuring FaceTime is detailed later in this lesson.


Again, ideally Messages will have been configured automatically when you signed in to iCloud or via a configuration profile. However, Messages also includes its own account setup assistant that will walk you through the process of configuring messaging account settings. This assistant starts automatically if no account has been set when Messages is opened, but you can start it at any time by selecting Messages > Add Account.

Image

You can enter any valid Apple ID to configure iMessage. After authentication, you may be prompted to choose additional iMessage identifiers that can be used to reach you, like other email accounts or mobile numbers. If you choose to skip configuration of iMessage, the Messages Setup Assistant then presents an interface similar to that found in the Internet Accounts preferences. You can also start this assistant at any time by selecting the menu option Messages > Add Account.

Image

When you select one of these default messaging account types, the assistant attempts to automatically determine the appropriate account settings. If you need to configure Messages for an account type not listed in the defaults, select the last option, Other Messages Account. The only other account type supported by Messages is a manually configured Jabber service. Curiously, you can also choose to configure the three account types seen from the default list.

Select the account type from the pop-up menu and then provide the server and authentication information. You may need to work with the service administrator to obtain the appropriate configuration settings.

Image

Note

If you need to further tweak message service settings, you’ll find advanced options in the Messages Accounts preferences, accessed by selecting Messages > Preferences. When the Messages preferences window opens, click the Accounts button in the toolbar to view and manage all message service accounts.


In summary, Messages supports the following categories of chat services:

Image Internet messaging services—Messages supports AOL Instant Messenger (AIM), Google Talk, and Yahoo chat accounts. Assuming you have already registered for an account through one of these service providers, configuring Messages simply entails entering your account name and password.

Image iMessage—The iMessage service is unique to Apple and can also be configured via Internet Accounts preferences or iCloud preferences. The iMessage protocol is facilitated via the Apple Push Notification service (APNs), which uses TCP port 5223, and fallback on Wi-Fi only to port 443. APNs is highly efficient for devices that rely on battery power and may occasionally lose network connectivity. This makes the iMessage service ideal for messaging with mobile Mac computers and iOS devices. However, Messages is limited to a single iMessage account per computer user account.

Image Short Message Service (SMS)—If you are signed in to the iMessage service using the same Apple ID on both your Mac and an iPhone running iOS 8 or later, you can send and receive SMS messages via the iMessage protocol through an iPhone cellular connection. You must manually enable this feature on your iPhone in Settings > Messages before SMS messaging will be available to your Mac. For more information, see Apple Support article HT204681, “Use Continuity to connect your Mac, iPhone, iPad, iPod touch, and Apple Watch.”

Image Privately hosted messaging services—Messages works with open source Jabber servers, including the OS X Server Messages service. Jabber servers are based on the Extensible Messaging and Presence Protocol (XMPP), which uses TCP port 5222 or 5223 for encrypted communication.

Image Ad hoc messaging—Messages can use the Bonjour network discovery protocol to automatically find other Messages or iChat users. No configuration is necessary to access Bonjour messaging. Bonjour details are covered in Lesson 23, “Manage Host Sharing and Personal Firewall.”

Messages is compatible with a wide variety of messaging features and instant messaging protocols—which means it uses far too many TCP and UDP ports to list here. However, if you are having trouble with the iMessages service specifically, you should verify availability of APNs via Apple Support article HT202078, “If you use FaceTime and iMessage behind a firewall.”

Configure FaceTime

FaceTime provides macOS Sierra with audio and video conferencing abilities, including the ability to answer or call standard phone numbers via a compatible iPhone. Similar to the iMessages service, FaceTime is unique to Apple and leverages APNs to initiate audio or video communications.

To use FaceTime your Mac must also be connected to a compatible camera and microphone. All macOS Sierra–compatible iMac and MacBook computers feature built-in cameras and microphones that are FaceTime compatible.

Again, ideally FaceTime will have been configured automatically when you signed in to iCloud. However, Messages also includes its own account setup assistant that will walk you through the process of configuring messaging account settings. This assistant starts automatically if no account has been set when Messages is opened.

Image

You can enter any valid Apple ID to configure FaceTime. After authentication, you may be prompted to choose additional FaceTime identifiers that can be used to reach you, like other email accounts or, if you have FaceTime on your iPhone, other mobile numbers. Unlike other network service client applications, you must sign in to use FaceTime and you can only sign in to one account per local user account.

To handle phone calls on your Mac via FaceTime, you will need to be signed in to FaceTime on both your Mac and iPhone with iOS 8 or later. You will have to sign in to FaceTime on your iPhone first to enable FaceTime cellular phone calls. You should also check to ensure your iPhone cellular number is enabled in the FaceTime preferences on your Mac, which you can access by selecting the menu option FaceTime > Preferences.

Once signed in to FaceTime, the service is always ready to send and receive FaceTime calls, even when you quit the FaceTime application. If you wish to turn off FaceTime calls, you can do so from within the FaceTime application by selecting the menu option FaceTime > Turn FaceTime Off or by using the Command-K keyboard shortcut. To start receiving FaceTime calls again, use the same keyboard shortcut or choose Turn FaceTime On from the same menu. Finally, you can permanently halt all calls to your Mac by signing out of your account from the FaceTime preferences.

FaceTime uses a variety of standard and non-reserved TCP and UDP ports to facilitate calls. Specifically, you should verify availability of the ports in Apple Support article HT202078, “If you use FaceTime and iMessage behind a firewall.”

Reference 22.3 Connect to File-Sharing Services

The Finder provides two methods for connecting to a network file system: automatically discovering shared resources by browsing them in the Finder Network folder or manually connecting by entering the address of the server providing the file service.

About File-Sharing Services

Many protocols exist for transferring files across networks and the Internet, but the most efficient are those designed specifically to share file systems. Network file servers can make entire file systems available to your client computer across the network.

Client software built into the macOS Finder can mount a network file service much as it would mount a locally connected storage volume. Once a network file service is mounted to the Mac, you can read, write, and manipulate files and folders as if you were accessing a local file system.

Additionally, access privileges to network file services are defined by the same ownership and permissions architecture used by local file systems. Details on file systems, ownership, and permissions are covered in Lesson 11, “Manage Permissions and Sharing.”

macOS provides built-in support for these network file service protocols:

Image Server Message Block version 3 (SMB 3) on TCP ports 139 and 445—This is the default (and preferred) file-sharing protocol for OS X Yosemite 10.10 and later. Historically, the SMB protocol was mainly used by Windows systems, but many other platforms have adopted support for some version of this protocol. The SMB 3 implementation in macOS works with advanced SMB features such as end-to-end encryption (if enabled on the server), per-packet signatures and validation, Distributed File Service (DFS) architecture, resource compounding, large maximum transmission unit (MTU) support, and aggressive performance caching. Finally, macOS maintains backward compatibility with older SMB standards.

Image Apple Filing Protocol (AFP) version 3 on TCP port 548 or encrypted over Secure Shell (SSH) on TCP port 22—This is the traditional Apple native network file service. The current version of AFP is compatible with all the features of the Apple native file system, Mac OS Extended. Further, AFP is still the default for backup systems that are based on Time Machine.

Image Network File System (NFS) version 4, which may use a variety of TCP or UDP ports—Used primarily by UNIX systems, NFS supports many advanced file-system features used by macOS.

Image WebDAV on TCP port 80 (HTTP) or encrypted on TCP port 443 (HTTPS)—As mentioned earlier, this protocol is an extension to the common HTTP service and provides basic read/write file services.

Image File Transfer Protocol (FTP) on TCP ports 20 and 21 or encrypted on TCP port 989 and 990 (FTPS)—This protocol is in many ways the lowest common denominator of file systems. FTP is supported by nearly every computing platform, but it provides only the most basic file-system functionality. Further, the Finder supports only read capability for FTP or FTPS shares.


Note

Don’t confuse FTPS (FTP-SSL) with another, similar protocol, SFTP (SSH File Transfer Protocol). The distinction is that FTPS uses SSL encryption on TCP port 990, and SFTP uses SSH encryption on TCP port 22. The Finder does not support FTPS. However, both are supported in Terminal.


Browse File-Sharing Services

You can browse for dynamically discovered file services from two locations in the Finder. The first location is the Shared list located in the Finder sidebar or within the Open dialog of any application. If it’s enabled in Finder preferences, the Shared list is ideal for quickly discovering computers providing file services on a small network. The Shared list shows only the first eight discovered computers providing services. If additional servers are discovered, the last item in the Shared list, All, is a link to the Finder Network folder.

Image

Tip

The Finder Shared list shows servers that you are currently connected to, even if they didn’t originally appear in the Shared list.


The Finder Network folder is a special place in macOS. The Network folder is not a standard folder at all; it’s an amalgamation of all dynamically discovered network file services and all currently mounted file systems, including manually mounted ones. Obviously, the Network folder is constantly changing based on information gathered from the two dynamic network service discovery protocols compatible with macOS—Bonjour and SMB/NetBIOS/WINS—so you can browse only SMB or AFP file services from the Network folder.


Tip

The Finder also lets you browse to screen-sharing (VNC) hosts via Bonjour, as covered in Lesson 23, “Manage Host Sharing and Personal Firewall.”


Smaller networks may have only one level of network services. Conversely, if you have a larger network that features multiple service discovery domains, they appear as subfolders inside the Network folder. Each subfolder is named by the domain it represents. Items inside the domain subfolders represent shared resources configured for that specific network area.

To browse and connect to an SMB or AFP file service from the Finder sidebar, select the computer you want to connect to from the Shared list, or select a computer from the Finder Network folder. In the Finder, the quickest route to the Network folder is either to choose Go > Network from the menu bar or to press Shift-Command-K. Selecting a computer from either the Shared list or the Network folder yields similar results.


Note

When browsing in the Finder, if you select a server that supports both SMB and AFP, OS X Yosemite 10.10 and later default to using the SMB protocol. Further, it will always use the most secure version of the SMB protocol supported by the sharing service.


About Automatic File-Sharing Service Authentication

The moment you select a computer providing services, the Mac attempts to automatically authenticate using one of three methods:

Image If you are using Kerberos single sign-on authentication, the Mac attempts to authenticate to the selected computer using your Kerberos credentials.

Image If you are using non-Kerberos authentication but you have connected to the selected computer before and chosen to save the authentication information to your keychain, the Mac attempts to use the saved information.

Image The Mac attempts to authenticate as a guest user. Keep in mind that guest access is a file service option that many administrators disable.

If the Mac succeeds in authenticating to the selected computer, the Finder shows you the account name it connected with and also lists the shared volumes available to this account. Selecting a shared volume connects and mounts its file system.

Image

About Manual File-Sharing Service Authentication

If the Mac was unable to automatically connect to the selected computer, or if you need to authenticate with a different account, click the Connect As button to open an authentication dialog.

Image

You can authenticate to a sharing service using one of three methods:

Image Selecting the Guest radio button, if available, indicates that you wish to connect anonymously to the file service.

Image Selecting the Registered User radio button enables you to authenticate using a local or network account known by the computer providing the shared items. Optionally, you can select the checkbox that saves this authentication information to your login keychain.

Image Selecting the “Using an Apple ID” radio button enables you to authenticate to an SMB or AFP share using an Apple ID. For this option to appear, both the local Mac and the computer hosting the share must be running macOS. Further, the local accounts on both systems must be tied to an Apple ID, as covered in Lesson 5, “Manage User Accounts.”

Image

Click the Connect button, and the Mac authenticates and shows you a new list of shared volumes available to the account. Each available share appears as a folder. Click once on a shared item to connect and mount its file system.

Image

Manually Connect to File-Sharing Services

To manually connect to a file service, you must specify a network identifier (URL) for the file server providing the service. You may also have to enter authentication information and choose or enter the name of a specific shared resource path. When connecting to an SMB or AFP service, you can authenticate first and then choose a shared item, or optionally provide a path. Conversely, when connecting to an NFS, WebDAV (HTTP), or FTP service, you may have to specify the shared items or full path as part of the server address and then authenticate if required.

Manually Connect to SMB or AFP

To manually connect to an SMB or AFP file service from the Finder, choose Go > Connect to Server, or press Command-K, to open the Finder “Connect to Server” dialog. In the Server Address field, enter smb:// or afp://, followed by the server’s IP address, DNS host name, computer name, or Bonjour name.

Image

If you don’t specify a protocol prefix, the “Connect to Server” dialog will attempt to pick the appropriate file-sharing protocol. Again, the preferred default file-sharing protocol for OS X Yosemite 10.10 and later is SMB 3. Optionally, after the server address, you can enter another slash and then the name of a specific shared item. This bypasses the dialog for selecting a specific file share.


Tip

Clicking Browse in the “Connect to Server” dialog brings you to the Finder Network folder, allowing you to browse for a server, as covered previously in this lesson.


If automatic file service authentication is available, as covered earlier in this lesson, you do not have to enter authentication information. If it isn’t available, a dialog appears requiring you to enter authentication information. Likewise, this authentication dialog is identical to the one covered earlier in this lesson.

Once you have authenticated to the file service, you are presented with the list of shared volumes that your account is allowed to access. Select the shared item you want to mount. Optionally, you can hold down the Command key to select multiple shared items from the list.

Image
Manually Connect to NFS, WebDAV, or FTP

To manually connect to an NFS, WebDAV, or FTP file service from the Finder, choose Go > Connect to Server, or press Command-K, to open the Finder “Connect to Server” dialog.

In the Server Address field, enter one of the following:

Image nfs://, followed by the server address, another slash, and then the absolute file path of the shared items.

Image http:// for WebDAV (or https:// for WebDAV encrypted via SSL), followed by the server address. Each WebDAV site has only one mountable share, but you can optionally enter another slash and then specify a folder inside the WebDAV share.

Image ftp:// (or ftps:// for FTP encrypted via SSL), followed by the server address. FTP servers also have only one mountable root share, but you can optionally enter another slash and then specify a folder inside the FTP share.

Depending on the protocol settings, you may be presented with an authentication dialog. Specifically, NFS connections never display an authentication dialog. The NFS protocol uses the local user that you’re already logged in as for authorization purposes or Kerberos single sign-on authentication.

If you are presented with an authentication dialog, enter the appropriate authentication information there. Optionally, you can select the checkbox that saves this authentication information to your login keychain. When connecting to NFS, WebDAV, or FTP file services, the share mounts immediately after authentication.

About Mounted Shares

Once the Mac has mounted the network file share, that share can appear in several locations from the Finder or any application’s Open dialog, including the Computer location, the desktop, and the sidebar’s Shared list, depending on configuration. However, mounted network volumes always appear at the Computer location in the Finder, accessible by choosing Go > Computer or by pressing Shift-Command-C. By default, connected network volumes do not show up on the desktop. You can change this behavior from the General tab of the Finder Preferences dialog.

Image

Tip

Remember that the sidebar also appears in any application’s Open dialog with exactly the same items that are available from the Finder.


Manually entering server information every time you connect to a server is a hassle. Two features in the “Connect to Server” dialog make this process efficient for your users. The dialog maintains a history of your past server connections. You can access this history by clicking the small clock icon to the right of the Server Address field. Also, you can create a list of favorite servers by clicking the Add (+) button to the right of the Server Address field.

Image

Disconnect Mounted Shares

It is important to recognize that the Mac treats mounted network volumes similarly to locally attached volumes, so you must remember to always properly unmount and eject network volumes when you’re done with them. Mounted network volumes are unmounted and ejected from the Finder using the same techniques you would use on a locally connected volume. Unmounting and ejecting volumes is covered in Lesson 9, “Manage File Systems and Storage.” One difference in working with mounted volumes is that the Eject button appears multiple times in the Finder, wherever the server name or the shared items appear.

Image

In practice, though, it’s difficult for users to remember they have network shares mounted, since there is no locally attached hardware device to remind them. Further, laptop users often roam out of wireless network range without even thinking about what network shares they may have mounted.

If a network change or problem disconnects the Mac from a mounted network share, the Mac spends several minutes attempting to reconnect to the server hosting the shared items. If after several minutes the Mac cannot reconnect to the server, the system will fully disconnect from the share.

Automatically Connect to File Shares

On a positive note, because the Finder treats mounted network shares as similar to other file-system items, you can save time and make life easier for youself and your users by creating automatic connections to network shared items. One method is to have a network share mount automatically when a user logs in by adding the network share to the user’s login items. Managing login items is covered in Lesson 5, “Manage User Accounts.”

Image

Alternatively, you can create easy-to-use shortcuts to often-used network shares. One method involves creating Dock shortcuts by dragging network shares or their enclosed items to the right side of the Dock. You can also create aliases on the user’s desktop that link to often-used network shares or even specific items inside a network share. (Creating aliases is covered in Lesson 12, “Use Hidden Items, Shortcuts, and File Archives.”) Either method you use automatically connects to the network share when the item is selected.

Image

Tip

You cannot drag items from the Finder sidebar or the Network browser to the login items on the Dock. Instead, select the network share from the desktop or the Computer location in the Finder. You can access the Computer location in the Finder by choosing Go > Computer.



Tip

Remember that by using Kerberos single sign-on authentication or by saving authentication information to the keychain, you can bypass authentication dialogs as well.


Reference 22.4 Troubleshoot Network Services

To effectively troubleshoot a network issue, you must isolate the issue into one of three categories: local, network, or service. Most issues involving failure to access network services probably fall under the service category. This means that you should probably focus most of your efforts on troubleshooting the specific service you’re having issues with.

However, before digging too deep into troubleshooting the specific network service, quickly check for general network issues. First, check to see whether other network services are working. Opening a web browser and navigating to a few different local and Internet websites is always a good general network connectivity test.

To be thorough, also test other network services, or test from other computers on the same network. If you’re experiencing problems connecting to a file server but you can connect to web servers, chances are your TCP/IP configuration is fine, and you should concentrate on the specifics of the file server. If you’re only experiencing problems with one particular service, you probably don’t have local or network issues, and you should focus your efforts on troubleshooting just that service.

If other network clients or services aren’t working either, your issue is likely related to local or network issues. Double-check local network settings to ensure proper configuration from both the Network preferences and Network Utility. If you find that other computers aren’t working, you might have a widespread network issue that goes beyond troubleshooting the client computers. For more information on general network troubleshooting, see Lesson 21, “Troubleshoot Network Issues.”


Tip

If you’re experiencing problems with a service provided by Apple, you can check real-time Apple service status at this website: www.apple.com/support/systemstatus/.


Use Network Utility: Port Scan

Once you decide to focus on troubleshooting a problematic network service, one of your most important diagnostic tools is the network Port Scan utility. Part of the Network Utility application, Port Scan scans for any open network service ports on the specified network address.


Tip

The quickest way to open Network Utility is via the Spotlight search menu. Usually searching simply for “net” will list Network Utility in the search results.


As covered earlier in this lesson, network service protocols are tied to specific TCP and UDP network ports. Network devices providing a service must leave the appropriate network ports open to accept incoming connections from other network clients. Port Scan reveals whether the required ports are indeed open. If the ports aren’t open, that device either is not providing the expected service or is configured to provide the service in a nonstandard method. Either way, this indicates that the issue lies with the device providing the service, not with your Mac.

To verify network service availability, start by opening Network Utility and clicking the Ping tab at the top. Before scanning the ports, check for basic network connectivity by attempting to ping the device that is supposed to be providing the service. Enter the device’s network address or host name and click the Ping button.

If the ping is successful, it returns with the amount of time it took for the ping to travel to the network device and then return. Assuming you have network connectivity to the other device, continue with the port scan.

Image

To scan for a network service, start by clicking the Port Scan tab. Again, enter the network address or host name of the device that is supposed to be providing the service. If you’re only troubleshooting a specific service, limit the scan to just that service’s default ports by selecting the appropriate checkbox and entering a beginning and ending port range.

Image

There are 65,535 available TCP and UDP network ports, so scanning all of them is unnecessary and overly time intensive. Even if you don’t know the specific port, most common ports are between 0 and 1024. Further, network administrators view repeated network pings and broad port scans as a threat. Thus, some network devices are configured not to respond even when working properly. In general, you should avoid excessive network pinging and scanning an unnecessarily broad range of ports when testing others’ servers.

Once you have defined the port range, you’re ready to click the Scan button to initiate the scan process. Depending on the scan range you choose, it may take several minutes to complete the scan. Any open ports discovered are listed along with the associated network protocol, if known.


Note

There are some inaccuracies with the protocol reporting of the Port Scan feature. For example, port 106 (listed as 3com-tsmux) is actually the macOS Server password service, and port 625 (listed as dec_dlm) is actually the directory service proxy. This is because these ports are registered by the Internet Assigned Numbers Authority (www.iana.org) for the reported protocols. However, Apple is using these numbers for its own purposes.


Troubleshoot Network Applications

Aside from general network service troubleshooting, you can try a few application-specific troubleshooting techniques. First, double-check any application-specific configuration and preference settings. It takes only a few moments, and you may find that users have inadvertently caused the problem by changing a setting they shouldn’t have.

Be aware of these specifics when troubleshooting network applications:

Image Safari—Safari is a good web browser, but webpages aren’t always perfect. You may find that some websites do not render properly or work correctly with Safari. To provide the most secure web experience, Safari may disable third-party plug-ins. You can verify the status of third-party plug-ins from the Security tab of the Safari preferences. You might also want to try a third-party web browser. Several are available for the Mac, including Google Chrome, Firefox, OmniWeb, and Opera. Alternatively, for deeper inspection of problematic webpages you can enable the Safari Develop menu from the Advanced tab of Safari preferences. With this menu enabled, you can dig into the details of a webpage or try advanced troubleshooting methods, including emptying Safari’s caches and requesting the website with a different user agent.

Image

Image Mail—Improper mail account configuration settings are the most common cause of Mail application issues. Fortunately, the Mail application includes a built-in account diagnostic tool, Mail Connection Doctor, that attempts to establish a connection with all configured incoming and outgoing mail servers. To open Mail Connection Doctor, choose Window > Connection Doctor within the Mail application. If a problem is found, a suggested resolution is offered, but for a more detailed diagnostic view, click the Show Detail button to reveal the progress log, and then click the Check Again button to rerun the tests.

Image

Tip

Apple also provides an online Mail Setup Assistant database that may help you identify mail client configuration issues: www.apple.com/support/mail-settings-lookup/.


Troubleshoot File-Sharing Services

There are a few known macOS file-service issues you should be aware of. They aren’t software bugs in the sense that something is broken and requires a fix. Rather, these issues represent compatibility and design choices that are intentional but may still cause you problems.

AppleDouble Issues

As covered in Lesson 14, “Use Metadata, Spotlight, and Siri,” macOS uses separate metadata stores. The NFS and WebDAV file-sharing protocols do not support metadata of this type. Thus, when files are written to a mounted NFS or WebDAV volume, macOS automatically splits these files into two separate files.

With this practice, commonly known as AppleDouble, the data retains the original name, but the metadata is saved with a period and underscore before the original name. The Finder recognizes these split files and shows only a single file to the user. However, users on other operating systems see two separate files and may have trouble accessing the appropriate one.

Microsoft’s Services for Macintosh Issues

You may encounter another issue when trying to access an AFP network volume from a Windows file server. Windows servers prior to 2008 include Services for Macintosh (SFM), which provides only the legacy AFP 2 file service. macOS is still compatible with AFP 2 but is optimized for AFP 3.1.

Many known performance issues exist with AFP 2, so you should avoid it at all costs. Ideally, you should use a system running macOS Server to provide AFP services for your network. However, if you must keep the Windows file server, you can add AFP 3.1 support by installing Acronis Access Connect (formerly ExtremeZ-IP) (www.acronis.com). Also remember that macOS clients include a robust SMB client that natively connects to your Windows server with a high degree of reliability and performance.


More Info

macOS works with legacy AFP only if you follow the steps in Apple Support article HT200160, “Connecting to legacy AFP services.” If you have problems with some SMB services you may also want to try the steps in Apple Support article HT204021, “If you can use AFP but not SMB to mount a file server.”


Exercise 22.1 Configure a Network Service Account


Image Prerequisites

Image You must have created the Chris Johnson account (Exercise 5.1, “Create a Standard User Account”).

Image You must be performing these exercises in a class or have set up your own server configured as in the Mainserver Setup Instructions.


The client applications built into macOS can use a wide variety of network services, and the Internet Accounts pane in System Preferences makes setting up suites of services easy. You have already set up iCloud-based services on your computer. In this exercise, you will also configure your computer to use services provided by a macOS server.

View Your Existing Network Accounts

1 If necessary, log in as Chris Johnson.

2 Open the Contacts application.

3 Open Contacts preferences by choosing Contacts menu > Preferences (Command-Comma).

4 Click the Accounts button to see the accounts your Contacts application is configured to use.

If you have configured iCloud services for the Chris Johnson account, you will see the iCloud account listed here.

Image

You could use this pane of Contacts preferences to view and add network accounts for Contacts, but often you have accounts that are used for groups of related services.

5 Close the Contacts preferences window, and quit Contacts.

6 Open System Preferences, and select the Internet Accounts pane.

If you are signed in to iCloud, your iCloud account information is listed on the left side of the window. You can manage iCloud settings here, as well as in iCloud preferences. You may also see a Game Center account listed.

7 If your iCloud account is listed on the left, select it, and then deselect the Mail service on the right.

Image

Not having iCloud mail mixed with the new account will simplify testing later in the exercise.

Set Up a New Network Account

1 If a list of account types is not shown on the right, click the Add (+) button under the account list.

Image

2 Scroll to the bottom of the list, and click Add Other Account.

More account types appear at the bottom of the list.

Image

3 Click “Server account.”

Mainserver is available in the server list.

Image

Note that the server’s domain name (shown on the right) might be either Mainserver.local or mainserver.pretendco.com.

4 Select Mainserver, and click Next.

You are prompted for the server account you want to use. If you are performing these exercises in a class, your account name will include your student number or seat number. If you are performing these exercises on your own, use 1 as your student number.

5 Enter the following for your account information:

User Name: studentn (where n is your student number)

Password: student

Image

6 Click “Sign in.” If you receive an error message, check the settings and try again.

A dialog may appear indicating that Internet Accounts can’t verify the identity of the server; if it does not, you have already configured your computer to trust the server, and you can skip to step 10.

Again, the server’s domain name may be listed as either “mainserver.local” or “mainserver.pretendco.com.”

Image

This appears because Internet Accounts is attempting to make a secure connection using SSL but the SSL certificate the server presents has not been signed by a trusted certificate authority (CA). The host name listed in the certificate may also not match the host name Internet Accounts is using to connect to the server. Thus, Internet Accounts cannot tell whether the server is the one you intend to connect to or an impostor.

This problem can occur because the server is not properly configured but also might indicate that you have reached a malicious fake. Unfortunately, there is often no reliable way to tell whether or not there is a real problem. In this case, it is occurring because Mainserver is not run by the legitimate owner of pretendco.com; it is a fake, but it is a harmless fake.

7 Click Show Certificate.

The dialog expands and displays more details about the server’s SSL certificate.

Image

8 Select “Always trust,” and then click Continue.

This adds the certificate to your keychain and creates a trust policy so that this server certificate will automatically be trusted in the future. Note that if you had been connected to an external server on the Internet (especially one that handles sensitive information, such as your bank’s web server), it would have been safer to cancel the connection.

9 Authenticate as Chris Johnson to confirm the new trust policy.

10 In the “Select the apps...” dialog, deselect VPN, and click Done.

Image

Setting up the VPN service would make changes to the Mac computer’s network configuration, which would require administrator authentication. Also, you may have already configured the VPN service using a configuration profile in Exercise 20.3, “Configure VPN Settings.”

11 When the account setup finishes, quit System Preferences.

Test Your New Account

1 Open the Contacts application.

2 Open Contacts preferences (choose Contacts menu > Preferences, or press Command-Comma).

3 Click the Accounts button, and select the Server account.

Since this account is being managed by Internet Accounts preferences, not many configuration options appear here.

Image

4 Close the Contacts preferences window, and quit Contacts.

5 Open the Mail application.

6 If a warning appears indicating that Mail can’t verify the identity of the server, repeat the process of showing the certificate and marking it as always trusted.

Mail checks for new messages in your macOS Server account. You should have a welcome message from the server team.

Image

If you also had iCloud messages, you may have missed the step to turn off iCloud mail; return to Internet Accounts preferences, select your iCloud account, and turn off its mail service.

7 Open Mail preferences (choose Mail menu > Preferences, or press Command-Comma).

8 Click the Accounts button.

9 Select the macOS Server account.

Image

10 Close the Mail preferences window, and quit Mail.

Scan the Server

To prepare for Exercise 22.3, “Troubleshoot Network Services,” you will record a baseline of what services Mainserver provides when everything is working normally.

1 Open Network Utility (remember that you can press Command–Space bar and use Spotlight to find it).

2 Click the Port Scan tab.

The port scan tool scans a server or other IP address to see what network ports are accepting connections. This is explored in more detail in Exercise 22.3, “Troubleshoot Network Services.”

3 Enter the server address mainserver.local in the IP address field.

4 Select the “Only test ports between” option, and set the range to 1 through 1024.

5 Click Scan.

6 Wait for it to finish scanning, and then expand the Network Utility window until all the results are visible.

Image

Your results may not exactly match those shown here. To record your results, you will take a screenshot of the Network Utility window. For more about taking screenshots in macOS, see Exercise 6.1, “Restore a Deleted User Account.”

7 Press Command-Shift-4; then release those keys, and press the Space bar.

The cursor changes to a camera icon, and the region of the screen it is over is highlighted in blue.

8 Move the pointer over the Network Utility window, and then click to record its contents.

The image is saved to your desktop with the name “Screen Shot” followed by the date and time it was taken.

9 Quit Network Utility.

Exercise 22.2 Use File-Sharing Services


Image Prerequisites

Image You must have created the Chris Johnson account (Exercise 5.1, “Create a Standard User Account”).

Image You must be performing these exercises in a class or have set up your own server configured as in the Mainserver Setup Instructions.


Many protocols can be used to transfer files across networks and over the Internet, but some of the most efficient are designed specifically to share file systems, such as AFP and SMB. In this exercise, you will use a Finder window and the “Connect to Server” command from the Finder Go menu to connect to shared AFP and SMB volumes on another computer, copy a file from the server to your desktop, and copy the file back to the server.

Browse to an SMB Share

These steps will lead you through the process of using the sidebar to mount an SMB volume on the desktop.

1 If necessary, log in as Chris Johnson.

2 In the Finder window, select Mainserver in the Shared section of the sidebar.

If Mainserver is not shown, click All in the sidebar, and then double-click Mainserver in the network view.

Your Mac contacts Mainserver and logs in automatically as a guest.

3 Click the Connect As button.

Image

4 When prompted to authenticate, select Registered User, enter the name student and the password student, select “Remember this password in my keychain,” and click Connect.

Image

You are now connected to Mainserver with the “student” account. The Finder window shows that you now have access to more shared folders than you did as a guest. The SMB Shared folder is available only over the SMB protocol, so its appearance here indicates that this is the protocol being used to connect to Mainserver.

Image

Now you will take a look at what you can see in the Public folder on the server.

5 Open Finder preferences (choose Finder menu > Preferences, or press Command-comma), click General, and select “Connected servers,” if it is not already selected.

Image

This shows mounted server volumes on the desktop. Since you have not mounted any shared folders yet, nothing new appears on the desktop at this point.

6 Close the Finder Preferences window.

7 Open the shared folder named Public.

The folder displays in the Finder, and a new network volume icon appears on the desktop.

In the Public folder you see a file (copy.rtf), along with the StudentMaterials folder.

Image

Copy Files to a Network Share

You will use the Finder to copy files to a shared folder mounted over SMB.

1 Drag copy.rtf to your desktop. Since you are dragging from one volume to another, this copies the file rather than moving it.

2 Rename your copy of copy.rtf to Student n.rtf (where n is your student number if you are in a class or 1 if you are performing these exercises on your own).

You can rename a file by selecting it and pressing Return or by clicking the filename and waiting a moment.

Image

3 Select Mainserver in the Finder sidebar. This returns you to the view of available shared folders.

4 Open the SMB Shared folder. Its icon will appear on your desktop.

5 Drag the renamed file from your desktop onto the SMB Shared folder.

Automatically Mount a Network Share

macOS provides several ways to memorize a share point to allow easy access to it. In this section, you will configure your user preferences to automatically mount a share point whenever you log in.

1 Open System Preferences, and select the Users & Groups preferences.

2 With Chris Johnson selected in the user list, click the Login Items tab.

Note that you do not need to authenticate as an administrator to access your login items; they are a personal preference, so standard users can manage their own login items.

3 Drag the SMB Shared icon from your desktop to the login items list.

Image

Anything in your login items list will be automatically opened every time you log in. It can include applications, documents, folders, and so on. By adding a shared folder, you have configured it to mount every time you log in. Since you also memorized the server account name and password when you connected, the connection should be fully automatic.

4 Quit System Preferences.

5 Disconnect from Mainserver by clicking the Eject button next to Mainserver in the Finder sidebar.

Image

Disconnecting from the server automatically unmounts both the Public and SMB Shared folders. You can also unmount them individually if you prefer.

6 Log out and back in as Chris Johnson.

7 If a connect dialog appears, click Connect to confirm. Note that the password will be filled automatically from your keychain.

The SMB Shared folder is remounted and opened in the Finder. Note that if you are connecting via Wi-Fi, it may take a minute or so to reconnect.

8 Reopen the Users & Groups preferences.

9 Click Login Items.

10 Remove SMB Shared from the login items list by selecting it and then clicking the Delete (–) button under the list.

11 Quit System Preferences.

12 Disconnect from Mainserver again.

Manually Connect to an AFP Share

These steps will lead you through the process of using “Connect to Server” (in the Finder) to mount an AFP volume on the desktop.

1 In the Finder, choose Go menu > Connect to Server (Command-K).

2 In the Server Address field, enter afp://mainserver.local to connect using the AFP protocol.

3 Before you click Connect, click the Add (+) button to the right of the Server Address field.

Image

This adds the server URL to your Favorite Servers list. This is another way to allow easy access to a shared folder.

4 Click Connect.

5 Use the same credentials you used when connecting over SMB, and select “Remember this password in my keychain.” Click Connect.

Note that although you have already memorized the SMB password for the server, this is a different file service, and you must also memorize its password.

Image

Since you entered a connection URL that did not specify a shared folder to mount, you will be asked which folders you want to mount. Note that this time you do not see the SMB Shared folder, but you do see the AFP Shared folder.

Image

6 Select the Public and AFP Shared folders, and click OK.

The volumes mount, and you see the same files in Public that you saw when connecting using SMB. You have connected to the same folder on the server, so this is not surprising.

7 Drag the Student n.rtf file from your desktop to the AFP Shared folder.

8 Disconnect from the server, either by dragging the volume icons to the Trash or by clicking the Eject button in the Finder sidebar.

Exercise 22.3 Troubleshoot Network Services


Image Prerequisites

Image You must have created the Chris Johnson account (Exercise 5.1, “Create a Standard User Account”).

Image You must be performing these exercises in a class or have set up your own server configured as in the Mainserver Setup Instructions.

Image You must have performed Exercise 22.1, “Configure a Network Service Account.”


In this exercise, the mail service will fail, and you will use several network service troubleshooting tools to investigate the problem.

Turn Off the Mail Service or Wait for the Instructor to Do So

If you are performing these exercises in class, notify the instructor that you are ready for the mail service to be turned off, and wait for the instructor to tell you to proceed; then skip to “Troubleshoot with the Mail.app Connection Doctor.”

If you are performing these exercises on your own, follow these steps on your server computer to turn off the mail service:

1 On your server computer, log in as Local Admin.

2 Open the Server application.

3 Select Mail from the sidebar.

4 Turn the service off.

5 Quit the Server application, and return to your regular exercise computer.

Troubleshoot with the Mail.app Connection Doctor

1 If necessary, log in as Chris Johnson.

2 Open the Mail application.

Mail displays an Account Error alert.

Image

3 Click the Account Error alert.

A dialog appears with more information about the problem.

Image

Note that depending on your network setup, the error you see may refer to “mainserver.local” instead of “mainserver.pretendco.com.”

The Mail application has a built-in Connection Doctor that can do basic service diagnostics.

4 Click Open Connection Doctor in the dialog.

The Connection Doctor opens and runs a series of tests to see which parts of your mail service are working. In this case, it detects that your Internet connection is working (the green Connection Status indicator at the top) but that neither the mail sending service (SMTP) nor the receiving service (IMAP) is working because it cannot connect to either service.

Note that an iCloud IMAP service may be listed. The Connection Doctor may test it even though the service is turned off.

Image

If this were a minor glitch, the Mail Connection Doctor might be able to point you to a solution. In this case, it indicates that it “Could not connect...” to the macOS Server over either the SMTP or the IMAP protocol. Because the server appears to be completely unreachable, you will now turn to Network Utility for further troubleshooting.

5 Close the Mail Connection Doctor window.

6 Quit Mail.

Troubleshoot with Network Utility

1 Open Network Utility. Remember that you can use Spotlight to find it.

Since Mail is unable to reach the server, you should first test to make sure the network connections between your computer and the server are working.

2 Click the Ping tab.

3 In the “Enter the network address to ping” field, enter mainserver.local.

4 Click Ping.

Image

The ping probes are able to reach the server. This tells you that the network connection between your computer and the server is working, so you need to move on to the services you are trying to use.

5 Click the Port Scan tab.

The port scan tool can scan a server to see what TCP port numbers it has services running on; usually, you can tell what services are available based on the port numbers.


Note

Many malicious network attacks start with or employ port scans, so this type of troubleshooting might be interpreted as an attack. Before you scan ports on a target computer, request permission from its owner or a network or server administrator, if possible. As a general rule, only scan ports on computers you have responsibility for. Many environments employ automatic countermeasures. Simply scanning a server may get your computer or IP address blacklisted, preventing you from knowing whether you have resolved the problem you are troubleshooting.


6 If necessary, enter the server address mainserver.local in the IP address field.

7 If necessary, select the “Only test ports between” option, and set the range to 1 through 1024.

8 Click Scan.

9 Watch the scan as it identifies the open ports.

Image

The port scan lists the open ports it finds, along with the names of the services usually associated with them. For example, port 80 is the standard (or “well-known”) port for web services (the HTTP protocol), and port 548 is the standard port for the Apple Filing Protocol (“afpovertcp”). These well-known ports are commonly used in the industry and facilitate interoperability across different vendors’ implementations of the same protocols. To test whether a computer has an HTTP (web) server, you would run a port scan on it and test whether TCP port 80 is open. HTTPS (an SSL-secured web service) normally uses TCP port 443, so if HTTPS requests are not working, port 443 might be blocked or inactive.

For a listing of many ports used by Apple products, see Apple Support article HT202944, “TCP and UDP ports used by Apple software products.”

10 Open the screenshot you took in Exercise 22.1, “Configure a Network Service Account,” showing which ports were open when the services were working, and compare it with the current scan.

In this case, you are trying to troubleshoot the mail service, which normally involves TCP ports 25 (SMTP), 110 (POP3), 143 (IMAP), 587 (message submission), 933 (IMAPS), and 995 (POP3S). Note that mail servers that use proprietary protocols such as Exchange provide access to those protocols over other port numbers.

All of those ports are listed in the earlier scan but not in the current scan. This indicates either that the server does not offer mail service (which is true here since the service is switched off) or that a firewall is blocking access to the service.

This is as far as you can resolve this problem from the client side; further troubleshooting would mean looking in detail at the server and network firewalls, which is beyond the scope of this exercise.

11 Quit all open applications.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.209.80