Wednesday, October 01, 2003

Have you upgraded OpenSSH to 3.7.1p2 because of the security problems, do you have sshd configured to use PAM, and now your Windows clients can't connect? Hey, what a coincidence, me too.

If you look a little closer at the dialog box that the Windows client pops up when you do a Quick Connect, you'll notice that there is a pull down menu at the bottom labeled Authentication Method. It defaults to Password. Try switching it to Keyboard Interactive and you should be able to log in.

It seems that the best fix for this is to edit the Quick Connect profile and add Keyboard Interactive to the acceptable authentication methods. Then in the Quick Connect dialog box choose <Profile Settings> for the Authentication Method. Connect and then choose Save Settings.

Monday, August 25, 2003

Want to make sendmail's -bP flag work? What's -bP do, you ask? It prints the size of your mail queue (rather like the last line of mailq (aka sendmail -bp)) without printing all of the entries in the mail queue.

First make sure your sendmail was compiled with shared memory support. Run 'sendmail -bv -d0.12 root' and look for SM_CONF_SHM. (Documented here)

Then add the following to your sendmail.m4:

define(`confSHARED_MEMORY_KEY', `42')

The value is arbitrary, it just can't be 0 (zero). If you happen to be running more than one copy of sendmail on your box with different queues, each sendmail config file should use a different value. (Documented (vaguely) here) Rebuild your sendmail.cf, restart sendmail, and -bP should work.