[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP with SASL: No principal in keytab matches desired name





--On Wednesday, December 22, 2004 2:08 PM -0200 Rodolfo Broco Manin <rodolfo@ime.unicamp.br> wrote:

Hi, All!

We are using OpenLDAP + Kerberos to perform user validation here, and now
I need to enable OpenLDAP's SASL authentication (to use with Cyrus IMAP
and QMail).  I'm testing it with OpenLDAP (2.2.13 - Fedora Core 3), but,
when I try to perform a search - like:
(the "srvtab" parameter at my slapd.conf points to the file above)

srvtab's are K4 related, and have nothing to do with SASL/GSSAPI, just so ya know.


As far as my setup:

ldap1:/etc/leland# klist -k krb5.keytab
Keytab name: FILE:krb5.keytab
KVNO Principal
---- --------------------------------------------------------------------------
5 host/ldap1.stanford.edu@stanford.edu
5 ldap/ldap1.stanford.edu@stanford.edu



Some hint??

Tell slapd where to find the keytab in your startup script?

ldap1:/etc/leland# more /etc/init.d/slapd
#!/sbin/sh
# /etc/init.d/slapd -- Start slapd.
# $Id: slapd.init,v 1.13 2004/12/07 04:55:02 quanah Exp $
#

KRB5_KTNAME="FILE:/etc/leland/krb5.keytab"
export KRB5_KTNAME

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin