[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Saslauthd start-probleem



Op 20100202 om 19:16 schreef Geert Stappers:
> Op 20100202 om 13:36 schreef Paul van der Vlis:
> > Geert Stappers schreef:
> > > 
> > > No run directory defined for saslauthd
> > 
> > Ik schreef:
> > --------
> > Uiteraard heb ik een run-directory ingesteld in /etc/default/saslauthd:
> > OPTIONS="-c -m /var/run/saslauthd"
> > --------
> > 
> > En je ziet ook in ps dat dat is doorgekomen:
> > -----------
> > mail:/etc/init.d# ps aux | grep saslauthd
> > root      8203  0.0  0.1   8728  1424 ?        Ss   11:16   0:00
> > /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
> > root      8205  0.0  0.1   8584  1240 ?        S    11:16   0:00
> > /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
> > (...)
> > ----------
> 
> 
> Ooh, er wordt vertelt dat er een Debian package kapot is.
> Ik kan het mij niet voorstellen.
> Laat ik eens zelfs met dat package spelen.
> 
> viggo:~
> # 

Dat is mijn prompt,
 'viggo' is de hostname, ik sta in home dir (van root)
  als root

> viggo:~
> # aptitude search saslauth
> viggo:~

Package gezocht, bleek de naam sasl2-bin te hebben.

> # aptitude install sasl2-bin
> Reading package lists... Done
    [ wat zou er ge-installeerd moeten worden en is dat acceptabel ]
> The following NEW packages will be installed:
>   db4.8-util{a} libdb4.8{a} sasl2-bin 
> The following packages will be upgraded:
>   libsasl2-2 libsasl2-modules libssl-dev libssl0.9.8 
> 4 packages upgraded, 3 newly installed, 0 to remove and 1309 not upgraded.
> Need to get 4547kB of archives. After unpacking 2642kB will be used.
    [ download ]
> Fetched 4547kB in 27s (166kB/s)                                                                    
> Preconfiguring packages ...
> (Reading database ... 179570 files and directories currently installed.)
> Preparing to replace libssl-dev 0.9.8g-15 (using .../libssl-dev_0.9.8k-8_powerpc.deb) ...
> Unpacking replacement libssl-dev ...
> Preparing to replace libssl0.9.8 0.9.8g-15 (using .../libssl0.9.8_0.9.8k-8_powerpc.deb) ...
> Unpacking replacement libssl0.9.8 ...
> Selecting previously deselected package libdb4.8.
> Unpacking libdb4.8 (from .../libdb4.8_4.8.26-1_powerpc.deb) ...
> Preparing to replace libsasl2-modules 2.1.22.dfsg1-23 (using .../libsasl2-modules_2.1.23.dfsg1-5_powerpc.deb) ...
> Unpacking replacement libsasl2-modules ...
> Preparing to replace libsasl2-2 2.1.22.dfsg1-23 (using .../libsasl2-2_2.1.23.dfsg1-5_powerpc.deb) ...
> Unpacking replacement libsasl2-2 ...
> Selecting previously deselected package db4.8-util.
> Unpacking db4.8-util (from .../db4.8-util_4.8.26-1_powerpc.deb) ...
> Selecting previously deselected package sasl2-bin.
> Unpacking sasl2-bin (from .../sasl2-bin_2.1.23.dfsg1-5_powerpc.deb) ...
> Processing triggers for man-db ...
> Setting up libssl0.9.8 (0.9.8k-8) ...
> Setting up libssl-dev (0.9.8k-8) ...
> Setting up libdb4.8 (4.8.26-1) ...
> Setting up libsasl2-2 (2.1.23.dfsg1-5) ...
> Setting up libsasl2-modules (2.1.23.dfsg1-5) ...
> Setting up db4.8-util (4.8.26-1) ...
> Setting up sasl2-bin (2.1.23.dfsg1-5) ...
> To enable saslauthd, edit /etc/default/saslauthd and set START=yes (warning).

Die regel had ik eerder gemist.


> [master 6f18a21] committing changes in /etc after apt run
>  11 files changed, 387 insertions(+), 0 deletions(-)
>  create mode 100644 default/saslauthd
>  create mode 100755 init.d/saslauthd
>  create mode 120000 rc0.d/K20saslauthd
     [ meer etckeeper output ]
>  create mode 120000 rc6.d/K20saslauthd
>  create mode 100644 sasldb2
> Reading package lists... Done             
> Building dependency tree       
> Reading state information... Done
> Reading extended state information      
> Initializing package states... Done
> Writing extended state information... Done
> Reading task descriptions... Done         
> 
> Current status: 1309 updates [-4].
> viggo:~
> # ps -ef | grep sasl

Draait het?

> root      3698  3749  0 18:40 pts/4    00:00:00 grep sasl
> viggo:~
> # ps -ef | grep saslauth
> root      3700  3749  0 18:41 pts/4    00:00:00 grep saslauth
> viggo:~

Nee, het draait echt niet.  Dan maar een reconfigure

> # dpkg-reconfigure sasl2-bin
> Stopping SASL Authentication Daemon: saslauthd.
> To enable saslauthd, edit /etc/default/saslauthd and set START=yes (warning).
> viggo:~
> # 
> 
> 
> cat /etc/default/saslauthd
> #
> # Settings for saslauthd daemon
> # Please read /usr/share/doc/sasl2-bin/README.Debian for details.

Hey, daar staat 'Read the Fine Manual'  :-)

