Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-20 Thread Michal Hlavinka
   I guess this fixes it again:
   http://hg.dovecot.org/dovecot-1.2/rev/f4ff64dd79a9
 
  We've tested dovecot with all four available patches (it means up to date
  mech-gssapi.c ) and it wokrs.

 I've been talking with the main Heimdal guy and he thinks that kind of
 checking is scary bad.

 One thing that should change at least is that gss_display_name()
 shouldn't be passed to krb5_parse_name(). Instead gss_export_name()
 should be used and its results checked and passed to krb5_parse_name()
 (OpenSSH does this too). But I don't know if that would solve the
 original problem that required me to add the patch mentioned above.

 One thing I'm not really sure about in Kerberos is, does both MIT and
 Heimdal require that you are using system users and to have NSS set up
 in a way that Kerberos code can look up users with getpw*() functions? I
 think that's the main thing that krb5_kuserok() does that
 gss_compare_name() doesn't. But does Kerberos do the same check
 elsewhere and this isn't really a problem after all? If it doesn't check
 user's existence elsewhere, maybe I could just use gss_export_name()s
 and compare them instead of display names?..

Unfortunately my Kerberos knowledge is almost equal to zero, so I can't help 
with theory, sorry.


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-18 Thread Nikolay Shopik

On 18.07.2009 3:47, Timo Sirainen wrote:

On Fri, 2009-07-17 at 19:33 -0400, Timo Sirainen wrote:

One thing I'm not really sure about in Kerberos is, does both MIT and
Heimdal require that you are using system users and to have NSS set up
in a way that Kerberos code can look up users with getpw*() functions?


Ah, looking at the original mail it uses userdb static. So this getpw*()
stuff is clearly the problem here. I'll talk to the Heimdal guy more :)

Feel free to post this on comp.protocols.kerberos, to make sure you 
cover every aspect of work with both MIT and Heimdal.




Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-17 Thread Timo Sirainen
On Wed, 2009-07-08 at 13:41 +0200, Michal Hlavinka wrote:
  I guess this fixes it again:
  http://hg.dovecot.org/dovecot-1.2/rev/f4ff64dd79a9
 
 We've tested dovecot with all four available patches (it means up to date 
 mech-gssapi.c ) and it wokrs. 

I've been talking with the main Heimdal guy and he thinks that kind of
checking is scary bad.

One thing that should change at least is that gss_display_name()
shouldn't be passed to krb5_parse_name(). Instead gss_export_name()
should be used and its results checked and passed to krb5_parse_name()
(OpenSSH does this too). But I don't know if that would solve the
original problem that required me to add the patch mentioned above.

One thing I'm not really sure about in Kerberos is, does both MIT and
Heimdal require that you are using system users and to have NSS set up
in a way that Kerberos code can look up users with getpw*() functions? I
think that's the main thing that krb5_kuserok() does that
gss_compare_name() doesn't. But does Kerberos do the same check
elsewhere and this isn't really a problem after all? If it doesn't check
user's existence elsewhere, maybe I could just use gss_export_name()s
and compare them instead of display names?..


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-17 Thread Timo Sirainen
On Fri, 2009-07-17 at 19:33 -0400, Timo Sirainen wrote:
 One thing I'm not really sure about in Kerberos is, does both MIT and
 Heimdal require that you are using system users and to have NSS set up
 in a way that Kerberos code can look up users with getpw*() functions?

Ah, looking at the original mail it uses userdb static. So this getpw*()
stuff is clearly the problem here. I'll talk to the Heimdal guy more :)



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-08 Thread Michal Hlavinka
On Wednesday 08 July 2009 03:06:08 Timo Sirainen wrote:
 On Tue, 2009-07-07 at 20:29 -0400, Timo Sirainen wrote:
  On Tue, 2009-07-07 at 20:20 -0400, Timo Sirainen wrote:
   On Wed, 2009-06-24 at 15:38 +0200, Michal Hlavinka wrote:
dovecot: auth(default): gssapi(user,192.168.0.1): authn_name not
authorized
  
   Can you try what it says with these patches:
  
   http://hg.dovecot.org/dovecot-1.2/rev/4172004c1958
   http://hg.dovecot.org/dovecot-1.2/rev/a5c5a912769e
 
  With those patches you also need auth_debug=yes to get everything
  logged.

 I guess this fixes it again:
 http://hg.dovecot.org/dovecot-1.2/rev/f4ff64dd79a9

