No subject
Thu Mar 5 04:39:10 PST 2009
=3D1
And then to:
http://www.macosxhints.com/article.php?story=3D20071028025409750&mode=3Dpri=
nt
You can run:
$ defaults write com.apple.AppleShareClient "afp_cleartext_allow" -bool YES
$ defaults write com.apple.AppleShareClient "afp_cleartext_warn" -bool YES
This is for older Novell servers that don't have Universal passwords set up=
on them (they really should, but I doubt I need to tell you that).
For then doing the mounts, we have a set of scripts (I assume this is NWEA?=
) that we use to do the mounts and loads of tests. If this is the case, I =
can send them along off-list, let me know. Or, for opening single apps tha=
t require a mount point, I use script editor to write an app and then save =
it as an app bundle so we can brand it and use it. Below is sample code fo=
r this.
if (list disks) does not contain "VolumeName" then
--test to see if volume is already mounted then
tell application "Finder"
mount volume "afp://user:password@server.domain.org/VolumeName"
end tell
end if
--hide volume from desktops so it doesn't get messed with
do shell script "/usr/bin/SetFile -a V /Volumes/VolumeName"
do shell script "killall Finder"
tell application "System Events" to delay 2
tell application "Finder"
open file "Applications:MyApp" of startup disk
end tell
Note in the above that the /usr/bin/SetFile file is from the developer tool=
s and is used to hide the volume from the desktop. It works much like the =
jamf mount -hidden command but this doesn't seem to hide it from finder lik=
e the jamf one does (which changed in 6) so that apps can still see the vol=
ume. We use this to launch our apps needing a volume, but don't use it for=
testing.
-John
On 3/20/09 11:26 AM, "Thomas Larkin" <tlarki at kckps.org> wrote:
I thought about that, but I don't want all 6,000 clients accessing the sha=
re at once and I also don't want it permanently mounted. In my experience =
with this testing app from last year is that it works best if you stagger c=
onnections and testing sessions to say, no more than 400 clients at one tim=
e.
I am going to try to invoke apple script from the command line like sugges=
ted and see if it makes a difference.
Thanks for everyone's input and help, it is appreciated.
tom
>>> Miles Leacy <miles.leacy at themacadmin.com> 03/20/09 11:21 AM >>>
Are you using Open Directory? You can set a share as a login item via Workg=
roup Manager. I'm not sure of the applicable MCX settings off the top of my=
head, but if WGM can do it, you can push the MCX via a dscl script.
----------
Miles A. Leacy IV
? Certified System Administrator
? Certified Trainer
Certified Casper Administrator
----------
voice: 1-347-277-7321
miles.leacy at themacadmin.com
www.themacadmin.com <http://www.themacadmin.com>
2009/3/20 Thomas Larkin
<tlarki at kckps.org>
Still no dice. The problem I think I am having is that these shares are on=
old Netware 6.5 servers and 6.5 supports AFP but heck if I know what versi=
on of AFP it is. I do know that it is old enough that it does not support e=
ncrypted passwords. If I recall you need to have universal passwords enable=
d and well the Novell side is being migrated to SuSe but I am not really a =
part of that project. Different network admins.
So, I can hit cmd + K and connect to the file share just fine. I can't con=
nect via command line. I don't know if there is actually a difference. DNS =
is kind of weird because we have an old DNS running on some legacy systems,=
which it is running an older DNS for these file shares. At this point in t=
ime I am almost considering hosting the database file on one of my Mac serv=
ers instead. I don't know how well that will fare though, and my window to =
get this working is getting shorter and shorter.
I just want to create a generic account, grant it access to this one parti=
cular file on a network share so the application can write data to the data=
base file. Once the file share is mounted the application launches and take=
s care of the rest.
It works if I do it manually, no problem. I however, want to have the end =
user click one self service policy and have all the work done for them unde=
r the hood. That way they just click and it works.
I was looking at Apple Scripts but those can be interrupted by the end use=
r. I'd rather it work under the hood via a shell script.
___________________________
Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
blackberry: 913-449-7589
office: 913-627-0351
>>> Eric Winkelhake <eric.winkelhake at mundocomww.com> 03/19/09 5:29 PM >>>
I think he's looking to have the user log in with their creds, right?? so =
actually that osascript works if you remove the user name and password part=
. that'll make the finder request that the user log in rather then the shel=
l.
eric winkelhake
mundocomww
office 312 220 1669
cell 312 504 5155
Yaniv Lugassy <ylugassy at promedianj.com>
Sent by: casper-bounces at list.jamfsoftware.com 03/19/20=
09 05:23 PM
To
Thomas Larkin <tlarki at kckps.org>, Thomas Larkin <TLARKI.PO-001.admin at kck=
ps.org>, <casper at list.jamfsoftware.com>
cc
Subject
Re: [Casper] need advice on self service mount points, and app launching
How about something like this for the script, should do the mount for you =
without any problems:
osascript -e 'mount volume "afp://username:pass@servername/sharepoint"'
Yaniv Lugassy
Promedia Technology Services, Inc.
Office: 973.253.7600 x2308
Fax: 973.253.5601
www.promedianj.com <http://www.promedianj.com> <http://www.promedianj.com <=
http://www.promedianj.com/> >
________________________________
From: Thomas Larkin <tlarki at kckps.org <http://tlarki@kckps.org> >
Date: Thu, 19 Mar 2009 15:04:32 -0500
To: Thomas Larkin <TLARKI.PO-001.admin at kckps.org <http://TLARKI.PO-001.admi=
n at kckps.org> >, <casper at list.jamfsoftware.com <http://casper@list.jamfsoftw=
are.com> >
Subject: Re: [Casper] need advice on self service mount points, and app lau=
nching
Well
A bit of progress, but not in the right direction. I can mount the share fi=
ne via the finder, however when using the mount_afp command I can never get=
it to work. I always get this error:
mount_afp: AFPMountURL returned error 22, errno is 118
So this is my method of doing this from the terminal:
mkdir /Volumes/FS106
mount_afp afp://user:password@10.10.10.10<mailto:afp://user:password@10.10.=
10.10 <mailto:afp://user:password@10.10.10.10> > /Volumes/FS106
I am looking at creating a generic user account so it just auto maps via a =
script and possibly loop it so that is checks to see if that volume is moun=
ted and then once it is mounted it will launch the app, which will have loc=
ation specific configuration for where to look for the database file.
Any help would be appreciated
___________________________
Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org <http://tlarki@kckps.org>
blackberry: 913-449-7589
office: 913-627-0351
>>> "Thomas Larkin" <tlarki at kckps.org <http://tlarki@kckps.org> > 03/19/09 =
11:28 AM >>>
Well
This is a bit of a complicated debacle I am in. I have some old Novell serv=
ers that do not support encrypted passwords, so I must have users log in us=
ing plain text. So I need to mass edit a plist file on each user account to=
allow this. Then I want them to click once on a self service policy and ha=
ve it map the network share that holds the database files. Then in the app'=
s preferences I already have it pointed out where to look.
I looked at the mount_afp command but when I run it in interactive mode it =
always asks for authentication in the terminal? I can't seem to get a GUI b=
ased dialog box. I also need it to wait for about 20 seconds while the user=
authenticates and then have it launch the app in question.
I have the app configured and it works when I do everything manually, but I=
need to wrap this up in a one click solution for the end user, so they don=
't get confused. My other thought is to just create one generic user accoun=
t that can have access to this database file and then use that generic pass=
word in the script and just have it mount under the hood with out the user'=
s actual credentials.
Thanks for any advice.
___________________________
Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org <http://tlarki@kckps.org>
blackberry: 913-449-7589
office: 913-627-0351
________________________________
_______________________________________________
Casper mailing list
Casper at list.jamfsoftware.com <http://Casper@list.jamfsoftware.com>
http://list.jamfsoftware.com/mailman/listinfo/casper_______________________=
________________________
Casper mailing list
Casper at list.jamfsoftware.com
http://list.jamfsoftware.com/mailman/listinfo/casper
------------------------------------------------------------------------
Disclaimer
The information in this email and any attachments may contain proprietary a=
nd confidential information that is intended for the addressee(s) only. If =
you are not the intended recipient, you are hereby notified that any disclo=
sure, copying, distribution, retention or use of the contents of this infor=
mation is prohibited. When addressed to our clients or vendors, any informa=
tion contained in this e-mail or any attachments is subject to the terms an=
d conditions in any governing contract. If you have received this e-mail in=
error, please immediately contact the sender and delete the e-mail.
------------------------------------------------------------------------
Mundocom UK Limited, Registered in England and Wales. Registration Number 2=
882166. Registered Office: Warwick Building, Kensington Village, Avonmore R=
oad, London W14 8HQ.
_______________________________________________
Casper mailing list
Casper at list.jamfsoftware.com
http://list.jamfsoftware.com/mailman/listinfo/casper
--
John Wetter
Technology Support Administrator
Educational Technology, Media & Information Services
Hopkins Public Schools
952-988-5373
--_000_C5E93C638E6Bjohnwetterhopkinsk12mnus_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>Re: [Casper] need advice on self service mount points, and app launc=
hing</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:=
11pt'>Tom,<BR>
<BR>
More information about the Casper
mailing list