Re: consistent ldap login problem

2001-06-10 Thread Philipp Sacha

[EMAIL PROTECTED] wrote:
> 
> **
> [EMAIL PROTECTED] wrote on Fri Jun 08 15:42:17 CST 2001
> **
> hi!
> 
> thanks a lot 4 ur reply.  it seems to me that there's no simple way that we can use 
>cyrus 2.x with ldap at this moment??  i swtiched back to cyrus 1.5.19 w/ pwcheck_ldap 
>compiled in.  it is working ok now, and i can continue with the testing.
> 
> i m still interested in setting up 2.x with ldap.  but it will not be on my priority 
>list now.  we'll keep an eye on the development of the pam_ldap issue that u have 
>spotted.  let's hope it will get resolved soon.
> 

[...]

Hi,

i have set up successfully cyrus 2.0.11 with LDAP-Authentication using
pam_ldap. But it was difficult to get pam_ldap working. I had made the
experience that it was very important against which LDAP libraries
pam_ldap was linked. When linking pam_ldap against openldap 2.x i
encountered the error mentioned. In using openldap 1.x or the libraries
from the netscape ldap-sdk 4.1 (which i am now using) the configuration
was successful.

Regards,

Philipp

-- 
Philipp Sacha - Bosch Telecom GmbH 
Business Unit Broadband Network Operations
Zitadellenweg 34, D-13599 Berlin  
Tel.: +49 30 3388 - 1094, Fax.: +49 30 3388 - 1936



RE: Re: consistent ldap login problem

2001-06-10 Thread Tarjei Huse

> thanks a lot 4 ur reply.  it seems to me that there's no simple 
> way that we can use cyrus 2.x with ldap at this moment??  i 
> swtiched back to cyrus 1.5.19 w/ pwcheck_ldap compiled in.  it is 
> working ok now, and i can continue with the testing.  
Use the sasl-ldap patch. It works like a dream for me. 
 
look here: www.surf.co.uk

tarjei



Problems configuring FreeBSD v4.3

2001-06-10 Thread Andrew Barnes

Hi All,

I'm trying to install Cyrus IMAP with the following configuration:

FreeBSD v4.3
cyrus-imapd-2.0.12_4
cyrus-sasl-1.5.24_4
db3-3.2.9

Please note that all the above is installed from the "ports" collection.

==
cyrus-imapd-2.0.12_4 configure options:
CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \
--with-cyrus-group=cyrus \
--with-sasl=${LOCALBASE} \
--with-dbdir=${LOCALBASE} \
--with-auth=unix \
--with-com_err

cyrus-sasl-1.5.24_4 configure options:
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--with-plugindir=${PREFIX}/lib/sasl \
--with-dbpath=${PREFIX}/etc/sasldb \
--includedir=${PREFIX}/include/sasl \
--enable-static \
--enable-login \
--enable-plain \
--with-pwcheck=/var/pwcheck \
--with-dblib=ndbm \
--with-rc4=openssl

db3-3.2.9 configure options
CONFIGURE_ARGS= --enable-compat185 \
--enable-dump185 --enable-cxx \
--enable-dynamic \
--prefix=${PREFIX} \
--includedir=${PREFIX}/include/db3 \
--target=$(ARCH)-unknown-freebsd$(OSREL)

==
I have created the appropriate account using cyradm:

cyradmin -u cyrus localhost
cm user.blah

I have added a password for this user using saslpasswd:

/usr/local/sbin/saslpasswd -c blah

==
I have then tried to test the account, and received the following error
messages:

imtest -a blah -m login localhost
C: C01 CAPABILITY
S: * OK my.imap.server Cyrus IMAP4 v2.0.12 server ready
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
NO_ATOMI
C_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES
IDLE
AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
Password:
C: L01 LOGIN blah {6}
+ go ahead
C: 
L01 NO Login failed: Userid not found
Authentication failed. generic failure
Security strength factor: 0

When I try the same using the account "cyrus" I get -

 imtest -a cyrus -m login localhost
C: C01 CAPABILITY
S: * OK my.imap.server Cyrus IMAP4 v2.0.12 server ready
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
NO_ATOMI
C_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES
IDLE
AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
Password:
C: L01 LOGIN cyrus {8}
+ go ahead
C: 
L01 OK User logged in
Authenticated.
Security strength factor: 0

The difference here is that I have NOT used the cyradm command to create the
user.blah directory first.

==
The messages in /var/log/imapd.log are:

Jun 11 00:38:26 server imapd[81672]: badlogin: my.imap.server[127.0.
0.1] plaintext blah Userid not found
Jun 11 00:38:32 server master[81586]: process 81672 exited, status 0

Jun 11 00:35:55 server imapd[81669]: login:
localhost.home.mosina.com.au[127.0.0.1
] cyrus plaintext
Jun 11 00:36:00 server master[81586]: process 81669 exited, status 0

==
My /usr/local/etc/imapd.conf contains:

configdirectory: /var/imap
partition-default: /var/spool/imap
allowanonymouslogin: no
quotawarn: 90
admins: root cyrus
sieveusehomedir: false
sievedir: /var/imap/sieve
sasl_pwcheck_method: pwcheck
sasl_auto_transition: yes
==

Any ideas please?

Cheers,
Andrew Barnes

--
Andrew Barnes
Email:  [EMAIL PROTECTED]
PGP Fingerprint: 2C8E E948 C62D 8C2C 48E3  0925 6ED3 78AA 5B17 6E26




Problems configuring FreeBSD v4.3

2001-06-10 Thread Andrew Barnes

Hi All,

I'm trying to install Cyrus IMAP with the following configuration:

FreeBSD v4.3
cyrus-imapd-2.0.12_4
cyrus-sasl-1.5.24_4
db3-3.2.9

Please note that all the above is installed from the "ports" collection.

==
cyrus-imapd-2.0.12_4 configure options:
CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \
--with-cyrus-group=cyrus \
--with-sasl=${LOCALBASE} \
--with-dbdir=${LOCALBASE} \
--with-auth=unix \
--with-com_err

cyrus-sasl-1.5.24_4 configure options:
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--with-plugindir=${PREFIX}/lib/sasl \
--with-dbpath=${PREFIX}/etc/sasldb \
--includedir=${PREFIX}/include/sasl \
--enable-static \
--enable-login \
--enable-plain \
--with-pwcheck=/var/pwcheck \
--with-dblib=ndbm \
--with-rc4=openssl

db3-3.2.9 configure options
CONFIGURE_ARGS= --enable-compat185 \
--enable-dump185 --enable-cxx \
--enable-dynamic \
--prefix=${PREFIX} \
--includedir=${PREFIX}/include/db3 \
--target=$(ARCH)-unknown-freebsd$(OSREL)

==
I have created the appropriate account using cyradm:

cyradmin -u cyrus localhost
cm user.blah

I have added a password for this user using saslpasswd:

/usr/local/sbin/saslpasswd -c blah

==
I have then tried to test the account, and received the following error
messages:

imtest -a blah -m login localhost
C: C01 CAPABILITY
S: * OK my.imap.server Cyrus IMAP4 v2.0.12 server ready
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
NO_ATOMI
C_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES
IDLE
AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
Password:
C: L01 LOGIN blah {6}
+ go ahead
C: 
L01 NO Login failed: Userid not found
Authentication failed. generic failure
Security strength factor: 0

When I try the same using the account "cyrus" I get -

 imtest -a cyrus -m login localhost
C: C01 CAPABILITY
S: * OK my.imap.server Cyrus IMAP4 v2.0.12 server ready
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
NO_ATOMI
C_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES
IDLE
AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
Password:
C: L01 LOGIN cyrus {8}
+ go ahead
C: 
L01 OK User logged in
Authenticated.
Security strength factor: 0

The difference here is that I have NOT used the cyradm command to create the
user.blah directory first.

==
The messages in /var/log/imapd.log are:

Jun 11 00:38:26 server imapd[81672]: badlogin: my.imap.server[127.0.
0.1] plaintext blah Userid not found
Jun 11 00:38:32 server master[81586]: process 81672 exited, status 0

Jun 11 00:35:55 server imapd[81669]: login:
localhost.home.mosina.com.au[127.0.0.1
] cyrus plaintext
Jun 11 00:36:00 server master[81586]: process 81669 exited, status 0

==
My /usr/local/etc/imapd.conf contains:

configdirectory: /var/imap
partition-default: /var/spool/imap
allowanonymouslogin: no
quotawarn: 90
admins: root cyrus
sieveusehomedir: false
sievedir: /var/imap/sieve
sasl_pwcheck_method: pwcheck
sasl_auto_transition: yes
==

Any ideas please?

Cheers,
Andrew Barnes

--
Andrew Barnes
Email:  [EMAIL PROTECTED]
PGP Fingerprint: 2C8E E948 C62D 8C2C 48E3  0925 6ED3 78AA 5B17 6E26