Old 03-03-2011, 12:16 PM   #1 (permalink)
Newbie
 
Join Date: Feb 2011
Posts: 8
jggbbg is on a distinguished road
Default lschafroth's Mac OS X Script

I would have posted this on that old thread (Using UT with MAC OS X Server - can't post links yet), but it has been locked. I'm attempting to utilize that script, but am getting some "command not foundne"s and a syntax error. I would love to utilize the Directory Connector via our Macs authenticating on the AD domain.

Any help would be much appreciated!
jggbbg is offline  
Old 03-03-2011, 12:29 PM   #2 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 15,454
sky-knight is on a distinguished road
Default

While we're waiting on Lannie to help, assuming he can.

The officially supported way to do this is via the captive portal.
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is offline  
Old 03-03-2011, 12:38 PM   #3 (permalink)
Newbie
 
Join Date: Feb 2011
Posts: 8
jggbbg is on a distinguished road
Default

Thanks for the response. I supposed we could begin using that in a pinch, but the majority of our network is PC and is authenticated by the Directory Connector. It would be great if we could like keep the authentication consistent for the Macs.

Here are the results I get from executing the script...
Code:
$ sh adlogon_user.sh
: command not foundne 2: 
: command not foundne 4: 
: command not foundne 7: 
: command not foundne 10: 
adlogon_user.sh: line 35: syntax error: unexpected end of file
jggbbg is offline  
Old 03-04-2011, 06:11 AM   #4 (permalink)
Untangle Ninja
 
Join Date: Jul 2008
Posts: 1,081
lschafroth is on a distinguished road
Default

Quote:
Originally Posted by jggbbg View Post
Thanks for the response. I supposed we could begin using that in a pinch, but the majority of our network is PC and is authenticated by the Directory Connector. It would be great if we could like keep the authentication consistent for the Macs.

Here are the results I get from executing the script...
Code:
$ sh adlogon_user.sh
: command not foundne 2: 
: command not foundne 4: 
: command not foundne 7: 
: command not foundne 10: 
adlogon_user.sh: line 35: syntax error: unexpected end of file
Try running it from the terminal with the command:

./adlogon_user.sh

The lines it is complaining about are spaces or carrage returns. Strange.

Make sure the file is set to executable as well with the command:

chmod 755 adlogon_user.sh

Let me know if that helps.

Lannie
lschafroth is offline  
Old 03-04-2011, 06:13 AM   #5 (permalink)
Untangle Ninja
 
Join Date: Jul 2008
Posts: 1,081
lschafroth is on a distinguished road
Default

I've also found that sometimes if you do anything with the file from windows it can mess it up. The easiest way to fix that is to copy the content from the guide on this site, then open up a new file from the command line on the Mac and paste it in as a new file.

Then set it to executable again.

Lannie

PS Easiest way to edit a file on the Mac is with the nano editor. So type 'nano adlogon_user.sh' and it will open up an empty file. Paste into it and hit control x to exit and it will ask to save the file. Say yes! DON'T forget to change the IP to match your LAN ip of your untangle box.

Last edited by lschafroth; 03-04-2011 at 06:21 AM..
lschafroth is offline  
Old 03-04-2011, 08:00 AM   #6 (permalink)
Newbie
 
Join Date: Feb 2011
Posts: 8
jggbbg is on a distinguished road
Default

Awesome!!! I did create it in Windows so that must have been the problem. Thanks so much!!
jggbbg is offline  
Old 03-04-2011, 08:40 AM   #7 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 15,454
sky-knight is on a distinguished road
Default

If you want to edit linux shell scripts on Windows, I suggest you use Editplus.

http://www.editplus.com/

There is a small fee to register it, but it does a great job of keeping those carriage returns and whatnot clean. Notepad is TERRIBLE to edit scripts on, because it breaks things.

I've been told that notepad++ can do the same thing, but I've never tried it myself.

http://notepad-plus-plus.org/

I've done all my linux scripting via WinSCP for so long I forgot about this little SNAFU. Sorry jggbbg, I'm a bit slow!
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 04:48 AM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2