AFP548

Mutliple AFP Xserve share accounts mounted on one client at the same time

hello all, I'm having a little issue using mount_afp that I think i know the answer to, I just can't confirm anywhere: [B]Here's what I have going on: [/B] I have an Xserve which has 100 users created on it. Just local to the Xserve, they aren't part of an open directory. Every users home folder is on the Xserve, and was turned into a share point. Students from within a lab connect to the xserve, type in their credentials, and their shared directory (their home directory on the xserve) mounts on the lab computer. [B]The issue is this:[/B] from any given lab computer, there seems to be no way to mount two separate accounts at the same time. For example, if student1's sharepoint is mounted, and student2 wanted to mount their sharepoint on the same computer while student1's sharepoint is stil mounted, they get an error. I'm assuming the issue is, once you authenticate to the Xserve using one account, it automatically assumes that since the first connection is still active then you want to connect as that user again. Since I have the permissions set up so that every user's share point is only accessible to them (chmod 700), it only allows you to see the connections available for that first account. [B]Here are more specifics[/B] I made a small app that when you open it, it pops open a window asking you for your username and password. It then puts that info into the following script: mkdir /Volumes/userNAME mount -t afp afp://userNAME:userPASS@00.00.000.00/userNAME /Volumes/userNAME So it mounts that one fine, but if another student comes on that computer and runs the app with their credentials while another student's share is still mounted, I get this: [B]mount_afp: the mount flags are 0000 the altflags are 0020 mount_afp: AFPMountURL returned error -5019, errno is 2[/B] So I guess i'd like to know if anyone has successfully mounted two afp shares of differering credentials on the same computer, where the network shares are located on the same xserve. Also, if it isn't possible, i'm trying to find a way to detect if the computer is connected to the xserve, so I can pop up a window telling the user to disconnect the other share before continuing. Thanks for any ideas -nathan
Exit mobile version