[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Re: [PATCH] SASL authentication enhacement
From:       Szombathelyi_György <gyurco () freemail ! hu>
Date:       2004-09-02 7:56:37
Message-ID: 4136D235.1080107 () freemail ! hu
[Download RAW message or body]

Karsten Künne wrote:
> I had to make the following small patch in order to get it to work with our UW 
> imap server using GSSAPI:
> 
> --- imapparser.cc.orig  2004-09-01 11:08:39.000000000 -0400
> +++ imapparser.cc       2004-09-01 17:25:54.000000000 -0400
> @@ -154,6 +154,11 @@
>    while( interact->id != SASL_CB_LIST_END ) {
>      kdDebug(7116) << "SASL_INTERACT id: " << interact->id << endl;
>      switch( interact->id ) {
> +      case SASL_CB_USER:
> +        kdDebug(7116) << "SASL_CB_USER: '" << aUser << "'" << endl;
> +        interact->result = strdup( aUser.utf8() );
> +        interact->len = strlen( (const char *) interact->result );
> +        break;
>        case SASL_CB_AUTHNAME:
>          kdDebug(7116) << "SASL_CB_AUTHNAME: '" << aUser << "'" << endl;
>          interact->result = strdup( aUser.utf8() );
> 
> 
Some server needs the SASL_CB_USER, some not...

> And it still prompts me for username and password unnecessarily. I'll look 
> deeper, maybe I can find a way to turn off the annoying login window for 
> SASL/GSSAPI authentication.
> 
I solved this with integrating the login dialog popup into the sasl 
interact function, and show the dialog only when the interact list have 
SASL_CB_AUTHNAME or SASL_CB_PASS. But a hack is required in KMail to 
check explicitly for GSSAPI. (Why KMail has a login dialog, while the 
ioslaves have one?). Expect a new patch soon (when I finished with POP3 
and SMTP, POP3 is nearly done).

> But other than that it works fine!
> 
Then I hope I will be allowed to commit the patches.
> Please reply to me directly as I'm not subscribed to kde-pim!
> 
> Karsten.
Bye,
György
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic