websitedesignby / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Patch : DIGEST-MD5 support #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In order to connect to a server which didn't support PLAIN auth, I have
added DIGEST-MD5 support to XMPP.php.

Here are my proposal.

Original issue reported on code.google.com by clochix....@gmail.com on 17 Aug 2009 at 6:11

Attachments:

GoogleCodeExporter commented 9 years ago
I make patch file and change spaces to tabs

Original comment by ivan.bor...@gmail.com on 19 Nov 2009 at 2:00

Attachments:

GoogleCodeExporter commented 9 years ago
Applied, works for me 101%

Original comment by mark.tet...@gmail.com on 26 May 2012 at 3:08

GoogleCodeExporter commented 9 years ago
sorry
where to use DIGEST-MD5.patch file

can you tell me the all steps pls

Original comment by akhbaarn...@gmail.com on 3 Dec 2013 at 3:51

GoogleCodeExporter commented 9 years ago
pls tell me in details what should i do 

Original comment by akhbaarn...@gmail.com on 3 Dec 2013 at 4:06

GoogleCodeExporter commented 9 years ago
I also need to know how to apply this patch. Please let me know ASAP. Any help 
really appreciated.

Thanks

Original comment by nilay.d...@gmail.com on 4 Dec 2013 at 9:58

GoogleCodeExporter commented 9 years ago
As I see it, attached it the XMPP.php file, just replace it (first make a copy 
of the original of course). And test it.

Original comment by mark.tet...@smartconnect.eu on 9 Dec 2013 at 4:10

GoogleCodeExporter commented 9 years ago
please be noted that

i replaced the xmpp.php by the one that you uploaded but the problem still the 
same
Auth Fail..

Original comment by akhbaarn...@gmail.com on 10 Dec 2013 at 12:14

GoogleCodeExporter commented 9 years ago
i printed the error log as below

aa1386678144 [INFO]: Connecting to tcp://talk.google.com:5222 1386678144 
[VERBOSE]: Socket is ready; send it. 1386678144 [VERBOSE]: SENT: 1386678144 
[VERBOSE]: Successfully sent 114 bytes. 1386678144 [VERBOSE]: RECV: 
X-OAUTH2X-GOOGLE-TOKEN 1386678144 [DEBUG]: Calling features_handler 1386678144 
[VERBOSE]: Socket is ready; send it. 1386678144 [VERBOSE]: SENT: 1386678144 
[VERBOSE]: Successfully sent 73 bytes. 1386678144 [VERBOSE]: RECV: 1386678144 
[DEBUG]: Calling tls_proceed_handler 1386678144 [INFO]: Starting TLS encryption 
1386678144 [VERBOSE]: Socket is ready; send it. 1386678144 [VERBOSE]: SENT: 
1386678144 [VERBOSE]: Successfully sent 114 bytes. 1386678144 [VERBOSE]: RECV: 
1386678144 [VERBOSE]: RECV: X-OAUTH2X-GOOGLE-TOKENPLAIN 1386678144 [DEBUG]: 
Calling features_handler 1386678144 [INFO]: Attempting Auth... 1386678144 
[INFO]: Trying PLAIN (available : PLAIN) 1386678144 [VERBOSE]: Socket is ready; 
send it. 1386678144 [VERBOSE]: SENT: AHNoLnNvZnQyMDIwAG5ldG1hcmtldA== 
1386678144 [VERBOSE]: Successfully sent 104 bytes. 1386678144 [VERBOSE]: RECV: 
1386678144 [DEBUG]: Calling sasl_failure_handler 1386678144 [ERROR]: Auth 
failed! 1386678144 [VERBOSE]: Disconnecting... 1386678144 [VERBOSE]: Socket is 
ready; send it. 1386678144 [VERBOSE]: SENT: 1386678144 [VERBOSE]: Successfully 
sent 16 bytes. 1386678144 [VERBOSE]: RECV: 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 
stream_select() 1386678144 [VERBOSE]: Error on stream_select() 1386678144 
[VERBOSE]: Error on stream_select() 1386678144 [VERBOSE]: Error on 

Original comment by akhbaarn...@gmail.com on 10 Dec 2013 at 12:25

GoogleCodeExporter commented 9 years ago
any help from pls

Original comment by akhbaarn...@gmail.com on 10 Dec 2013 at 12:25

GoogleCodeExporter commented 9 years ago
aa1386678393 [INFO]: Connecting to tcp://talk.google.com:5222 1386678393 
[VERBOSE]: Socket is ready; send it. 1386678393 [VERBOSE]: SENT: 1386678393 
[VERBOSE]: Successfully sent 114 bytes. 1386678393 [VERBOSE]: RECV: 
X-OAUTH2X-GOOGLE-TOKEN 1386678393 [DEBUG]: Calling features_handler 1386678393 
[VERBOSE]: Socket is ready; send it. 1386678393 [VERBOSE]: SENT: 1386678393 
[VERBOSE]: Successfully sent 73 bytes. 1386678393 [VERBOSE]: RECV: 1386678393 
[DEBUG]: Calling tls_proceed_handler 1386678393 [INFO]: Starting TLS encryption 
1386678393 [VERBOSE]: Socket is ready; send it. 1386678393 [VERBOSE]: SENT: 
1386678393 [VERBOSE]: Successfully sent 114 bytes. 1386678393 [VERBOSE]: RECV: 
1386678393 [VERBOSE]: RECV: X-OAUTH2X-GOOGLE-TOKENPLAIN 1386678393 [DEBUG]: 
Calling features_handler 1386678393 [INFO]: Attempting Auth... 1386678393 
[INFO]: Trying PLAIN (available : PLAIN) 1386678393 [VERBOSE]: Socket is ready; 
send it. 1386678393 [VERBOSE]: SENT: 
AHNoLnNvZnQyMDIwQGdtYWlsLmNvbQBuZXRtYXJrZXQ= 1386678393 [VERBOSE]: Successfully 
sent 116 bytes. 1386678393 [VERBOSE]: RECV: 1386678393 [DEBUG]: Calling 
sasl_failure_handler 1386678393 [ERROR]: Auth failed! 1386678393 [VERBOSE]: 
Disconnecting... 1386678393 [VERBOSE]: Socket is ready; send it. 1386678393 
[VERBOSE]: SENT: 1386678393 [VERBOSE]: Successfully sent 16 bytes. 1386678393 
[VERBOSE]: RECV: 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 1386678393 [VERBOSE]: Error on 
stream_select() 1386678393 [VERBOSE]: Error on stream_select() 1386678393 
[VERBOSE]: Error on stream_select() 138667839

Original comment by akhbaarn...@gmail.com on 10 Dec 2013 at 12:27

GoogleCodeExporter commented 9 years ago
Congratulations on return from hibernation
Look at
https://github.com/Drarok/xmpphp/network
The most current version
https://github.com/vitotafuni/xmpphp

Original comment by ivan.bor...@gmail.com on 10 Dec 2013 at 12:35

GoogleCodeExporter commented 9 years ago
try use last version from github
and stop use google code ;)

also google support only X-GOOGLE-TOKEN or sasl PLAIN
try other server, and also try new version, it was fixed someware

sorry, it was 4 years ago

Original comment by ivan.bor...@gmail.com on 10 Dec 2013 at 12:44

GoogleCodeExporter commented 9 years ago
Still waiting for help on this. Is there any other script or code to do same?

Any help really appreciated.

Thanks

Original comment by nilay.d...@gmail.com on 18 Dec 2013 at 6:14