> #
> 
> # Should saslauthd run automatically on startup? (default: no)
> START=no
> 
> # Description of this saslauthd instance. Recommended.
> # (suggestion: SASL Authentication Daemon)
> DESC="SASL Authentication Daemon"
> 
> # Short name of this saslauthd instance. Strongly recommended.
> # (suggestion: saslauthd)
> NAME="saslauthd"
> 
> # Which authentication mechanisms should saslauthd use? (default: pam)
> #
> # Available options in this Debian package:
> # getpwent  -- use the getpwent() library function
> # kerberos5 -- use Kerberos 5
> # pam       -- use PAM
> # rimap     -- use a remote IMAP server
> # shadow    -- use the local shadow password file
> # sasldb    -- use the local sasldb database file
> # ldap      -- use LDAP (configuration is in /etc/saslauthd.conf)
> #
> # Only one option may be used at a time. See the saslauthd man page
> # for more information.
> #
> # Example: MECHANISMS="pam"
> MECHANISMS="pam"
> 
> # Additional options for this mechanism. (default: none)
> # See the saslauthd man page for information about mech-specific options.
> MECH_OPTIONS=""
> 
> # How many saslauthd processes should we run? (default: 5)
> # A value of 0 will fork a new process for each connection.
> THREADS=5
> 
> # Other options (default: -c -m /var/run/saslauthd)
> # Note: You MUST specify the -m option or saslauthd won't run!
> #
> # WARNING: DO NOT SPECIFY THE -d OPTION.
> # The -d option will cause saslauthd to run in the foreground instead of as
> # a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish
> # to run saslauthd in debug mode, please run it by hand to be safe.
> #
> # See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information.
> # See the saslauthd man page and the output of 'saslauthd -h' for general
> # information about these options.
> #
> # Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
> OPTIONS="-c -m /var/run/saslauthd"
> 
> 
> Een stuk manualpage
> 
> SASLAUTHD(8)              BSD System Manager's Manual             SASLAUTHD(8)
> 
> NAME
>      saslauthd - sasl authentication server
> 
> SYNOPSIS
>      saslauthd -a authmech [-Tvdchlr] [-O option] [-m mux_path] [-n threads]
>                [-s size] [-t timeout]
> 
> DESCRIPTION
>      saslauthd is a daemon process that handles plaintext authentication
>      requests on behalf of the SASL library.
> 
>      The server fulfills two roles: it isolates all code requiring superuser
>      privileges into a single process, and it can be used to provide proxy
>      authentication services to clients that do not understand SASL based
>      authentication.
> <knip/>
>      -m path
>             Use path as the pathname to the named socket to listen on for

Een named socket ...

>             connection requests. This must be an absolute pathname, and MUST
>             NOT include the trailing "/mux".  Note that the default for this
>             value is "/var/state/saslauthd" (or what was specified at compile
>             time) and that this directory must exist for saslauthd to func-
>             tion.
> 
> 
> > 
> > Op andere machines gaat het wel goed, met dezelfde configuratie.
> > 

Vertel eens meer over /dir/ec/tory
als in '-m /dir/ec/tory' van die andere machines.



Stappers

Attachment: signature.asc
Description: Digital signature


Reply to: