Re: [Synalist] TLDAPSend.Add create a new user in AD

2021-09-24 Thread Luca Olivetti
El 24/9/21 a les 22:33, Dalacu Marius via synalist-public ha escrit: Thank you for replying :-) I have read and the only attributes required are *cn *and *sAMAccountName* https://docs.microsoft.com/en-us/windows/win32/ad/creating-a-user

Re: [Synalist] TLDAPSend.Add create a new user in AD

2021-09-24 Thread Luca Olivetti
El 24/9/21 a les 14:04, Dalacu Marius via synalist-public ha escrit: Hi. The problem is that i don't know how to use TLDAPSend.Add function. I don't know what i have to put in the parameters. Public |function *Add*(obj: AnsiString; const Value: TLD

Re: [Synalist] Ldapsend and binary attributes

2020-02-25 Thread Luca Olivetti
El 24/2/20 a les 17:48, Luca Olivetti ha escrit: Hello, I'm trying to get/set the thumbnail attribute from active directory (actually samba 4), which is a binary attribute. I'm at the "get" stage now and I couldn't get a correct picture unless I apply the workaround

[Synalist] Ldapsend and binary attributes

2020-02-24 Thread Luca Olivetti
Hello, I'm trying to get/set the thumbnail attribute from active directory (actually samba 4), which is a binary attribute. I'm at the "get" stage now and I couldn't get a correct picture unless I apply the workaround in the last message here: https://sourceforge.net/p/synalist/mailman/messag

Re: [Synalist] function waitingdata/waitingdataex

2019-09-27 Thread Luca Olivetti
El 27/9/19 a les 9:05, S.C.T.N Gmbh ha escrit: If I am not wrong RecvPacket(0) waits forever? No, -1 waits forever, 0 doesn't wait at all. Bye -- Luca ___ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge

Re: [Synalist] function waitingdata/waitingdataex

2019-09-26 Thread Luca Olivetti
El 26/9/19 a les 19:14, S.C.T.N Gmbh ha escrit: Thank you for your answer. WaitingData(Ex) is for me a very important function as it is also used in TUDPBlockSocket. I have for example, 40 hosts that send UDP datagrams of constant length (10byte) asynchronosly to my application. In a repeat..unti

Re: [Synalist] Synapse LdapSend and Unicode-Delphi

2015-05-11 Thread Luca Olivetti
El 11/05/15 a les 15:03, Jarto Tarpio ha escrit: > > Maybe the biggest question is the one breaking backwards compatibility: > Changing a Unicode pwd. With current synapse code one has to make sure > to encode the string already as pure Unicode and add the quotes. > However, synapse itself remove

Re: [Synalist] SendStream not working

2014-09-24 Thread Luca Olivetti
El 24/09/14 12:45, Lukas Gebauer ha escrit: >> I started use Synapse few days ago. I´m trying to use the function >> SendStream(TTCPBlockSocket), but it seems that doesn´t work properly. >> I can send all bytes but the receiver side get the stream (or a file) >> corrupted. > > What you mean by 'c

Re: [Synalist] Synaser and /dev/ttyACM

2014-07-08 Thread Luca Olivetti
El 07/07/14 08:40, Denis ha escrit: > Hi everybody > > Up till now we always worked with FTDI and Prolific cables and the data > that's > been sent by our device can be received correctly. > Now we started using a new FPGA that has an Exar USB serial convertor on > board. > http://www.exar.com/

Re: [Synalist] Bridge between socket

2013-02-05 Thread Luca Olivetti
Al 04/02/13 12:32, En/na Denis Gottardello ha escrit: > I have an emergency. I need a software that can create two or more tcp server > sockets and create a bridge between these sockets (for Windows). Can you help > me? > You could try with socat Bye -- Luca -

Re: [Synalist] RE : RE : RE : tcp keepalive under windows, strange problem.

2011-05-26 Thread Luca Olivetti
Al 26/05/2011 10:33, En/na Luca Olivetti ha escrit: >> That's probably it, thank you! >> I spawned a console (cmd) from the application, and I kept it open when >> the application terminated. >> (though I tried to do the same on my pc with a simple application and I

Re: [Synalist] RE : RE : RE : tcp keepalive under windows, strange problem.

2011-05-26 Thread Luca Olivetti
Al 26/05/2011 10:16, En/na Luca Olivetti ha escrit: > Al 26/05/2011 9:27, En/na Ludo Brands ha escrit: > > >> Regarding the virus, take a look at this: >> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5069989 . The short >> version: if an application spawns a

Re: [Synalist] RE : RE : RE : tcp keepalive under windows, strange problem.

2011-05-26 Thread Luca Olivetti
Al 26/05/2011 9:27, En/na Ludo Brands ha escrit: > Regarding the virus, take a look at this: > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5069989 . The short > version: if an application spawns another process, the process inherits also > the socket handle. The socket isn't closed until b

Re: [Synalist] RE : RE : tcp keepalive under windows, strange problem.

2011-05-25 Thread Luca Olivetti
Al 25/05/11 21:42, En/na Ludo Brands ha escrit: > SO_LINGER has some side effects in closing a socket. From > http://msdn.microsoft.com/en-us/library/ms737582%28v=vs.85%29.aspx: If the > l_onoff member of the LINGER structure is zero (the default for a socket), > closesocket returns immediately and

Re: [Synalist] RE : tcp keepalive under windows, strange problem.

2011-05-25 Thread Luca Olivetti
Al 25/05/11 18:33, En/na Ludo Brands ha escrit: > Stupid question: Not stupid, maybe it's the cause of the problem > do you close the socket before quiting the application? > Shutdown followed by CloseSocket? Or just CloseSocket? > What SO_LINGER option is used? I call a TTCpBlockSocket.AbortSo

Re: [Synalist] RE : tcp keepalive under windows, strange problem.

2011-05-25 Thread Luca Olivetti
Al 25/05/11 20:43, En/na Luca Olivetti ha escrit: > Al 25/05/11 18:33, En/na Ludo Brands ha escrit: >> Stupid question: > > Not stupid, maybe it's the cause of the problem > >> do you close the socket before quiting the application? >> Shutdown followed

[Synalist] tcp keepalive under windows, strange problem.

2011-05-25 Thread Luca Olivetti
I used this snipped of code to enable tcp keepalives under windows (xp, 32 bits): (FChannel is a TTCPBlockSocket): FChannel.Connect(FAddress,Fort); if FChannel.LastError=0 then begin DoLog(LogInfo,'connected'); FConnected:=true; keepalive.onoff:=1;

Re: [Synalist] Timeout for Connect

2010-10-21 Thread Luca Olivetti
En/na Alexander Bauer ha escrit: > Hi Luca, > > thanks for the hint! > I never tested again without the modification ;-) Yes, but anyway your method (connect in non blocking mode) is better (it should be more portable). Bye -- Luca -

