Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41247 - cyrus-sasl 2.1.14 as a wrong option "-H" in /etc/conf.d/saslauthd
Summary: cyrus-sasl 2.1.14 as a wrong option "-H" in /etc/conf.d/saslauthd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 46727 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-11 07:28 UTC by JBLpro
Modified: 2004-04-04 07:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
If fixes the wrong "-H" option (saslauthd.patch,469 bytes, patch)
2004-02-11 07:30 UTC, JBLpro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description JBLpro 2004-02-11 07:28:18 UTC
cyrus-sasl 2.1.14 as a wrong option "-H"  in /etc/conf.d/saslauthd

Reproducible: Always
Steps to Reproduce:
1.install cyrus-sasl
2.try to start saslauthd
3.

Actual Results:  
in gives an error about a wrong option "-H" 

Expected Results:  
it should start OK
Comment 1 JBLpro 2004-02-11 07:30:47 UTC
Created attachment 25408 [details, diff]
If fixes the wrong "-H" option
Comment 2 Niels Laukens 2004-02-15 08:40:25 UTC
If you adapt the config file to read the folowing, the problem is also suppressed (not solved):

---snip---
# Tack the above options together
[ -n "${SASL_AUTHMECH}" ] && \
        SASLAUTHD_OPTS="-a ${SASL_AUTHMECH}"
[ -n "${SASL_RIMAP_HOSTNAME}" ] && \
        SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -H ${SASL_RIMAP_HOSTNAME}"
[ -n "${SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS}" ] && \
        SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -T"
Comment 3 Target 2004-02-22 02:25:42 UTC
Same problem. saslauthd has no -H option, so it shouldn't be there.

The maintainer also incorrectly assumes that setting a varible="" unsets it, which it does not. All three optional sections are being executed. The solution is to instruct the user to comment out items rather than setting them to "" (and comment out the RIMAP var in the conf script as it's off by default).
Comment 4 Christian Birchinger (RETIRED) gentoo-dev 2004-03-12 21:28:21 UTC
-T for SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS is also unknown to saslauthd
Comment 5 Max Kalika (RETIRED) gentoo-dev 2004-03-15 12:04:57 UTC
Any chance you can try cyrus-sasl-2.0.18?
Comment 6 Christopher G. Stach II 2004-03-17 09:31:24 UTC
This should fix everything, but -T is unsupported in this version so don't set the time of day restrictions to anything but blank.

*** saslauthd.orig      Wed Mar 17 10:55:08 2004
--- saslauthd   Wed Mar 17 11:22:44 2004
***************
*** 1,6 ****
! # Copyright 1999-2004 Gentoo Technologies, Inc.
! # Distributed under the terms of the GNU General Public License v2
! # $Header: /home/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/files/saslauthd.conf,v 1.2 2004/03/04 18:36:16 vapier Exp $
   
  # Config file for /etc/init.d/saslauthd
   
--- 1,6 ----
! # Copyright 1999-2002 Gentoo Technologies, Inc.
! # Distributed under the terms of the GNU General Public License, v2 or later
! # $Header: /home/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/files/saslauthd.conf,v 1.1 2004/01/14 19:42:47 max Exp $
   
  # Config file for /etc/init.d/saslauthd
   
***************
*** 12,24 ****
   
  # Honour time-of-day login restrictions (if shadow auth mech is used)
  # Make this ="" to turn it off.  Putting =no will turn it on!
! SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS=yes
   
   
  # Tack the above options together
! [ -n ${SASL_AUTHMECH} ] && \
        SASLAUTHD_OPTS="-a ${SASL_AUTHMECH}"
! [ -n ${SASL_RIMAP_HOSTNAME} ] && \
!       SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -H ${SASL_RIMAP_HOSTNAME}"
! [ -n ${SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS} ] && \
        SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -T"
--- 12,25 ----
   
  # Honour time-of-day login restrictions (if shadow auth mech is used)
  # Make this ="" to turn it off.  Putting =no will turn it on!
! #SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS=yes
! SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS=""
   
   
  # Tack the above options together
! [ -n "${SASL_AUTHMECH}" ] && \
        SASLAUTHD_OPTS="-a ${SASL_AUTHMECH}"
! [ -n "${SASL_RIMAP_HOSTNAME}" ] && \
!       SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -O rimap=${SASL_RIMAP_HOSTNAME}"
! [ -n "${SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS}" ] && \
        SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -T"
Comment 7 Tom Dickson 2004-03-28 21:58:28 UTC
I just commented out the lines that I didn't understand :)

Seems to work.
Comment 8 JBLpro 2004-03-29 02:38:39 UTC
That's Correct.
Comment 9 Max Kalika (RETIRED) gentoo-dev 2004-04-04 07:46:50 UTC
*** Bug 46727 has been marked as a duplicate of this bug. ***