jdev - 2020-02-03


  1. bhaveshsgupta has left

  2. kikuchiyo has left

  3. bhaveshsgupta has joined

  4. bhaveshsgupta has left

  5. bhaveshsgupta has joined

  6. kikuchiyo has joined

  7. debacle has left

  8. kikuchiyo has left

  9. kikuchiyo has joined

  10. bhaveshsgupta has left

  11. bhaveshsgupta has joined

  12. bhaveshsgupta has left

  13. bhaveshsgupta has joined

  14. moparisthebest has left

  15. moparisthebest has joined

  16. bhaveshsgupta has left

  17. bhaveshsgupta has joined

  18. sonny has left

  19. sonny has joined

  20. bhaveshsgupta has left

  21. bhaveshsgupta has joined

  22. bhaveshsgupta has left

  23. bhaveshsgupta has joined

  24. bhaveshsgupta has left

  25. bhaveshsgupta has joined

  26. bhaveshsgupta has left

  27. bhaveshsgupta has joined

  28. bhaveshsgupta has left

  29. bhaveshsgupta has joined

  30. bhaveshsgupta has left

  31. bhaveshsgupta has joined

  32. asterix has joined

  33. bhaveshsgupta has left

  34. bhaveshsgupta has joined

  35. pulkomandy has left

  36. pulkomandy has joined

  37. bhaveshsgupta has left

  38. bhaveshsgupta has joined

  39. bhaveshsgupta has left

  40. bhaveshsgupta has joined

  41. bhaveshsgupta has left

  42. bhaveshsgupta has joined

  43. raj has joined

  44. raj

    hi i trying to connect my ejabberd localhost server from my xmpp client with smack lib but it will not connected other client applications (Ex : Simple xmpp client) are getting connected after enable the TLS my question is how to enable the TLS in my xmpp client app Please help to resolve the issue..

  45. asterix has left

  46. bhaveshsgupta has left

  47. asterix has joined

  48. bhaveshsgupta has joined

  49. asterix has left

  50. asterix has joined

  51. bhaveshsgupta has left

  52. asterix has left

  53. asterix has joined

  54. bhaveshsgupta has joined

  55. bhaveshsgupta has left

  56. bhaveshsgupta has joined

  57. asterix has left

  58. asterix has joined

  59. Marc has left

  60. bhaveshsgupta has left

  61. bhaveshsgupta has joined

  62. Marc has joined

  63. asterix has left

  64. asterix has joined

  65. bhaveshsgupta has left

  66. bhaveshsgupta has joined

  67. Extarv has left

  68. Extarv has joined

  69. pep.

    raj, it's not possible with normal CAs to get valid certificates for "localhost". You can either generate a self-signed certificate and place it in you store, or point a domain at your machine and generate a cert for that domain, or disable TLS

  70. raj

    may i want to know how to disable the TLS in my localhost ejabberd server Please help me ..

  71. raj

    thanks for your replay pep. may i want to know how to disable the TLS in my localhost ejabberd server Please help me ..

  72. bhaveshsgupta has left

  73. bhaveshsgupta has joined

  74. pep.

    I don't use ejabberd sorry, wait a bit for someone else to see this :)

  75. Kev

    I expect the ejabberd documentation will likely have this.

  76. jonas’

    or the client configuration

  77. bhaveshsgupta has left

  78. jonas’

    it’s probably easier to turn off TLS verification in the client than disabling TLS in the server and then convincing both the server and the client that doing PLAIN auth over non-TLS is a good idea

  79. Alex

    I am not that familiar with smack,but many other libs have callbacks for cert validation where you can accept also invalid certificates for development,or trust all untrusted certs by default

  80. Ge0rG

    raj: https://github.com/yaxim-org/yaxim/blob/master/src/org/yaxim/androidclient/service/SmackableImp.java#L260-L266

  81. Ge0rG

    Alex: just don't do *that*

  82. bhaveshsgupta has joined

  83. raj

    thanks to all this link is hole client server communication is correct?

  84. Alex

    Ge0rG: for dev purposes, of course not for production software

  85. bhaveshsgupta has left

  86. Ge0rG

    Alex: those are the famous last words

  87. Ge0rG

    I've seen one too many app in production with the AcceptAllTrustManager

  88. bhaveshsgupta has joined

  89. flow

    I would suggest to use TLS cert pinning instead of accepting all certificates for the reasons Ge0rG mentioned. For java (and smack) there is https://github.com/Flowdalic/java-pinning

  90. flow

    raj, in case you are using java client side ^

  91. Ge0rG

    as raj mentioned smack, I'd assume so

  92. bhaveshsgupta has left

  93. bhaveshsgupta has joined

  94. bhaveshsgupta has left

  95. pulkomandy has left

  96. pulkomandy has joined

  97. bhaveshsgupta has joined

  98. bhaveshsgupta has left

  99. pulkomandy has left

  100. bhaveshsgupta has joined

  101. pulkomandy has joined

  102. larma has left

  103. bhaveshsgupta has left

  104. bhaveshsgupta has joined

  105. bhaveshsgupta has left

  106. pulkomandy has left

  107. pulkomandy has joined

  108. bhaveshsgupta has joined

  109. ralphm

    Kev: the problem with (my modified) mod_block_strangers is that in MUCs you send presence to your occupant JID, but the MAM messages come from the room JID. AFAIK, I can not easily check if I have directed presence to the occupant JID when a MAM message comes in :-(

  110. ralphm

    Maybe MattJ or other Prosody devs have ideas.

  111. debacle has joined

  112. bhaveshsgupta has left

  113. bhaveshsgupta has joined

  114. Kev

    I think the implication is that if you uncloak to a resource, you accept stanzas from bare/full* for that JID.

  115. Kev

    Or were you saying that the internal API means you can't tell this?

  116. ralphm

    I was saying that I believe that's the case. But might be wrong.

  117. Kev

    Ah, ok.

  118. ralphm

    The initial check looks like this: ```if to_user and not has_directed_presence(stanza.attr.to, from_jid) and not is_contact_subscribed(to_user, or stanza.name == "iq" and (stanza.attr.type == "result" or stanza.attr.type == "error") then | to_host, from_jid)```

  119. ralphm

    oops

  120. ralphm

    that's two windows.

  121. ralphm

    ```if to_user and not has_directed_presence(stanza.attr.to, from_jid) and not is_contact_subscribed(to_user, to_host, from_jid) then```

  122. bhaveshsgupta has left

  123. bhaveshsgupta has joined

  124. pulkomandy has left

  125. kikuchiyo has left

  126. kikuchiyo has joined

  127. pulkomandy has joined

  128. bhaveshsgupta has left

  129. goffi has joined

  130. goffi has left

  131. goffi has joined

  132. Zash

    ralphm: You directed presence goes to the full JID but you wanna compare on bare jid because MUC MAM comes from that? https://modules.prosody.im/mod_track_muc_joins.html can help you keep track

  133. bhaveshsgupta has joined

  134. pulkomandy has left

  135. pulkomandy has joined

  136. bhaveshsgupta has left

  137. bhaveshsgupta has joined

  138. Marc has left

  139. Syndace has left

  140. Marc has joined

  141. Kev has left

  142. Syndace has joined

  143. bhaveshsgupta has left

  144. Marc has left

  145. Syndace has left

  146. Marc has joined

  147. Syndace has joined

  148. bhaveshsgupta has joined

  149. Marc has left

  150. Marc has joined

  151. bhaveshsgupta has left

  152. bhaveshsgupta has joined

  153. ralphm

    Zash: I tried this instead. Haven't tested it, yet, but what do you think? http://hg.ik.nu/ralphm/prosody-modules/rev/fe1476379d0a

  154. ralphm

    I think I basically compare all the directed presence on the bare JID instead of the potential full JID for MUCs. I noticed that there's a comment in mod_presence where directed presence is recorded: `FIXME does it make more sense to add to_bare rather than to?`.

  155. bhaveshsgupta has left

  156. Zash

    Change looks fine

  157. bhaveshsgupta has joined

  158. ralphm has left

  159. ralphm has joined

  160. bhaveshsgupta has left

  161. ralphm

    Seems to work. I used Snikket to send a message to my normal JID. Didn't pass. Then accepted the presence request, and the next message succeeded.

  162. ralphm

    Also got MAM history from the prosody channel.

  163. pulkomandy has left

  164. bhaveshsgupta has joined

  165. pulkomandy has joined

  166. bhaveshsgupta has left

  167. bhaveshsgupta has joined

  168. marc0s has left

  169. bhaveshsgupta has left

  170. Wojtek has joined

  171. bhaveshsgupta has joined

  172. bhaveshsgupta has left

  173. bhaveshsgupta has joined

  174. wurstsalat has left

  175. wurstsalat has joined

  176. bhaveshsgupta has left

  177. bhaveshsgupta has joined

  178. pulkomandy has left

  179. pulkomandy has joined

  180. asterix has left

  181. asterix has joined

  182. bhaveshsgupta has left

  183. bhaveshsgupta has joined

  184. bhaveshsgupta has left

  185. bhaveshsgupta has joined

  186. pulkomandy has left

  187. pulkomandy has joined

  188. pulkomandy has left

  189. pulkomandy has joined

  190. bhaveshsgupta has left

  191. bhaveshsgupta has joined

  192. bhaveshsgupta has left

  193. bhaveshsgupta has joined

  194. bhaveshsgupta has left

  195. Marc has left

  196. Marc has joined

  197. bhaveshsgupta has joined

  198. kikuchiyo has left

  199. raj has left

  200. kikuchiyo has joined

  201. bhaveshsgupta has left

  202. bhaveshsgupta has joined

  203. kikuchiyo has left

  204. bhaveshsgupta has left

  205. bhaveshsgupta has joined

  206. pulkomandy has left

  207. pulkomandy has joined

  208. bhaveshsgupta has left

  209. bhaveshsgupta has joined

  210. pulkomandy has left

  211. pulkomandy has joined

  212. asterix has left

  213. asterix has joined

  214. asterix has left

  215. asterix has joined

  216. kikuchiyo has joined

  217. pulkomandy has left

  218. pulkomandy has joined

  219. pulkomandy has left

  220. Syndace has left

  221. kikuchiyo has left

  222. pulkomandy has joined

  223. lovetox has joined

  224. Syndace has joined

  225. pulkomandy has left

  226. bhaveshsgupta has left

  227. bhaveshsgupta has joined

  228. kikuchiyo has joined

  229. bhaveshsgupta has left

  230. debacle has left

  231. kikuchiyo has left

  232. bhaveshsgupta has joined

  233. pulkomandy has joined

  234. wojtek has joined

  235. Extarv has left

  236. Extarv has joined

  237. marc0s has joined

  238. asterix has left

  239. asterix has joined

  240. kikuchiyo has joined

  241. bhaveshsgupta has left

  242. bhaveshsgupta has joined

  243. debacle has joined

  244. asterix has left

  245. asterix has joined

  246. pulkomandy has left

  247. pulkomandy has joined

  248. lovetox has left

  249. asterix has left

  250. asterix has joined

  251. kikuchiyo has left

  252. asterix has left

  253. asterix has joined

  254. asterix has left

  255. asterix has joined

  256. bhaveshsgupta has left

  257. bhaveshsgupta has joined

  258. Extarv has left

  259. pulkomandy has left

  260. pulkomandy has joined

  261. bhaveshsgupta has left

  262. Extarv has joined

  263. asterix has left

  264. asterix has joined

  265. bhaveshsgupta has joined

  266. kikuchiyo has joined

  267. asterix has left

  268. asterix has joined

  269. lovetox has joined

  270. pulkomandy has left

  271. pulkomandy has joined

  272. asterix has left

  273. asterix has joined

  274. asterix has left

  275. asterix has joined

  276. lovetox has left

  277. pulkomandy has left

  278. lovetox has joined

  279. pulkomandy has joined

  280. asterix has left

  281. asterix has joined

  282. lovetox has left

  283. lovetox has joined

  284. wojtek has left

  285. asterix has left

  286. asterix has joined

  287. lovetox has left

  288. bhaveshsgupta has left

  289. bhaveshsgupta has joined

  290. asterix has left

  291. asterix has joined

  292. lovetox has joined

  293. lovetox has left

  294. Marc has left

  295. Marc has joined

  296. asterix has left

  297. marc0s has left

  298. marc0s has joined

  299. asterix has joined

  300. bhaveshsgupta has left

  301. bhaveshsgupta has joined

  302. pulkomandy has left

  303. pulkomandy has joined

  304. bhaveshsgupta has left

  305. strar has left

  306. bhaveshsgupta has joined

  307. strar has joined

  308. pulkomandy has left

  309. pulkomandy has joined

  310. strar has left

  311. strar has joined

  312. larma has joined

  313. goffi has left

  314. asterix has left

  315. kikuchiyo has left

  316. kikuchiyo has joined

  317. wurstsalat has left

  318. bhaveshsgupta has left

  319. kikuchiyo has left

  320. bhaveshsgupta has joined

  321. pulkomandy has left

  322. bhaveshsgupta has left

  323. pulkomandy has joined

  324. Wojtek has left

  325. bhaveshsgupta has joined

  326. bhaveshsgupta has left

  327. bhaveshsgupta has joined

  328. Wojtek has joined

  329. Wojtek has left