ADC Home > Reference Library > Technical Notes > Legacy Documents > Networking >
Legacy Document
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Alternate User Authentication Methods (UAMs)Date Written: 3/9/93 Last reviewed: 6/24/93
Is there a sanctioned way to use Alternate User Authentication Methods (UAMs) aren't a supported feature of the AppleShare workstation software. The only documentation to ever come out of Apple concerning alternate UAMs is a draft proposal titled "Multiple User Authentication Methods for AppleShare" and it was written back in 1987. The thing to remember is that the document was a draft proposal; not final documentation for a tested mechanism in shipping product. Apple Developer Technical Support will not supply this document to developers who don't have it. Although the code for the alternate UAM mechanism described by that document is in the AppleShare workstation, it has never been fully implemented or tested in any version of AppleShare Workstation (including the AppleShare 3.0 Workstation); it has been only partially tested by some of the engineers that wrote that code. Because the code for alternate UAMs has never been officially tested or documented as a shipping product, Apple Developer Technical Support can't officially support you in this area. On top of that, engineering doesn't consider the alternate UAM mechanism part of any current project, so we (in DTS) have no project to submit bugs against. It is very likely that the code for the alternate UAM mechanism in the current AppleShare workstation will be removed at some point, so you should not rely on it in any of your programs.
Since alternate UAMs aren't a supported feature of AppleShare workstation, new
features added to the AppleShare workstation don't support them, and other
parts of the operating system don't use them. So Determining AppleShare Admin passwordDate Written: 2/8/93 Last reviewed: 7/9/93 I mistyped an AppleShare file server's administrative password. How can I retrieve it? We can't provide the information you've requested since it is considered proprietary (for security reasons). If you've lost your admin password you'll need to delete your current Users & Groups Data File. This is the only sanctioned way to reset your password. (If you have a duplicate Users & Groups file on another server, you can copy this file over and change the password accordingly.) CreateResFile calls and AppleShare drop foldersDate Written: 4/28/93 Last reviewed: 7/2/93
Why does calling
Using any of the
So, when you call For a quick explanation of drop folder access privileges and rules, see the Macintosh Technical Note "Creating Files Inside an AppleShare Drop Folder" (Files 18). For a complete explanation of what AFP access privileges you need to perform specific operations on an AppleShare (AFP) server, see the section "Directory Access Control" in Inside AppleTalk starting on page 13-31. Updating aliases when File Sharing state changesDate Written: 2/4/93 Last reviewed: 7/2/93 We create an alias for a file when File Sharing is off, so the alias doesn't contain server and zone information. Then we turn on File Sharing and resolve the alias. The file, of course, is found but the alias isn't marked for an update. Shouldn't it be updated?
According to Inside Macintosh: Files,
Since none of that changes when you turn File Sharing on or off, the Macintosh AppleShare client version detailsDate Written: 12/18/92 Last reviewed: 3/1/93 System 7.0.1 doesn't seem to correctly display (or display at all) login (greeting) messages from an AppleShare server. System 7.1 works fine. Is this a known problem, and is there anything we can do do get the login messages to show up? Not all Macintosh AppleShare clients support server messages (including the greeting messages). Every version of the Macintosh AppleShare client released since AppleShare 3.0 has supported server messages. If you install the AppleShare client version 3.0, 7.1 or 3.0.1 on System 7.0, 7.0.1 with or without System 7 Tune-up, you'll get server greeting messages. Here's a list of Macintosh AppleShare client versions in the order they were released (notice that they aren't in version order). We've listed the important changes made to each version and listed system software compatibility. (As you might suspect, DTS doesn't have a complete list of all minor changes made to every version.)
Auto-mounting AppleShare 3.0 volumes when a Greeting is enabledDate Written: 6/5/92 Last reviewed: 3/1/93 Our program calls PBVolumeMount using MPW 3.2.2 interfaces to automount FileShare and AppleShare servers when performing unattended backups, but if an AppleShare 3.0 server has a Greeting, the backup cannot proceed until the Greeting is dealt with. Is there a way to auto-mount these volumes which suppresses the Greeting?
To mount a volume with One thing you should be aware of is an alias record to an AFP volume created by the Alias Manager stores the flags information. That is, if you mount a volume with greetings disabled, create an alias to the volume (or a file or directory on the volume), and then later mount the volume by resolving the alias, the greeting message will be disabled. If the volume is mounted with the flags word cleared, any aliases resolved with show greeting messages (if any). Here's a short sample application that mounts a volume with greeting messages disabled:
Mounting volumes without using aliasesDate Written: 9/25/92 Last reviewed: 11/24/92
How can I mount a volume without using aliases? I get the mounting information,
then attempt to mount the volume. However, the
The How to tell if someone else has your data file openDate Written: 7/7/92 Last reviewed: 11/1/92
How can I tell if another person has my data file open? According to Inside
Macintosh Volume IV (pages 148-149),
If the file is on a local volume, you can index through the open FCBs to find
all open connections to the file. You'll find your own connection in that list
but since you know what your
On nonlocal volumes (AppleShare volumes), you can use Unmounting volumes shared with Macintosh File SharingDate Written: 9/15/92 Last reviewed: 3/10/93
I tried to unmount a volume shared with Macintosh File Sharing from my program
using the following steps: I shut down the file service with the
There's an easy way to determine when the File Sharing application has quit
(and thus when the AppleShare PDS file is closed): just use the Process Manager
After shutting down the file service, your event loop will need to poll with
Maximum volumes for file sharingDate Written: 3/9/92 Last reviewed: 8/1/92 In the past I've been able to file share more volumes off my Macintosh SCSI storage devices than I can with System 7. Now I get an alert saying: "One or more items could not be shared because not all volumes are available for file sharing." Please advise as to what the problem might be.
Macintosh File Sharing will only prepare for sharing the first 10 volumes it
sees (it enumerates the volume list with So, you've just hit the limits of File Sharing. The solution to your problem is to use AppleShare 3.0 -it will share up to 50 volumes. File Sharing wasn't intended to be the end-all in file servers; it was designed for individuals who want to occasionally share files with a small number of other users. Here are some limits to File Sharing that you should note:
AppleShare 3.0 also supports many other user (for example, server messages), security, and developer features (server control calls and the server event mechanism) not supported by Macintosh File Sharing. AppleShare user limitDate Written: 11/16/90 Last reviewed: 12/19/90 What is the maximum number of users that can be logged in to any one AppleShare file server? What can we do to increase the limit? Will upgrading to AppleTalk Phase II help? Is there an upgrade to the AppleShare 2.0.1 software? AppleShare currently has a limit of 50 simultaneous users. This is a limitation in the software and is not related to AppleTalk. Changing from AppleTalk Phase I to Phase II will not change anything. The next version of AppleShare might raise this limitation. We do not have any projected dates for a release of the next version of AppleShare. You may want to periodically check with APDA for any update or new release. Maximum number of users supported by AppleShare for each CPUDate Written: 5/3/89 Last reviewed: 11/21/90 What is the maximum number of users supported by AppleShare? Does this number change based on the type of CPU being used for the server? The following chart lists some current AppleShare limits (AppleShare 1.1, 2.0, and 2.01) which are based upon the chosen server platform and memory configuration. The limits that otherwise might be present on a workstation are still in effect, and are not affected by the workstation being logged in to an AppleShare server. These limits will change in the future. Server machine is Macintosh Plus, SE, or II with 1 MB:
Server machine is Macintosh II with more than 1 MB:
X-Ref: Macintosh Technical Note "AppleShare 1.1 and 2.0 Limits" Macintosh file system active rangesDate Written: 3/18/91 Last reviewed: 6/7/91 How many active ranges can a Macintosh application have on a shared file? If the answer is more than one, is the limit per application or per machine? If two ranges overlap, are they joined into one range? Can an application nest ranges? For example, if an application's user performs an action that forces a record to be locked and later the application locks the full range of the file, does the initial record lock disappear? The only way to determine the limit is to hit the limit and get a NoMoreLocks error. The number of range locks supported is a limit of the server platform, and that limit is shared by all users of the server (at least it is with Apple's AppleShare server software). With Apple's server-based version of AppleShare, approximately 40 locks per user are allowed (for example, if the server allows 25 users, there are 1000 locked ranges total; if the server allows 50 users, there are 2000 locked ranges total; and with File Sharing running under System 7.0, approximately 20 locks are allowed per user). Other vendors may allow more or fewer locked ranges on their implementations of an AppleTalk Filing Protocol (AFP) server. Notice that the numbers given are per user, not per application. It's assumed that a user probably won't need more than a few locks at a time on a single file.
You cannot have range locks that overlap. You'll get a
The Macintosh Technical Note "Lock, Unlock the Range" covers several important
details about AppleShare open file limitDate Written: 10/8/91 Last reviewed: 10/8/91 On an AppleShare 2.0 File Server platform, the only application that can access files outside of the Server Folder (that is, the System Folder) is the file server application. AppleShare Foreground applications (described in the Macintosh Technote "AppleShare Foreground Applications" are the only other applications that should be running on a server and they can only access files inside the Server Folder. All file forks (referred to as files from here on) opened by remote AppleShare workstations are opened by the File Server application. The File Server application will open a file only one time. All access to that file from any number of workstations will use the single access path the File Server has opened. Only when all workstations have closed the file does the File Server really close the file on the server. So, that means only one FCB is used on the server per open file, even if 50 users have shared access to that file. The File Server application handles all access control to an open file using the AppleTalk Filing Protocol (AFP) deny-mode permission model. The only reason a user won't be able to open an access path to a file on a server is if another user has opened that file with a deny-mode that conflicts with the second user's request, or the user does not have the access rights needed to open files in the file's parent directory or directory ancestors. The AFP deny-mode permission model is described briefly in Inside Macintosh Volume V, File Manager Extensions in a Shared Environment, and in detail in the AppleTalk Filing Protocol chapter of Inside AppleTalk. As noted in the Macintosh Technote "AppleShare 1.1 and 2.0 Limits," the maximum number of open file forks on an AppleShare 2.0 server is either 80 on a 1 MB MC68000 server platform, or 160 on a server platform with more than 1 MB and a MC68020 or greater processor. That figure includes the number of files kept open by the system and the file server application. If an AppleShare Foreground application is running on the server (for example, the AppleShare Print Server), then any files it may have open count against the maximum, too. The same can be said for open desk accessories. This Technote currently doesn't say anything about those files counting towards the limit. If the 160 (or 80) file limit is a problem, you can use the "Up Your FCBs" INIT to bump the number available up to the maximum (342) allowed by the File Manager. "Up Your FCBs" can be found on AppleLink in the Developer Support: Developer Technical Support: Hacks folder. Software-selecting an AppleShare volumeDate Written: 10/23/90 Last reviewed: 2/20/91 Is there any source code available for mounting/unmounting AppleShare volumes? There are actually a couple of ways to select an AppleShare volume. You could use the Choose tool in MPW that accomplishes this, or you can do it with aliases under System 7. Other than the MPW tool, there is no other supported way of doing this under pre-7.0 systems; there are no current hooks to allow easy mounting of AppleShare volumes programmatically. It gets pretty nasty trying to figure out everything that is necessary to accomplish this, which is why people here pretty much stay away from this as well. Also, some low-level stuff may be proprietary, which is why the tool is supplied for developers. The Choose tool is described in the MPW docs. It should be pretty straightforward to use. 2.0.1 PBHGetDirAccess and PutDirAccess restrictionsDate Written: 12/5/90 Last reviewed: 1/16/91
If a volume is connected to an AppleShare server, but is not an AppleShare
volume, will the
For AppleShare 2.0.1, the INIT cannot make these calls on non-file server
volumes. In future versions, the Server Move & Rename folderDate Written: 12/5/90 Last reviewed: 6/14/93 A folder is created in the Server Folder called "...Move & Rename." What is this and what are its contents? Should it be backed up? Are there any other temporary folders and files that might need to be backed up? It's the "$01$02$03Move & Rename" folder that AppleShare 2.0.1 and future versions create for the two-step process of moving and renaming a file or a folder, a feature that is not provided via HFS. It should be backed up, but in general will not contain anything. (It has something in it only for a brief instant and only if the server has IBM PCs or some other computer that uses this call. Macintosh systems don't.) It needs to be backed up for 2.0.1 so that the folder is there if the server is restored. (Otherwise, Admin will have to be run to create a new one, a somewhat disconcerting action to perform after completely restoring a file server.) How to tell if application's running on a serverDate Written: 12/5/90 Last reviewed: 1/16/91 What is the best way to determine if a Macintosh application is running on a server? For 2.0.1 you can test the longword at $B50. If it is 0 or -1, the server is not running. If it isn't--that is, it's a real address--then the server is either starting up, or is running. There might be a hook available in future versions of AppleShare that your process can hook into. Detecting AppleTalk being closed down by userDate Written: 12/12/90 Last reviewed: 6/14/93 How do I detect that a user has closed down my AppleTalk connection (by turning AppleTalk off from the Chooser or by changing network connections from the Network control panel)? The AppleTalk Transition Queue provides a means to determine when the AppleTalk drivers change status or when they might be closed in the very near future. The Transition Queue informs its clients (everyone who has asked to be added to the queue) each time the state of the .MPP driver changes state (opened or closed) or is about to change state. The AppleTalk Transition Queue is documented in Inside Macintosh Volume VI, Chapter 32 (The AppleTalk Manager) and is also documented in the Macintosh AppleTalk Connections Programmer's Guide, Chapter 3 (Calls to the LAP Manager), available from APDA. A sample AppleTalk Transition Queue routine is shown in Technote 311. Purpose of AppleShare SP fileDate Written: 3/14/91 Last reviewed: 4/29/91 What is the file "AppleShare SP" and what does it do? The AppleShare File Server seems to run without it, and it reduces the alert sound to just a beep even when the server is not running on that computer. Is the file really needed? You do need the AppleShare SP INIT on your file server. The AppleShare SP (Small Patch) INIT is designed to correct a minor incompatibility between AppleShare 2.0x and the Sound Manager. The INIT forces the Macintosh to use the "Simple Beep" sound at all times. System 7.0 file sharing and future versions of AppleShare do not need the INIT. Macintosh EOF in an AppleShare environmentDate Written: 3/18/91 Last reviewed: 6/10/91
I ran into the following when updating the logical end of file (EOF) of a
shared file: Application A and Application B have access to a file under
AppleShare. Each is using
You've made a correct assumption that the correct way to keep track of EOF in
an AppleShare environment is to ask for it. When you open a file, the
AppleShare workstation code translates the Macintosh operating system Open call
to the AFP (AppleTalk Filing Protocol)
The
Macintosh AppleShare versus file sharing capabilitiesDate Written: 4/3/91 Last reviewed: 6/21/91 We are using the file sharing capabilities of Macintosh systems with System 7.0 to make them mini file servers. Where can information that details the features of both AppleShare and file sharing be found? We are considering using only file sharing in the office if it is capable of providing most of what AppleShare provides. Information on file sharing can be found in the System 7 Personal Upgrade Kit and in Inside Macintosh Volume VI, on your Developer CD Series disc. The maximum number of concurrent connections allowed on a Macintosh using file sharing is 10. The performance of an AppleShare file server (the standard kind of server) is approximately 25 percent better than a similar configuration of Macintosh computers acting as a file sharing server. System 7 and AppleTalk Internet RouterDate Written: 9/17/91 Last reviewed: 11/25/91 We've tried to run the Apple Internet Router with our System 7 file sharing servers. There does not appear to be support for multiple networks. Is there some solution to this? The AppleTalk Internet Router and System 7 are compatible, with two exceptions: virtual memory and 32-bit addressing. You need to drag-install it instead of using the Installer. The Installer script on the router disk will put the parts of the router in the wrong place. Here are the steps to drag-install the router:
That's all there is to it. X-Ref: "System 7: Installing Internet Router 2.0," AppleLink Tech Info Library TMGetTermEnvirons envVersTooBig errorDate Written: 9/17/91 Last reviewed: 9/17/91
A call made to
When you call
This is consistent with most other Macintosh "get environment" calls such as
Modifying a server volume's backup date-time from a workstationDate Written: 12/5/91 Last reviewed: 1/27/92
How can I change the backup date of a remote AppleShare volume? When I get the
volume information with
On an AppleTalk Filing Protocol (AFP) file server, two of the volume date-time
values, the volume creation date-time and the volume modification date-time,
are managed solely by the server and can't be changed by workstations. The
third volume date-time value, the volume backup date-time, can be set by a
workstation with only one AFP call, Using the .XPP driver to change the backup date-time involves these steps:
The .XPP driver's AFP commands are described in Inside Macintosh Volume V in the AppleTalk chapter (pages V-524 through V-550). For a description of the AFP calls, user authentication methods, and other AFP information, you need to look in the AppleTalk Filing Protocol chapter of Inside AppleTalk. If you decide you want to really use the .XPP driver as described above and want to use the 2-Way Randnum Exchange user authentication method supported by System 7 File Sharing and AppleShare 3.0, contact DTS for a preliminary version of the AFP 2.1 specification that describes that new authentication method. AppleShare Print Server 3.0 and AppleTalk self-sendDate Written: 2/28/92 Last reviewed: 2/28/92
When I issue a
You're probably calling
What your application should do is drop back into its event loop after making
the The LaserWriter Font Utility wasn't designed to work with print servers and will exhibit the same problem your application is experiencing. System 6 & 7 Chooser AppleShare differencesDate Written: 2/28/92 Last reviewed: 2/1/93 What's the limit on the number of servers displayable in the Chooser as well as the maximum number of AppleShare mount points per server? Are the System 7 limits the same as for System 6? Most System 6 Chooser limitations have been eliminated with the System 7 Chooser. Here's how each version operates: System 6 Chooser: The 6.0 Chooser's LookupName call to find AppleTalk entities is made asynchronously where retBuffPtr points to a 512-byte buffer and maxToGet = 32 (this is the 32-device limit per device type you may have heard of). The important thing to note here is the return buffer size (512 bytes). For example, if you are looking for AppleShare servers in your own zone (the "*" zone), the number of overhead bytes per NBP tuple returned will be 16 (5 for the entity address, 10 for the string "AFPServer", and 2 for the string "*"). If there were 20 servers in your zone, 340 bytes of the 512-byte buffer are used before you start counting the space used by the server names. That leaves 172 bytes for the names or around 8 characters per name (1 length byte plus 8 characters). If the average server name is longer than that, there won't be enough room to collect all of the NBP replies and one or more servers won't show up in the list. Once a server is selected and the user is authenticated, the AppleShare 2.0 RDEV uses afpGetSrvrParms to ask for the list of server volumes. The AppleShare 2.0 RDEV uses a 512-byte buffer for the replies. After the overhead used by the AppleTalk protocol headers, that's enough room for around 16 volumes with full-sized names; more if the names aren't full-sized. System 7 Chooser:
The System 7.0 Chooser fixes the problem with the NBP buffer completely. It
dynamically sizes the NBP
The AppleShare 7.0 and 3.0 RDEVs increased the size of the For both System 6 and 7 Choosers, the only limits imposed on the zone are the List Manager limits of 32K of data per list. If each zone name were 33 characters, for example, that would give you space for roughly 1000 zones. Server and workstation clock timesDate Written: 2/25/92 Last reviewed: 4/22/92 If I hook up two Macintosh computers over LocalTalk, turn on Personal File Share, mount one computer's volume on the other, and make changes to files on each machine, the Get Info mod dates are not adjusted. In my case, machine A's clock said 10:20 and machine B's said 10:30. From machine B, I made a change to a file on machine A. Then, still on machine B, I did a Get Info on that machine A file. Its mod date said 10:20. I then instantly made a change to a file (from machine B still) on machine B and did a Get Info on it and its mod date was 10:30. In other words, the mod dates were not adjusted and reflected the time of the machine each file was located on. Am I misinterpreting something? The way the workstation computes the server time is not quite as straightforward as is documented in Inside AppleTalk, 2nd edition, page 13-21. When a workstation logs onto a server (File Share or AppleShare), the difference between the workstation's clock and the server's clock (s - w) is computed. All subsequent server date/time values as seen by the workstation are computed by adding this difference (s - w) to the server data/time (workstation time = server time + (s - w)). However, it looks as if the Macintosh workstation also uses the following algorithm to compute the adjusted server time:
For example, let's say you have two machines, A and B. B logs on to A. B then goes and modifies a file on A. Listed below are the clock times that the modification took place, and in the rightmost column is the mod. time that B would see for the modified file on A.
In the first example, the difference (s - w) is (11:22 - 11:09) = 13 minutes. Since 13 is less than 15 minutes, B sees the server time as is. In the second example, (s - w) is (11:20 - 11:04) = 16 minutes which is greater than 15 minutes so compute the offset to the nearest 30 minute interval (30 - 16) = 14, and 11:20 + 14 = 11:34. In the third example, (s - w) is (7:14 - 4:34) = 2:40 which is greater than 15 minutes so compute the offset to the nearest 30 minute interval (30-40) = -10, and 7:14 - 10 = 7:05. In the last example, (s - w) is (11:53 - 11:22) = 31 minutes so compute the offset to the nearest 30 minute interval 30 - 31 = -1, and 11:53 - 1 = 11:52. You are probably asking why the 15-minute cushion and why round to the nearest 30-minute interval? Possibly it's an attempt to approximate a modification time somewhere in between the workstation and server times. PBCatSearch on AppleShare volumesDate Written: 3/11/92 Last reviewed: 5/21/92
The
AppleShare Prep file and boot-mounting volumesDate Written: 8/25/92 Last reviewed: 9/15/92 I have selected AppleShare volumes to mount at system startup by checking the volumes in the Chooser list. If I'm on a nonextended network and I call an extended network via AppleTalk Remote Access and log into a remote server via the Chooser and AppleShare, an error alert will say "The AppleShare Prep file needed some minor repairs. Some AppleShare startup information may be lost" and all the information about my local nonextended network will be cleared out of the AppleShare Prep file, so I loose all my log-in IDs and passwords for my local servers. The same thing happens going back the other way (extended to nonextended). Why is this happening? There are several problems you can run into when you connect two networks (and that's what you're doing when you use AppleTalk Remote Access when you're already connected to a network). The problems are usually the result of duplicate names or duplicate node numbers. The "boot mount list" (BML) kept in the AppleShare Prep file stores the location of volumes that you want mounted at boot time. Part of that location is the zone name. If you create entries to the BML when you aren't on an extended network (that is, when you have no zones), the zone name stored in the BML is "*" ("*" is AppleTalk's shorthand for "this zone"). If you create entries to the BML when you are on an extended network (that is, when you have zones), then the zone name stored in the BML is the zone name of the server. The boot mount code checks the validity of the BML when the system starts up, and the Choose checks the validity of the BML when it's opened. If there are no zones, then entries with zone names other than "*" are cleared out and an alert saying "The AppleShare Prep file needed some minor repairs. Some AppleShare startup information may be lost" is displayed because those entries aren't valid. If there are zones, then entries with zone names of "*" are cleared out and the alert is displayed because the "*" zone name isn't a reliable way to save the zone location of a server on an extended network. The "*" zone isn't reliable for storing the zone name because a workstation can easily be moved from zone to zone, keeping the same NBP object and NBP type names. This is especially true with AppleTalk phase 2, which supports multiple zones on a single network (for example, multiple zones on the same piece of Ethernet cable). The workaround for boot-mounting volumes is to create alias files to the file servers you want to mount at boot time and then drop those alias files into the Startup folder inside your System Folder. The only drawback to this is aliases don't save the user's password. If you need boot-mounted volumes without the password dialog, you'll have to use guest access. Downloadables
|