ID:               33500
 Updated by:       [email protected]
 Reported By:      ed2019 at columbia dot edu
 Status:           Assigned
 Bug Type:         Feature/Change Request
 Operating System: *
 PHP Version:      5.2.9
 Assigned To:      pajoye
 New Comment:

Yes, have the patch but it was too late for 5.3.0. It will be committed
in HEAD and after 5.3.1.


Previous Comments:
------------------------------------------------------------------------

[2009-07-01 17:38:37] hperrin at SPAMMENOTgmail dot com

I'm running Group-Office and I have this same problem. I can get it to
login to our Exchange 2007 server by running `kinit [email protected]`
on Apache's user. However, this causes all the Group-Office mail
accounts to receive that user's emails, regardless of the credentials
given to them. From my understanding, it is not technically incorrect to
use c-client the way PHP currently does, but it is inefficient and
limits the developers possibilities. So, it's been over a month since
this request was updated. Is there any news on the status of this issue?
Pajoye, if you can fix this, you will be my personal hero, and I'll name
something after you. ;)

------------------------------------------------------------------------

[2009-05-21 09:23:43] [email protected]

It is a feature request, if you read our last two comments you will see
that we already agreed on that. 

------------------------------------------------------------------------

[2009-05-20 22:00:16] hmandel at learningbygrace dot org

While you guys are debating whether this is a bug or a feature request
our coders here are still stuck at the end of developing some web apps
because PHP and Exchange will not "exchange"... Damn it Jim, we can't
get our emails off the Exchange server.:~)

So since I can see you have all this expertise and are fully aware of
the bug/feature request, I'd like to hire one of you to make this change
and customize our darn PHP code so these guys (PHP and Exchange) can
make up and talk again. 

ANyone up to it. I'll hire you so long as you REALLY can solve the
problem and also I will not discriminate between those who believe this
is a Feature Request and those who call i a Bug... we are equal
opportunity here at Learning By Grace. My contact info is hmandel at
learningbygrace dot org. Cell is two67-two49-five one67.

Any takers?

------------------------------------------------------------------------

[2009-04-27 18:42:40] [email protected]

ok, I was looking at mail_auth*. Then it should be possible to do it, I
move the status to feature request (leaving it in the imap category but
assigned to me, I will setup GSSAPI in my test exchange server box to
valid the changes).

Thanks for all the referecences, it will make the implementation
easier.

------------------------------------------------------------------------

[2009-04-27 17:31:15] ed2019 at columbia dot edu

pajoye - You're the one with the power to declare whether it's a bug or
not.  Since we disagree on this point, either I don't know what a bug is
(entirely possible) or myself & the others commenting on this situation
via the bug reporter have done a poor job of explaining to you what the
situation is.

To answer the included questions:

"It could be a feature request but I do not see either how to you can
force c-client to use a given authentication method. I suppose you know
right?"

Yes, you can force c-client to use / not use a particular
authentication method.  Please see this series of e-mail messages:

http://www.mail-archive.com/[email protected]/msg01962.html
http://www.mail-archive.com/[email protected]/msg01963.html

"now, about your proposal: 1) why don't you try?"

I did discuss the issue with Crispin, please see this exchange of
e-mail messages:
http://mailman2.u.washington.edu/pipermail/imap-uw/2005-June/000101.html

Notably his response:
"I agree that c-client should try the other authentication method, but
perhaps my definition of "should" is different.  I don't mean "should"
as in "should be fixed to"; I mean "should" as "it does already." I
believe that the problem is in how PHP uses c-client. "

More questions:

"2) and 3) are the same and I don't see how it could be possible. No
other clients using c-client allow that either"

For an example of an IMAP client, which uses c-client, and yet can
attach to IMAP servers which advertise multiple authentication
mechanisms please see Alpine ( http://www.washington.edu/alpine/ )

Here is a psudeo-psudeo-code examples of how it could be possible.  I'm
not a strong c-coder so I leave the actual implementation to the
reader:

* Add another optional arugment to the end of imap_open(), for
example:

imap_open(existing,argument,...,[NEW_ARUGMENT])

where: NEW_ARGUMENT is one or more, comma separated, of the following:
GSSAPI, PLAIN, CRAM_MD5, etc (all the auth methods which c-client
supports).

Then, before a connection is attempted, the mail_parameters thing is
set (as appears in Crispin's e-mail from 4/4/2008):

mail_parameters (NIL,DISABLE_AUTHENTICATOR,(void *) "GSSAPI");

Again, I'm not a c-coder nor familiar with the code of imap_open, but
that's at least one way to go about it.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33500

-- 
Edit this bug report at http://bugs.php.net/?id=33500&edit=1

Reply via email to