[Casper] Scripting help
Cyrus Vahhaji
Cyrus.Vahhaji at bestbuy.com
Fri Nov 7 07:54:05 PST 2008
Trying to add an AD group for the AD plug-in. Like to add
³NA\bby-r-macadminusers-wk-f² to the existing three listed in the script
using dsconfigad command.
Using the command below works fine in terminal but not with the script I¹ve
written. Just did a quick test in terminal and the script ran off the
desktop. So there shouldn¹t be any syntax errors.
To answer a few questions/commnents following this email.
* The log says it can¹t find the script and not the group.
* I can run the script locally as mentioned above so the syntax should be
OK.
* I¹m not and AD expert and haven¹t looked to see who are domain and admin
members. They are populated when the machine is bound. Thanx for bringing
this up and I¹ll look to see if they need to be in there or not.
* Ryan, I¹m not sure what you mention in your email is causing any issues,
at least not based on running the script locally. Also tried your echo test
and output was as expected.
* I¹ve also propagated permissions on the server with no change.
Thanx for all the input.
From: Miles Leacy <miles.leacy at themacadmin.com>
Date: Fri, 7 Nov 2008 10:35:39 -0500
To: Cyrus Vahhaji <Cyrus.Vahhaji at bestbuy.com>
Cc: <Casper at list.jamfsoftware.com>
Subject: Re: [Casper] Scripting help
It would help if you tell us what you're trying to accomplish with the
script.
I can alter this and make it do a bunch of different things.
2008/11/7 Cyrus Vahhaji <Cyrus.Vahhaji at bestbuy.com>
> Questions for scripting experts. I'm trying to run this as a script and for
> some reason its not running. Here is what I've scripted.
>
>
> #!/bin/sh
>
> dsconfigad -groups "NA\domain admins,NA\enterprise
> admins,NA\bby-r-corpworkstationadmin-wk-f,NA\bby-r-MacAdminUsers-WK-F"
>
> Does anything jump out that prevents this from running? After running the
> script using Casper the log says it can't be found which I'm guessing there is
> a syntax error somewhere?
>
> Thanx,
> Cyrus
>
> _______________________________________________
> Casper mailing list
> Casper at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20081107/09fbc0aa/attachment.html
More information about the Casper
mailing list