Re: [Synalist] Timeout for Connect

2010-10-20 Thread Luca Olivetti
Al 20/10/10 20:06, En/na Alexander Bauer ha escrit: > Hi all, > > Am 20.10.2010 19:33, schrieb Luca Olivetti: > >> 4. I am not sure, if nonblock mode is supported on various operating > >> systems. (Synapse runs on many system other then Win and Linux...) > &g

Re: [Synalist] Timeout for Connect

2010-10-20 Thread Luca Olivetti
Al 20/10/10 18:28, En/na Lukas Gebauer ha escrit: >> Sorry to revive this old thread, but this code isn't in trunk yet. Is >> there a reason or was it simply forgotten? > > 1. It is forgotten. :-/ Don't worry, I could live without this feature working, but it's nice to have > 2. It does not pre

Re: [Synalist] Timeout for Connect

2010-10-20 Thread Luca Olivetti
En/na Alexander Bauer ha escrit: > Hi, > > i modified TBlockSocket.Connect as follows. Works for me since about 5 > years without any problem (Windows with Delphi and Linux with FPC). > I added FConnectionTimeout as new property for TBlockSocket. > > Alex > > //-

Re: [Synalist] Patch to compile under Mac OS X

2010-06-06 Thread Luca Olivetti
Al 06/06/10 09:03, En/na Felipe Monteiro de Carvalho ha escrit: > On Fri, Jun 4, 2010 at 7:20 PM, Luca Olivetti wrote: >> I don't think the package should require the LCL (I made myself a >> similar package without the LCL requirement and up until now it has >> worked f

Re: [Synalist] Patch to compile under Mac OS X

2010-06-04 Thread Luca Olivetti
Al 03/06/10 12:45, En/na Felipe Monteiro de Carvalho ha escrit: > Hello, > > This patch allows synapse to compile under Mac OS X. The two attached > files add a Lazarus Package which is very useful for using Synapse > with Lazarus. I don't think the package should require the LCL (I made myself a

Re: [Synalist] Subject : TCPBlocksock on Ubuntu 9.10/Lazarus Freepascal

2009-11-29 Thread Luca Olivetti
En/na Robin Cumming ha escrit: > I have set up Lazarus Freepascal on Ubuntu 9.10 and > compiled the EchoSrv demo in Synapse39. The program is > aborting and exiting when the Echo Daemon is created as > follows : > > Constructor TTCPEchoDaemon.Create; > begin > inherited create(false); -

Re: [Synalist] Timeout for Connect

2009-10-26 Thread Luca Olivetti
En/na Lukas Gebauer ha escrit: >>> synapse has no timeout value for the connect and the normal timeout >>> value has no effect during the connection process. >> I use SetTimeout and it works during connect. I'm pretty sure since I >> use it in every program I write. > > I try it now, and it does n

Re: [Synalist] Timeout for Connect

2009-10-24 Thread Luca Olivetti
En/na Alexander Bauer ha escrit: > Hi Luca, > > synapse has no timeout value for the connect and the normal timeout > value has no effect during the connection process. I use SetTimeout and it works during connect. I'm pretty sure since I use it in every program I write. Bye -- Luca -