should I try it only with these 3 patches or even with the last one? 
http://hg.dovecot.org/dovecot-1.2/rev/5d9eab092e97


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-08 Thread Michal Hlavinka
On Wednesday 08 July 2009 03:06:08 Timo Sirainen wrote:
 On Tue, 2009-07-07 at 20:29 -0400, Timo Sirainen wrote:
  On Tue, 2009-07-07 at 20:20 -0400, Timo Sirainen wrote:
   On Wed, 2009-06-24 at 15:38 +0200, Michal Hlavinka wrote:
dovecot: auth(default): gssapi(user,192.168.0.1): authn_name not
authorized
  
   Can you try what it says with these patches:
  
   http://hg.dovecot.org/dovecot-1.2/rev/4172004c1958
   http://hg.dovecot.org/dovecot-1.2/rev/a5c5a912769e
 
  With those patches you also need auth_debug=yes to get everything
  logged.

 I guess this fixes it again:
 http://hg.dovecot.org/dovecot-1.2/rev/f4ff64dd79a9

We've tested dovecot with all four available patches (it means up to date 
mech-gssapi.c ) and it wokrs. 

Thanks!


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-07 Thread Timo Sirainen
On Wed, 2009-06-24 at 15:38 +0200, Michal Hlavinka wrote:
 dovecot: auth(default): gssapi(user,192.168.0.1): authn_name not authorized

Can you try what it says with these patches:

http://hg.dovecot.org/dovecot-1.2/rev/4172004c1958
http://hg.dovecot.org/dovecot-1.2/rev/a5c5a912769e



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-07 Thread Timo Sirainen
On Tue, 2009-07-07 at 20:20 -0400, Timo Sirainen wrote:
 On Wed, 2009-06-24 at 15:38 +0200, Michal Hlavinka wrote:
  dovecot: auth(default): gssapi(user,192.168.0.1): authn_name not authorized
 
 Can you try what it says with these patches:
 
 http://hg.dovecot.org/dovecot-1.2/rev/4172004c1958
 http://hg.dovecot.org/dovecot-1.2/rev/a5c5a912769e

With those patches you also need auth_debug=yes to get everything
logged.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-07 Thread Timo Sirainen
On Tue, 2009-07-07 at 20:29 -0400, Timo Sirainen wrote:
 On Tue, 2009-07-07 at 20:20 -0400, Timo Sirainen wrote:
  On Wed, 2009-06-24 at 15:38 +0200, Michal Hlavinka wrote:
   dovecot: auth(default): gssapi(user,192.168.0.1): authn_name not 
   authorized
  
  Can you try what it says with these patches:
  
  http://hg.dovecot.org/dovecot-1.2/rev/4172004c1958
  http://hg.dovecot.org/dovecot-1.2/rev/a5c5a912769e
 
 With those patches you also need auth_debug=yes to get everything
 logged.

I guess this fixes it again:
http://hg.dovecot.org/dovecot-1.2/rev/f4ff64dd79a9



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-06-25 Thread Michal Hlavinka
On Thursday 25 June 2009 06:54:48 Michal Hlavinka wrote:
 On Wednesday 24 June 2009 17:15:31 Timo Sirainen wrote:
  On Jun 24, 2009, at 9:38 AM, Michal Hlavinka wrote:
   we're facing problem where dovecot 1.2rc5 is not able to
   authenticate user via
   gssapi. (I'm forwarding information from red hat's bugzilla)
 
  I guess it has to be because of these patches:
 
  http://hg.dovecot.org/dovecot-1.2/rev/ff6378d7b209
  http://hg.dovecot.org/dovecot-1.2/rev/601e0382b442
 
  Could you try reverting them and see if it helps?

 ok, I'll try it asap

when I revert those two patches, it works


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-06-24 Thread Timo Sirainen

On Jun 24, 2009, at 9:38 AM, Michal Hlavinka wrote:

we're facing problem where dovecot 1.2rc5 is not able to  
authenticate user via

gssapi. (I'm forwarding information from red hat's bugzilla)


I guess it has to be because of these patches:

http://hg.dovecot.org/dovecot-1.2/rev/ff6378d7b209
http://hg.dovecot.org/dovecot-1.2/rev/601e0382b442

Could you try reverting them and see if it helps?



Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-06-24 Thread Michal Hlavinka
On Wednesday 24 June 2009 17:15:31 Timo Sirainen wrote:
 On Jun 24, 2009, at 9:38 AM, Michal Hlavinka wrote:
  we're facing problem where dovecot 1.2rc5 is not able to
  authenticate user via
  gssapi. (I'm forwarding information from red hat's bugzilla)

 I guess it has to be because of these patches:

 http://hg.dovecot.org/dovecot-1.2/rev/ff6378d7b209
 http://hg.dovecot.org/dovecot-1.2/rev/601e0382b442

 Could you try reverting them and see if it helps?

ok, I'll try it asap