Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Improve Squirrelmail compatibility with Mail in Server OS X Server
Squirrelmail as included with Mac OS X Server lets you remotely access your Inbox via a web-browser. It also automatically creates sub-folders to store drafts, sent, and trashed emails as done during a Squirrelmail session. These have a folder structure like this:

Inbox
Drafts
Sent
Trash

When you look at this in Apple Mail, you will see a triangle next to your Inbox, and turning it down reveals the same sub-folders. The purpose of this posting is that this structure is not the same as the default Apple Mail structure, and as such, Apple Mail and Squirrelmail will not automatically be using the same IMAP folders to store drafts, sent, and trash.

It is possible in Apple Mail to select one of these Squirrelmail-created folders, and go to the Mailbox menu and select the "Use This Mailbox For..." command to make it the folder to use for that purpose. It is also possible to edit the Squirrelmail config.php file to adjust its settings which as default will be:
$default_folder_prefix = 'INBOX/';
$trash_folder = 'Trash';
$sent_folder = 'Sent';
$draft_folder = 'Drafts';
I have worked out what to set Squirrelmail to use so that it will then use the same folders that Apple Mail uses as standard. The benefit would be that rather each and every user having to alter the Apple Mail setup, I could do one edit of the config file for Squirrelmail and this would then apply forever for all users.
read more (167 words)   Post a comment  •  Comments (6)  
  • Currently 1.50 / 5
  You rated: 1 / 5 (8 votes cast)
 
[17,104 views] Email Article To a Friend View Printable Version
10.5: Enable full RADIUS support on OS X Server OS X Server
OS X 10.5 Server comes with a Radius server, but at the surface, it seems that Apple only ships with support for wireless access stations. However, the foundation is a fully working FreeRadius server.

When trying to get the Radius server to work together with our Checkpoint firewall for VPN authentication, I found that the Radius server tries to authenticate the users against the /etc/passwd file. However, for authorization, it correctly queries the OpenDirectory. I opened a support call with Apple, and I eventually received the following instructions to change the behavior.

Read on to see the response I received from Apple...
read more (301 words)   Post a comment  •  Comments (10)  
  • Currently 2.42 / 5
  You rated: 1 / 5 (12 votes cast)
 
[51,097 views] Email Article To a Friend View Printable Version
10.5: Use Apple Remote Desktop with Leopard Server OS X Server
This one is simple, but can save some incredible headaches.

When installing OS X Server 10.5, you are presented with a few different install options. If you plan to use Apple Remote Desktop with your machine, you should choose Advanced. The standard install will only allow Screen Sharing to be used.

[robg adds: A friend who administers Server tells me "one can activate ARD via the kickstart command, logged in via ssh, but Advanced indeed activates ARD right after configuring."]
  Post a comment  •  Comments (5)  
  • Currently 1.67 / 5
  You rated: 1 / 5 (9 votes cast)
 
[25,788 views] Email Article To a Friend View Printable Version
Deny SSH access while allowing SFTP access OS X Server
I was finally able to figure out how to disable SSH access to a user account, but still allow SFTP to occur. Edit /etc/sshd_config, and add this section:
Match User sftponly
        AllowTcpForwarding no
        X11Forwarding no
        ForceCommand /usr/libexec/sftp-server -l INFO 
Replace sftponly with your short user name, then save the file and quit the editor.

[robg adds: You'll probably have to restart Remote Login in the Sharing panel to make these changes take effect, but I'm not sure of that, as I haven't tested this hint. It's categorized as an OS X Server hint, but I have no reason to think it wouldn't work in Client as well.]
  Post a comment  •  Comments (4)  
  • Currently 2.56 / 5
  You rated: 4 / 5 (9 votes cast)
 
[14,253 views] Email Article To a Friend View Printable Version
Authenticate Apache 2 using Mac OS X Open Directory OS X Server
I have succesfully made Apache 2.2 use the accounts in our Mac OS X Open Directory, instead of a flat text file. I found that the DN (distinguished name) needed an extra element on the front, uid=. But all the examples I had been finding on the web used a DN of this form:
cn=user1,dn=example,dn=com
Once I added uid=USERNAME on the front, and omitted the cn= part, it worked fine:
uid=user1,dn=example,dn=com
I found this out by using the command-line tool ldapsearch:
ldapsearch -h server1.geo.vuw.ac.nz -x -b \
'dc=geo,dc=vuw,dc=ac,dc=nz' '(uid=testaccount1)'
The output line starting with dn: told me all I needed to know:
dn: uid=testaccount1,cn=users,dc=geo,dc=vuw,dc=ac,dc=nz
read more (105 words)   Post a comment  •  Comments (1)  
  • Currently 2.30 / 5
  You rated: 2 / 5 (10 votes cast)
 
[17,226 views] Email Article To a Friend View Printable Version
Create a transparent local software update server OS X Server
This is a way to transparently set up a server to cache software updates on your local network. This doesn't require any modifications (defaults write...) on clients -- it just works. And I didn't find any other similar solution on the internet; not even here! It does require Mac OS X Server, however. Here's how we did it:
  1. Build a Mac OS X Server and call it yoursus. We used a headless Mac mini to do the job.
  2. You must use external DNS servers on this server (so it won't check itself for updates).
  3. Add a record for your server on your internal DNS, so yoursus.yourdomain.com resolves to your SUS's IP.
  4. Start Software Update Server (SUS). It may take some time to cache all updates -- our /usr/share/swupd/html/ folder now has almost 9GB of files in it!
  5. Start Web Service, and add following redirect (Server Admin » Web » Sites » default » Edit » Aliases » URL Aliases and Redirects » Add » Redirect):
    • Pattern: /content/catalogs/index-1.sucatalog
    • Path: http://yoursus.yourdomain.com:8088/index.sucatalog
  6. Add a zone in your internal DNS, called swscan.apple.com, and point the whole subdomain to the IP of your SUS.
  7. Flush your DNS cache on the clients: lookupd -flushcache
Now test your setup. Using Safari, following this link to Apple's catalog on your SUS should show Apple's real catalog (ApplePostURL should start with swquery.apple.com), while the same on other computers in your network should resolve and be forwarded to your SUS, http://yoursus.yourdomain.com:8088/index.sucatalog (ApplePostURL will start with yoursus.yourdomain.com:8088 this time).
read more (160 words)   Post a comment  •  Comments (45)  
  • Currently 3.18 / 5
  You rated: 5 / 5 (17 votes cast)
 
[107,733 views] Email Article To a Friend View Printable Version
10.4: DHCP Static Maps on OS X 10.4 Server OS X Server
I was trying to figure out why Static Maps would not work on my 10.4 Server. The setup is straightforward: add MAC Address and assign IP; pretty simple. However, my server would not hand out the assign IPs.

Well I found out that when you create static maps on OS X Server, your clients should not have anything in the DHCP Client ID box (i.e. they should leave it blank). Hopes that helps someone!
  Post a comment  •  Comments (4)  
  • Currently 2.33 / 5
  You rated: 2 / 5 (9 votes cast)
 
[12,885 views] Email Article To a Friend View Printable Version
10.4: Bring search to OS 9 clients via Searchlight OS X Server
Recently we installed an Intel XServe at a company where all Mac stations were running Mac OS 9.2.2. I may seem odd, but here in Greece, most of the publishing companies still rely on native boot Mac OS 9 stations. The problem that occurred was that none of the Mac OS 9 stations could not search the 1.5TB shared AFP volume of the XServe with Sherlock, an abilty that the older Panther Server use to provide.

After extensive search, I end up to the conclusion -- I may be wrong -- that the missing Install Mac OS 9 drivers option of the Disk Utility was to blame. This conclusion came up since Mac OS 9 clients can successfully search any PowerPC-based Tiger Server. I've come up with this solution: install Searchlight, a $29.90 utility, on the XServe, and Netscape 7.02 on the Mac OS 9 clients. It's not perfect, but it's a solution.

[robg adds: Lacking an Xserve here at macosxhints HQ, I can't confirm either the problem or a solution...]
  Post a comment  •  Comments (0)  
  • Currently 2.00 / 5
  You rated: 5 / 5 (9 votes cast)
 
[6,347 views] Email Article To a Friend View Printable Version
Connect to XServes via direct serial connection OS X Server
We spent a long time trying to get our XServe Macs to talk serial to serial. Putting together many of the hints and pieces, we finally came up with a relatively simple Terminal solution. Just connect the serial cables together of two machines and run this on one of them:

#!/bin/bash

sudo /System/Library/StartupItems/SerialTerminalSupport/SerialTerminalSupport stop
screen /dev/cu.serial 57600
sudo /System/Library/StartupItems/SerialTerminalSupport/SerialTerminalSupport start

Here's what each line in the script does (other than the first one):
  1. Turn off serial support (incoming to the machine)
  2. Talk out over the serial port to the target machine
  3. Restore serial support (incoming to the machine)
[robg adds: I haven't tested this one.]
  Post a comment  •  Comments (2)  
  • Currently 2.22 / 5
  You rated: 4 / 5 (9 votes cast)
 
[7,589 views] Email Article To a Friend View Printable Version
A fix for system slowness with locally-run Server OS X Server
This may help you out if you are running any server version of OSX on a desktop machine and are experiencing extreme slowness while starting new programs. I installed Tiger server on my desktop machine and was running into unexplained creeping slowness with applications. It turned out to be related to a memory hogging program that Server runs by default, called Web Performance Cache, or webperfcache (name of the program).

webperfcache performs a very useful function if you are serving web pages on the internet and want really high performance. It caches static web pages in memory to accomplish this, which is great if you're a web company, but is generally unnecessary for home use. The problem is it forces these pages to stay resident in memory, and has a negative impact on OS X's memory paging and swapping routines. Long story short, turning it off drastically improved the performance of my G4, and it might help you out, too, if you're the kind of person who runs Server at home as a graphical desktop.

To disable it, go into the Server Admin program (under Applications/Server) and click on the local node (your computer's name) under Computers and Services. Then select the Web service, and under this the Settings tab. There is an Options tab under settings that controls optional web server components. You should uncheck Web Performance Cache here and save your settings.

It can be re-enabled by checking this box again, but I can't see why anyone would need to.
  Post a comment  •  Comments (7)  
  • Currently 1.78 / 5
  You rated: 3 / 5 (9 votes cast)
 
[7,106 views] Email Article To a Friend View Printable Version