Re: [Synalist] Timeout for Connect

2009-10-24 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: > En/na Max Terentiev ha escrit: >> Hi, >> >> SetTimeout will do it for send and receive but not >> for Connect ! > > Well, I use it for connect and it works both under windows and under linux. Oh, under linux there was a bug but

Re: [Synalist] Timeout for Connect

2009-10-24 Thread Luca Olivetti
En/na Max Terentiev ha escrit: > Hi, > > SetTimeout will do it for send and receive but not > for Connect ! Well, I use it for connect and it works both under windows and under linux. Bye -- Luca -- Come build with us!

Re: [Synalist] Timeout for Connect

2009-10-23 Thread Luca Olivetti
En/na Max Terentiev ha escrit: > Hi, > > Because synapse uses blocking socket it's not possible > to set timeout for Connect call. It's very bad in some cases... Yes it is. Use SetTimeout. Bye -- Luca -- Come build wi

Re: [Synalist] login to web page

2009-10-12 Thread Luca Olivetti
En/na Rodolfo Rughi ha escrit: > Depending to this message I must lgin as an user or another. Do you mean that the *same* router at the *same* address will require *different* username/password? If it is so, you'll have to first connect, interpret the "WWW-Authenticate" header in the reply, the

Re: [Synalist] login to web page

2009-10-12 Thread Luca Olivetti
En/na Petr Fejfar ha escrit: > > No offence, pf None taken Bye -- Luca -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your d

Re: [Synalist] login to web page

2009-10-12 Thread Luca Olivetti
En/na Petr Fejfar ha escrit: > Yes, if basic authentication according RFC 2617 si required, it does. > (What if you'd try it and/or look into THTTPSend.HTTMMethod() source > code first? I did, 6 minutes after I sent the first reply and 1 and a half hour before your last message. Bye -- Luca

Re: [Synalist] login to web page

2009-10-12 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: > En/na Petr Fejfar ha escrit: >> Dne Mon, 12 Oct 2009 11:27:14 +0200 Rodolfo Rughi - Mondoesa Umbria >> srl napsal/-a: >> >>> How can I (using the synapse httpcli): >>> - receive the prompt when I opne this page ? >&

Re: [Synalist] login to web page

2009-10-12 Thread Luca Olivetti
En/na Petr Fejfar ha escrit: > Dne Mon, 12 Oct 2009 11:27:14 +0200 Rodolfo Rughi - Mondoesa Umbria srl > napsal/-a: > >> How can I (using the synapse httpcli): >> - receive the prompt when I opne this page ? >> - open this page and send authentication login ? > > Passing username & password as

Re: [Synalist] Help with simple UDP app

2009-08-25 Thread Luca Olivetti
En/na PC Pete ha escrit: > > What I can’t seem to get working is the Synapse UDP send/receive. I can > send packets without errors, and the module appears to receive them (the > activity LED flashes and it only flashes when I actually send these > packets), but I never, ever, receive anything

Re: [Synalist] synapse Linux problem

2009-08-23 Thread Luca Olivetti
En/na Dmitry Konnov ha escrit: > Luca, > > thank you very much for server code, > could you show simple echo client to test this server. Open a command line and just issue a telnet to localhost 7070, each time you type a complete line (with enter) it will be echoed back: $ telnet localhost 707

Re: [Synalist] synapse Linux problem

2009-08-23 Thread Luca Olivetti
En/na Dmitry Konnov ha escrit: > Dear Luca, > > since i add "cthreads" to the "uses" clause of my project (.lpr). > i get: > > Project raised exception class 'RunError(211)' > > I also have made sure > Project->>Compiler options->Other to put a "-dUseCThreads" in "Custom > options") No such er

Re: [Synalist] synapse Linux problem

2009-08-22 Thread Luca Olivetti
En/na Dmitry Konnov ha escrit: > Hello, > > I have just compiled EchoServ from demo on Lazarus,Fedora. > When TCPEchoDaemon.Create i get > > Project raised exception class 'RunError(232)' > ^^ > > and application crashes. There is no above problem on

Re: [Synalist] [PATCH] send/receive timeouts not working under Linux

2009-06-08 Thread Luca Olivetti
En/na Lukas Gebauer ha escrit: >> Linux supports SO_SNDTIMEO and SO_RCVTIMEO but the parameter should be >> a struct timeval and not an integer like under windows. The attached >> patch fixes it, it should also work on other unix/bsd variants, but I >> only tested it under Linux. > > I modified yo

[Synalist] [PATCH] send/receive timeouts not working under Linux

2009-06-01 Thread Luca Olivetti
Hello, Linux supports SO_SNDTIMEO and SO_RCVTIMEO but the parameter should be a struct timeval and not an integer like under windows. The attached patch fixes it, it should also work on other unix/bsd variants, but I only tested it under Linux. Bye -- Luca --- blcksock.pas.orig 2009-06-01 1