| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
11 hours ago
» Replies: 4
» Views: 605
|
VCL conversion
Forum: Delphi General Discussion
Last Post: tobenschain
06-20-2026, 05:00 AM
» Replies: 0
» Views: 54
|
TIWjQDBGrid changing UI
Forum: IntraWeb General Discussion
Last Post: BoostedCruiser
06-08-2026, 02:02 AM
» Replies: 36
» Views: 70,267
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: Fabrizio Conti
06-04-2026, 09:14 AM
» Replies: 3
» Views: 462
|
Access Violation When Val...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
06-03-2026, 08:47 AM
» Replies: 2
» Views: 513
|
Bootstrap5
Forum: IntraWeb General Discussion
Last Post: geraldtatum
06-02-2026, 06:24 AM
» Replies: 1
» Views: 409
|
weakpackageunit contains ...
Forum: IntraWeb General Discussion
Last Post: rlebeau
05-26-2026, 04:56 PM
» Replies: 4
» Views: 517
|
Custom 404 handler
Forum: IntraWeb General Discussion
Last Post: CfawesDwale
05-21-2026, 08:02 AM
» Replies: 0
» Views: 246
|
PopUp Menu
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
05-13-2026, 04:35 AM
» Replies: 4
» Views: 8,199
|
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
05-13-2026, 03:32 AM
» Replies: 3
» Views: 4,116
|
|
|
| Send data from Delphi to web client |
|
Posted by: radub - 04-19-2018, 03:41 PM - Forum: IntraWeb General Discussion
- Replies (7)
|
 |
Hello,
We have IW 14.2 along with XE5.
Our html contains DataTables plugin.
Tu supply data to DataTables we're trying to use a Delphi function but we don't know how to make the function to return this data to the DataTables js function.
We cannot find a way to register either a callback real function (not a procedure), or to pass out/var parameter(s) from the procedure.
Any help, example, demo will be much appreciated!
Thank you
|
|
|
idSMTP SASL fails under Android..? |
|
Posted by: BartKindt - 04-18-2018, 02:44 PM - Forum: Indy
- Replies (2)
|
 |
This post is a copy of the one I just posted on the Embarcadero forum.
Just want to see how it works here.
----
I am stumped by this.
I have my Windows client using IdSMTP to connect to my Linux EXIM4 server.
This always works perfectly.
I copied the entire unit over to my new Android App, that is, I copied the .pas file, and I made a new FMX Form for it on which I copied the exact same selection of SMTP, SSL and SASL etc. components.
I have set these up on the Form in exactly the same way.
Added the same 3 SASL Mechanisms in the IdSMTP and in the same order.
As far as I can see it is all exactly the same.
{code}
SMTP: TIdSMTP;
IdSSLIOHandlerSocketOpenSSL1: TIdSSLIOHandlerSocketOpenSSL;
IdUserPassProvider1: TIdUserPassProvider;
IdSASLPlain1: TIdSASLPlain;
IdSASLSKey1: TIdSASLSKey;
IdSASLCRAMMD51: TIdSASLCRAMMD5;
IdSASLCRAMSHA11: TIdSASLCRAMSHA1;
IdSASLLogin1: TIdSASLLogin;
procedure:
(Note this works perfectly under Windows)
if UsePLAINSASL then
begin
if Superuser then LocalLog('UsePLAINSASL: Logging in with Username='+AUsername);
SMTP.Username := AUsername;
SMTP.Password := APassword;
IdUserPassProvider1.Username := AUsername;
IdUserPassProvider1.Password := APassword;
IdSASLPlain1.LoginAs := AUsername;
SMTP.AuthType := satSASL;
SMTP.UseEhlo := true;
IdSSLIOHandlerSocketOpenSSL1.Port := APort;
IdSSLIOHandlerSocketOpenSSL1.Host := AHost;
IdSSLIOHandlerSocketOpenSSL1.ReadTimeout := 10000;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Mode := sslmClient;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvTLSv1;
IdSSLIOHandlerSocketOpenSSL1.SSLOptions.SSLVersions := [sslvTLSv1];
SMTP.UseTLS := utUseExplicitTLS; // utNoTLSSupport; //
SMTP.ValidateAuthLoginCapability := true;
end else
{code}
But the Android system fails with a: "Doesn't support AUTH or the specified SASL handlers!!"
I use the Android-type OpenSSL libraries, which are loaded correctly (and which are also used by the an IdTCPClient when connecting to an IdTCPServer)
When I look at the debug output of the EXIM Server, it seems to me that the SASL authentication HAS in fact finished, because the Server is already in TLS mode and is waiting for its first TLS packet. Which it never gets.
The Server shows this:
{code}
17925 Listening...
17925 Connection request from 62.140.132.204 port 18027
17927 SMTP>> 220 apollo.bart.gen.nz ESMTP Exim 4.80 Wed, 18 Apr 2018 13:24:42 +0200
17927 Process 17927 is ready for new message
17927 smtp_setup_msg entered
17927 SMTP<< EHLO localhost
17927 localhost in helo_lookup_domains? no (end of list)
17927 sender_fullhost = (localhost) [62.140.132.204]
17927 sender_rcvhost = [62.140.132.204] (helo=localhost)
17927 set_process_info: 17927 handling incoming connection from (localhost) [62.140.132.204]
17927 host in pipelining_advertise_hosts? yes (matched "*")
17927 host in auth_advertise_hosts? yes (matched "*")
17927 host in tls_advertise_hosts? yes (matched "*")
17927 SMTP>> 250-apollo.bart.gen.nz Hello localhost [62.140.132.204]
17927 250-SIZE 52428800
17927 250-8BITMIME
17927 250-PIPELINING
17927 250-AUTH PLAIN
17927 250-STARTTLS
17927 250 HELP
17927 SMTP<< STARTTLS <<<<<<<<<<<<<<<<<
17927 initialising GnuTLS as a server
17927 GnuTLS global init required.
17927 initialising GnuTLS server session
17927 Expanding various TLS configuration options for session credentials.
17927 certificate file = /etc/exim4/exim.crt
17927 key file = /etc/exim4/exim.key
17927 TLS: cert/key registered
17927 verify certificates = /etc/ssl/certs/ca-certificates.crt size=272519
17927 Added 172 certificate authorities.
17927 Initialising GnuTLS server params.
17927 Loading default hard-coded DH params
17927 Loaded fixed standard D-H parameters
17927 GnuTLS using default session cipher/priority "NORMAL"
17927 host in tls_verify_hosts? no (option unset)
17927 host in tls_try_verify_hosts? no (option unset)
17927 TLS: a client certificate will not be requested. <<<<<<<<<<<<<<<<<<<<<
17927 SMTP>> 220 TLS go ahead <<<<<<<<<<<<<<<<<<<<<
17927 Received TLS SNI "sartrack.nl" (unused for certificate selection)
17927 gnutls_handshake was successful <<<<<<<<<<<<<<<<<<<<
17927 TLS: no certificate from peer ((nil) & 0)
17927 cipher: TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256
17927 Have channel bindings cached for possible auth usage.
17927 sender_fullhost = [62.140.132.204]
17927 sender_rcvhost = [62.140.132.204]
17927 set_process_info: 17927 handling incoming TLS connection from [62.140.132.204]
17927 TLS active <<<<<<<<<<<<<<<<<<<<<<<<<
17927 Calling gnutls_record_recv(0x7f323331eae0, 0x7f32336060a0, 4096) <<<<<<<<<<<<<<< Its waiting here.
17927 SMTP<< EHLO localhost <<<<<<<<<<<<<<<<<<<<<< It seems the Client is trying again???
17927 localhost in helo_lookup_domains? no (end of list)
17927 sender_fullhost = (localhost) [62.140.132.204]
17927 sender_rcvhost = [62.140.132.204] (helo=localhost)
17927 set_process_info: 17927 handling TLS incoming connection from (localhost) [62.140.132.204]
17927 host in pipelining_advertise_hosts? yes (matched "*")
17927 host in auth_advertise_hosts? yes (matched "*")
17927 tls_do_write(0x7f32333012b8, 132)
17927 gnutls_record_send(SSL, 0x7f32333012b8, 132)
17927 outbytes=132
17927 SMTP>> 250-apollo.bart.gen.nz Hello localhost [62.140.132.204]
17927 250-SIZE 52428800
17927 250-8BITMIME
17927 250-PIPELINING
17927 250-AUTH PLAIN
17927 250 HELP
17927 Calling gnutls_record_recv(0x7f323331eae0, 0x7f32336060a0, 4096) <<<<<<<<<<<< Waiting again. It stops here.
{code}
---
Bart Kindt
CEO & Developer
SARTrack Limited New Zealand
http://www.sartrack.nz
|
|
|
| Getting a list of active sessions |
|
Posted by: mhammady - 04-15-2018, 11:04 PM - Forum: IntraWeb General Discussion
- Replies (4)
|
 |
Hello
Is is possible to get a list of active sessions?
The reason for my question is that i found that there are orphaned files related to expired sessions that was not deleted, and i want to create a periodic clean-up process to delete files not related to active sessions.
PS: My files are stored in application directory with the session ID name.
Mohamed
|
|
|
| Handling of Exceptions |
|
Posted by: Quajak - 04-14-2018, 08:09 AM - Forum: COSMOS
- Replies (1)
|
 |
Hello,
Right now when an Exception is thrown the OS instantly closes (if it is not in a try catch block). This makes it difficult figuring out where the error is coming from. Is it possible to somehow show the error before closing (in the console like in a normal console application or in the debug output)?
|
|
|
| TIWAutherList, TIWAutherINI, TIWAutherEvent |
|
Posted by: Mikey29 - 04-13-2018, 10:39 AM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hello Everybody !
I'm new on Intraweb, and I try to build my first application.
I'm on Delphi Tokyo entreprise, and I've upgraded my bundle version with the last one of Intraweb...
I try to use TIWAutherINI but I don't succeded to get it run... Nothing happens..
I've placed the component on the ServerController, Placed the property AuthBeforeNewSession to true, and link the Auther property to my component...
I've also placed a ini file named #Auth.ini in the same directory of my application...
The ini file is build like this :
[USER1]
PASSWORD=USER1PSWD
[USER2]
PASSWORD=USER2PSWD
....
I run my application, but nothing happens for authentification...
Where I could find documentation or sample to use those components , please ?
With Best Regards,
Mikey
|
|
|
| More security Questions |
|
Posted by: joel - 04-11-2018, 12:16 PM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
I have a few more questions that I need to look at for soc2.
1. What type of session haijacking/cloning detection does IW have?
How do the servercontroller->securityoptions work?
CheckFormId
CheckSameIP
CheckSameUA
And what does the program do if you uncheck ShowSecurityErrorDetails?
Do these errors get logged somewhere?
|
|
|
| iw 14.2.7 sessions dont release |
|
Posted by: hsbelli - 04-10-2018, 10:04 PM - Forum: IntraWeb General Discussion
- Replies (6)
|
 |
hi, i use iw 14.2.7 and have a problems with sessions. for any reasson hang up my app and try from the button of server SA "Reset Sessions". but when try open the browser again and run my app in the server SA appear the sessions connections where i suppose reset with the button "Reset Sessions".
any solution please?
regards
hernan
|
|
|
|