From olivier.waterloos at aginsurance.be Tue Oct 1 06:41:56 2019 From: olivier.waterloos at aginsurance.be (olivier.waterloos at aginsurance.be) Date: Tue, 1 Oct 2019 10:41:56 +0000 Subject: [python-ldap] fatal error C1083: Cannot open include fil In-Reply-To: References: <2dbea5db79df45df9bb6356396d56c38@aginsurance.be> Message-ID: Hello Petr, Thank you for your support. Indeed it's very problematic on Windows. But I have found a solution: we using pyAD. https://zakird.github.io/pyad/ Kind regards Olivier Waterloos I&O Collaboration & Applic. Engineering +32 2 664 03 70 +32 473 98 03 82 Visit our website on www.aginsurance.be > -----Original Message----- > From: Petr Viktorin > Sent: lundi 30 septembre 2019 14:31 > To: Waterloos Olivier ; python- > ldap at python.org > Subject: Re: [python-ldap] fatal error C1083: Cannot open include fil > > On 2019-09-30 13:05, olivier.waterloos at aginsurance.be wrote: > > Hello, > > > > I have an issue to install the package python-ldap: > > > > C:\Users\\AppData\Local\Temp\easy_install-imrjml50\python-ldap- > 3.2.0\Modules\constants.h(7): > > fatal error C1083: Cannot open include fil > > > > e: 'lber.h': No such file or directory > > > > error: Setup script exited with error: command 'C:\\Program Files > > (x86)\\Microsoft Visual > > Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28 > > > > 105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 > > > > On the internet I found the whl from the site > > https://urldefense.proofpoint.com/v2/url?u=https- > 3A__www.lfd.uci.edu_- > > 7Egohlke_pythonlibs_-23python-2Dldap&d=DwID-g&c=umdN7- > UKVWbf7Ie0PtI_qgdqHn0WRecdD9KiIHWQsvs&r=whQib1IfrP25QrJ7fZbIkHE > 4WaqTmR1T8CxmhmPrM0Q&m=NbWP-kpIFV2Xxm0- > SHq9oVHSeCiaTcMDm1dTJRLDez4&s=LAfWXnYpoR7n1aK5R4mfCMCD8IFkux > q6yVQivQtJhMM&e= , but the module stays unrecognized. > > > > I have download python-ldap-3.2.0.tar.gz and it gives the same error. > > > > Do you have another solution? > > > > I'm on Windows 2016 Standard 64bits with Python 3.7. > > > > Thanks > > > > > Hello! > > The instructions for Windows are available here: > https://urldefense.proofpoint.com/v2/url?u=http-3A__python- > 2Dldap.org_en_python-2Dldap-2D3.2.0_installing.html-23installing-2Dfrom- > 2Dpypi&d=DwID-g&c=umdN7- > UKVWbf7Ie0PtI_qgdqHn0WRecdD9KiIHWQsvs&r=whQib1IfrP25QrJ7fZbIkHE > 4WaqTmR1T8CxmhmPrM0Q&m=NbWP-kpIFV2Xxm0- > SHq9oVHSeCiaTcMDm1dTJRLDez4&s=uIVObdi- > oMUtVot3PEa1IcFf0hxoQO6I5GjWaNecB6U&e= > Note that you need the build prerequisites. That's what you are missing; > 'lber.h' is part of OpenLDAP. > > > If you can figure out a better way to build on Windows, please share. > Unfortunately, I haven't seen many people on this list contribute Windows > knowledge. I don't use Windows myself. Deze e-mail, met inbegrip van elk bijgevoegd document, is vertrouwelijk. Indien u niet de geadresseerde bent, is het openbaar maken, kopi?ren of gebruik maken ervan verboden. Indien u dit bericht verkeerdelijk hebt ontvangen, gelieve het te vernietigen en de afzender onmiddellijk te verwittigen. De veiligheid en juistheid van email-berichten kunnen niet gewaarborgd worden, aangezien de informatie kan onderschept of gesaboteerd worden, verloren gaan of virussen kan bevatten. De afzender wijst bijgevolg elke aansprakelijkheid af in dergelijke gevallen. Indien een controle zich opdringt, gelieve een papieren kopie te vragen. Ce message ?lectronique, y compris tout document joint, est confidentiel. Si vous n'?tes pas le destinataire de ce message, toute divulgation, copie ou utilisation en est interdite. Si vous avez re?u ce message par erreur, veuillez le d?truire et en informer imm?diatement l'exp?diteur. La s?curit? et l'exactitude des transmissions de messages ?lectroniques ne peuvent ?tre garanties ?tant donn? que les informations peuvent ?tre intercept?es, alt?r?es, perdues ou infect?es par des virus; l'exp?diteur d?cline d?s lors toute responsabilit? en pareils cas. Si une v?rification s'impose, veuillez demander une copie papier. This email and any attached files are confidential and may be legally privileged. If you are not the addressee, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify the sender immediately and then delete this email. Email transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. If verification is required please request a hard copy version. From ondrej.kolin at gmail.com Tue Nov 12 02:53:00 2019 From: ondrej.kolin at gmail.com (ondrej.kolin at gmail.com) Date: Tue, 12 Nov 2019 08:53:00 +0100 Subject: [python-ldap] Proper timeout handling Message-ID: Hi guys, How should I properly use timeout in basic operations like .get_naming_context? Imagine this code: l = ldap.initialize('ldap://test.xyz.com') l.get_naming_context() But this times out on some internal TCP connection timeout, which is pretty long, can I use a shorter one? How? Regards, Ondrej From rudolf.honegger at siemens.com Wed Nov 13 07:02:03 2019 From: rudolf.honegger at siemens.com (Honegger, Ruedi) Date: Wed, 13 Nov 2019 12:02:03 +0000 Subject: [python-ldap] LDAPS Message-ID: Hi all, Does the library python-ldap also support LDAPS? With best regards, Rudolf Honegger Siemens Schweiz AG, Smart Infrastructure, Global Headquarters Building Products Research & Development Common Controller Platform SI BP R&D ZG FW CCP Zaehlerweg 7 6300 Zug, Switzerland Mobile: +41 79 4799231 mailto:rudolf.honegger at siemens.com www.siemens.com/ingenuityforlife [www.siemens.com/ingenuityforlife] Important notice: This e-mail and any attachment thereof contain corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 3536 bytes Desc: image001.gif URL: From william at blackhats.net.au Wed Nov 13 07:35:50 2019 From: william at blackhats.net.au (William Brown) Date: Wed, 13 Nov 2019 22:35:50 +1000 Subject: [python-ldap] LDAPS In-Reply-To: References: Message-ID: Yes it does support ldaps! It accepts the same ca options as start tls. Ldaps also protects from some security issues that start tls does not so it?s highly recommended to use it. If you need any more help please let us know. William > On 13 Nov 2019, at 22:05, Honegger, Ruedi wrote: > > ? > Hi all, > > Does the library python-ldap also support LDAPS? > With best regards, > Rudolf Honegger > > Siemens Schweiz AG, Smart Infrastructure, Global Headquarters > Building Products > Research & Development > Common Controller Platform > SI BP R&D ZG FW CCP > Zaehlerweg 7 > 6300 Zug, Switzerland > Mobile: +41 79 4799231 > mailto:rudolf.honegger at siemens.com > www.siemens.com/ingenuityforlife > > > > Important notice: This e-mail and any attachment thereof contain corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank you. > _______________________________________________ > python-ldap mailing list > python-ldap at python.org > https://mail.python.org/mailman/listinfo/python-ldap -------------- next part -------------- An HTML attachment was scrubbed... URL: From rudolf.honegger at siemens.com Wed Nov 13 07:42:18 2019 From: rudolf.honegger at siemens.com (Honegger, Ruedi) Date: Wed, 13 Nov 2019 12:42:18 +0000 Subject: [python-ldap] LDAPS In-Reply-To: References: Message-ID: Hi William, Many thanks for the fast reply and the positive answer! Regards, Ruedi From: William Brown Sent: Mittwuch, 13. Nov?mber 2019 13:36 To: Honegger, Ruedi (SI BP R&D ZG FW CCP) Cc: python-ldap at python.org Subject: Re: [python-ldap] LDAPS Yes it does support ldaps! It accepts the same ca options as start tls. Ldaps also protects from some security issues that start tls does not so it?s highly recommended to use it. If you need any more help please let us know. William On 13 Nov 2019, at 22:05, Honegger, Ruedi > wrote: ? Hi all, Does the library python-ldap also support LDAPS? With best regards, Rudolf Honegger Siemens Schweiz AG, Smart Infrastructure, Global Headquarters Building Products Research & Development Common Controller Platform SI BP R&D ZG FW CCP Zaehlerweg 7 6300 Zug, Switzerland Mobile: +41 79 4799231 mailto:rudolf.honegger at siemens.com www.siemens.com/ingenuityforlife Important notice: This e-mail and any attachment thereof contain corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank you. _______________________________________________ python-ldap mailing list python-ldap at python.org https://mail.python.org/mailman/listinfo/python-ldap -------------- next part -------------- An HTML attachment was scrubbed... URL: