Re: subversion svn/svnserve SASL with GSSAPI auth not working (for me)

Alec Kloss <[email protected]>
Newsgroups gmane.comp.security.cyrus.sasl
Message-ID <[email protected]>
My bad.  I certainly thought I replied on-list, but mistakes are
sometimes made.  It was a happy coincidence that I happened to be
feeling chatty shortly after the question was sent.

On 2012-09-05 16:07, Curtis Villamizar wrote:
> 
> Thank you for those that responded.  Alec Kloss (off-list and almost
> immediately), Phil Pennock, Dan White, Henry Hotz.
> 
> Problem solved.  I was getting the service ticket on the client.  I
> had used the env variable KRB5_KTNAME to set a different keytab.  I
> spelled the env variable wrong, therefore the server did not find the
> keytab.  I did a bit of poking into the code to figure that out,
> though a careful read of the setup would have spotted it.
> 
> Sorry to top post.  I responded to Alec earlier but didn't realize
> that the list was not on the Cc.
> 
> Curtis
> 
> 
> In message <[email protected]>
> "Henry B. Hotz" writes:
>  
> > Some other things you can look at are:
> >  
> > 1) After it fails, does the cred cache on the client contain a service ticket?
> >  
> > 2) If not, does the client even request a ticket?  (Use snoop/tcpdump.)
> >  
> > 3) If so, does it request the *right* service ticket?  (Use wireshark.)
> >  
> > You can do these things without needing access to the kdc logs, and
> >  they will frequently tell you similar things about what might be
> >  wrong in a client configuration.
> >  
> > On Sep 3, 2012, at 9:08 PM, Dan White wrote:
> >  
> > > 'unknown mech-code 0 for mech' appears in several sasl and non-sasl related
> > > returns with a google search. I guess that it originates from heimdal.
> > > 
> > > Check your kdc logs. This could be something as simple as a dns
> > > disagreement as to what principal the server should be using.
> > > 
> > > The order, as I understand it, is:
> > > 
> > > The client obtains a TGT from the kdc
> > > The client initiates a connection with the svn server
> > > The server returns with a string that contains the supported sasl
> > > mechanisms
> > > The client chooses an appropriate mechanism
> > > If gssapi, then:
> > >  obtain a service ticket from the kdc
> > >  complete authentication with the svn server using the service ticket
> > >  (this step is where things appear to go awry, and points to a possible
> > >  service name mismatch)
> > > 
> > > Make sure that your server contains a matching keytab entry as in your
> > > svn/<host>@<krb5-realm> output from above. Explicitly provide a hostname
> > > within your svnserv.conf, for sasl initialization, if it allows for such a
> > > configuration. If not, verify that 'hostname -f' looks correct on your svn
> > > server.
> > > 
> > > If you restart your svn server, you should see which principal it is
> > > requesting from your kdc (or at least, the first time it initializes sasl).
> > > 
> > > 
> >  
> > ------------------------------------------------------
> > The opinions expressed in this message are mine,
> > not those of Caltech, JPL, NASA, or the US Government.
> > [email protected], or [email protected]

-- 
Alec Kloss                              Email/Jabber IM:  [email protected]
PGP key:             http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x891C04E5
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBAgAGBQJQSBz+AAoJEGwl3h6JHATl2/YH/RbTzIshVb1kXyeJx6SETs4F
rmF5zuZQyzOmdAeygajlialUcvNIVO8yZRa6/ZoKLGN5/MRgT/1LyMKcqBXa+mdG
0ZX79lRJkuSWe3kzvJBWFpPjQ42R3S/4O5U3Q1SXPyPHVQEDsq7Suz5VESxoK/bF
LGxmZwBTYsspbKdOSDNuS/Nb1bXz1iXVMt+X6fSXEHPJKSH1DBI6A246I6vJgKpM
5ASpnhVMpYRyJBPoc8miDmC8gZErW3CCmggQahnLyYbU0OnLJMLfvVsNChAhgzIh
ivW1fxeiTx62HijUIfmCcvPffyQ2U46w6TU5v8lBGnkANGCRCK9lQS8hrnccYfs=
=hpRS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.