ANN: python-ldap-2.3.4

2008-03-29 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

Re: ANN: python-ldap-2.3.4

2008-03-30 Thread Michael Ströder
On 2:20:18 pm 2008-03-29 Torsten Kurbad <[EMAIL PROTECTED]> wrote: > On Saturday, March 29, 2008 at 13:25 Michael Ströder wrote: > > Released 2.3.4 2008-03-29 > > Wow, Michael, that was fast! Seg faults are urgent issues although in this case nobody ever reported it. Specia

Commit new-style docs to CVS?

2008-03-30 Thread Michael Ströder
HI! Waldemar Osuch contributed the converted new-style docs for python-ldap based on the latest latex-based docs. You can view/browse the PDF and HTML builds here: http://python-ldap.sourceforge.net/new-style-doc/ The PDF index does not look too good at the moment but I'm not sure how importa

Re: Commit new-style docs to CVS?

2008-03-30 Thread Michael Ströder
Ryan Lovett wrote: > On Sun, Mar 30, 2008 at 05:03:49PM +0200, Michael Str?der wrote: >> Please review and comment. > > The new HTML docs look very nice and the search facility is wonderful. > Perhaps "Front Matter" on /index.html could be changed to "Overview" or > "Introduction"? "Front Matter"

Re: Commit new-style docs to CVS?

2008-04-04 Thread Michael Ströder
Since there were no major objections I've committed new docs. Ciao, Michael. Michael Ströder wrote: > > Waldemar Osuch contributed the converted new-style docs for python-ldap > based on the latest latex-based docs. You can view/browse the PDF and > HTML builds here: &

Re: Python-2.3.4 eggs

2008-04-21 Thread Michael Ströder
Torsten Kurbad wrote: > > I boiled some new eggs for you. Thanks for contributing your builds. Could you please provide some descriptive text (HTML snippet) to be added to the web site at http://python-ldap.sourceforge.net/download.shtml? Ciao, Michael. ---

Re: high level API for ldap object handling

2008-04-23 Thread Michael Ströder
Olivier, Olivier Sessink wrote: > > In my use of python-ldap I've often used a self-developed high level > class for ldap-object handling. > > Adding a new ldap entry for example (ld is a python-ldap object): > > lo = LdapOO.LdapObject() > lo.set_dn_attribs(['cn']) > lo.add_attribute_value('cn

Re: One result call per record

2008-04-23 Thread Michael Ströder
Ron Teitelbaum wrote: While polling it appears that we have to call result for every record that is waiting to be read. Since we added a 250 millisecond delay between calls larger queries are taking a really long time. Why do you wait such a long time in an extra time.sleep() call? re

Re: high level API for ldap object handling

2008-04-23 Thread Michael Ströder
Olivier, please follow-up on the python-ldap-dev (Cc:-ed) list because this is certainly of general interest. Olivier Sessink wrote: > 2008/4/23 Michael Ströder <[EMAIL PROTECTED]>: >> Hmm, I'm not sure I would consider this to be very high-level. If a >> higher-level

Re: Killed Python2.4

2008-04-26 Thread Michael Ströder
Ron Teitelbaum wrote: > > I know you mentioned that I should send you more info if I get an exception. > > I got a SERVER_DOWN and then retried the call manually and blew up python2.4 > > This is CentOS 5, python2.4.4, python-ldap 2.3.4 > [..] > python2.4: io.c:234: ber_flush2: Assertion `( (sb)

Re: Killed Python2.4

2008-04-28 Thread Michael Ströder
Ron Teitelbaum wrote: > ldd libldap.so > linux-gate.so.1 => (0x002d7000) > liblber-2.3.so.0 => /usr/lib/liblber-2.3.so.0 (0x00176000) > libresolv.so.2 => /lib/libresolv.so.2 (0x002f7000) > libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x0089a000) > libssl.so.6 =>

Re: Killed Python2.4

2008-04-28 Thread Michael Ströder
Ron Teitelbaum wrote: > > Here are the results: Ron, it seems I can't help much. Did you compile python-ldap from source? Any chance that there is a library/header mismatch between compile and run time with other software on your system? Also note that OpenLDAP 2.3.27 is quite old (2006/08/19)

Re: Killed Python2.4

2008-04-28 Thread Michael Ströder
Ron Teitelbaum wrote: > Here are the right values: > > ldd _ldap.so > linux-gate.so.1 => (0x00d5e000) > libldap_r-2.4.so.2 => /usr/local/openldap/lib/libldap_r-2.4.so.2 > (0x00bfe000) > liblber-2.4.so.2 => /usr/local/openldap/lib/liblber-2.4.so.2 > (0x00ae2000) Did you sp

FYI: python-ldap and web2ldap at OpenLDAP booth, OpenExpo 2008

2008-05-07 Thread Michael Ströder
LDAP clients. I will also present web2ldap and answer questions about python-ldap too. I'd be glad to meet members of the community personally there. Ciao, Michael. -- Michael Ströder E-Mail: [EMAIL PROTECTED] http://www.stroede

Re: module ldap : no module named .py

2008-06-05 Thread Michael Ströder
David Hláčik wrote: > As you can see : > Jun 5 13:33:12 dev01 nnrpd[9550]: python: Error: No module named py > comes from nnrpd_auth.py : Frankly I don't see anything I can understand or for what I have a clue how to help you. > Alltought when i pass it to INN, when INN calls nnrpd_auth.py and

Re: Problem on add

2008-06-09 Thread Michael Ströder
Michele Petrazzo - Unipex srl wrote: > > ldif = [('dn', 'cn=A name,ou=People,dc=unipex,dc=it'), I think this variable is misnamed. > [..] > l.add_s(LDAP_BASE_DN, ldif) > [..] > ldap.UNDEFINED_TYPE: {'info': 'dn: attribute type undefined', 'desc': > 'Undefined attribute type'} It means exactly w

Re: unable to download

2008-06-11 Thread Michael Ströder
cedric briner wrote: > > I'm using ez_install to have a fresh python-ldap modules. Frankly I'm not really familiar with ez_install. > python ez_setup.py -s ../bin -d ../lib python-ldap > Searching for python-ldap > Reading http://pypi.python.org/simple/python-ldap/ > Reading http://python-ldap.s

Re: unable to download

2008-06-11 Thread Michael Ströder
Jens Vagelpohl wrote: > On Jun 11, 2008, at 02:36 , Michael Ströder wrote: >> Sigh! One more place to go when doing a release... > > If I were you I'd put releases on PyPI only and just point people > there. I'll consider this. > Personally, I can't stand t

Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Michael Ströder
HI! I'd like to hear from the Python community whether support for Python version prior to 2.3 is still needed in python-ldap. Please tell me which Python version you're using and why it'd be important for you to have python-ldap updates still supporting it. BTW: Actually older Python versions ar

Re: Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Michael Ströder
Torsten Kurbad wrote: > Jens Vagelpohl wrote: >> IMHO it's really not a big deal to tell people they must use older >> python-ldap releases if they insist on running Python versions that >> are no longer supported by anyone. > > Exactly my opinion! You both want to convince me to keep older v

Re: Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Michael Ströder
Ryan Lovett wrote: > On Mon, Jun 16, 2008 at 03:48:39PM +0200, Michael Ströder wrote: >> I'd like to hear from the Python community whether support for Python >> version prior to 2.3 is still needed in python-ldap. Please tell me >> which Python version you're usin

Re: Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Michael Ströder
Matej Vela wrote: > Ryan Lovett <[EMAIL PROTECTED]> writes: > >> On Mon, Jun 16, 2008 at 03:48:39PM +0200, Michael Ströder wrote: >>> I'd like to hear from the Python community whether support for Python >>> version prior to 2.3 is still needed in pyt

Re: Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Michael Ströder
Ryan Lovett wrote: > I'm sure the gnutls folks would welcome your bug reports about its security > and stability. Howard Chu did an analysis and discussed that with gnutls developers since OpenLDAP users reported crashes when using LDAP with SSL. I'm not feeling comfortable with what he found ou

Re: Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Michael Ströder
Matej Vela wrote: > Michael Ströder <[EMAIL PROTECTED]> writes: > >> And how about OpenLDAP libs and gnutls? Yes, I'm nagging here, but >> because of very good reasons. > > I don't see it as nagging at all, you're perfectly right not to support &g

Re: python-ldap question

2008-06-18 Thread Michael Ströder
Melita, I'd kindly ask you to come over to the python-ldap-dev mailing list (See To:, Bcc: to you to protect your e-mail address) to further discuss things like this because others are surely interested in this too. http://lists.sourceforge.net/lists/listinfo/python-ldap-dev Melita Mihaljevic

Re: Reading groups from LDAP

2008-06-18 Thread Michael Ströder
Melita Mihaljevic wrote: > Hi, > I'm wondering which is the generic way to search for groups in LDAP. > I used: search_groups = lo.search_st(base_dn, ldap.SCOPE_SUBTREE, > '(ou=Group)') The filter (ou=Group) does not make sense to me. You're probably mixing this with the search root. 1. Bear in

Re: Reading groups from LDAP

2008-06-18 Thread Michael Ströder
Melita Mihaljevic wrote: > > My search filter is (it's all in one line): > search_filter = > '(|(&(objectClass=groupOfUniqueNames)(uniqueMember=uid=usera*)) > (&(objectClass=groupOfNames)(member=uid=usera*)) > (&(objectClass=posixGroup)(memberUid=usera*)))' Why do you want to do wildcard searches

Re: Reading groups from LDAP

2008-06-18 Thread Michael Ströder
Michael Ströder wrote: > Melita Mihaljevic wrote: >> >> My search filter is (it's all in one line): >> search_filter = >> '(|(&(objectClass=groupOfUniqueNames)(uniqueMember=uid=usera*)) >> (&(objectClass=groupOfNames)(member=uid=usera*)) >>

Re: Reading groups from LDAP

2008-06-18 Thread Michael Ströder
Melita Mihaljevic wrote: > On Wed, Jun 18, 2008 at 5:58 PM, Michael Ströder <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > Michael Ströder wrote: > Melita Mihaljevic wrote: > My search filter is (it's all in one li

Re: Reading groups from LDAP

2008-06-18 Thread Michael Ströder
Michael Ströder wrote: > The user enters some user name. During login you have to use a > configurable search filter for searching the user's entry. > > Something like: > user_search_filter_template = '(|(uid=%s)(sAMAccountName=%s))' > > An then replace %

Re: Reading groups from LDAP

2008-06-19 Thread Michael Ströder
Melita Mihaljevic wrote: > > > On Wed, Jun 18, 2008 at 7:17 PM, Michael Ströder <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Michael Ströder wrote: > > The user enters some user name. During login you have to use a > c

Re: support for wildcard certficates

2008-07-03 Thread Michael Ströder
Rahul Amaram wrote: > I have set up a ldap server with a wildcard certificate. Upon trying to > establish a TLS connection using python ldap, I get the error "TLS: > hostname does not match CN in peer certificate". This works fine if I > use a certificate with the exact domain name. Is this a bu

ANN: python-ldap-2.3.5

2008-07-06 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

Re: Python-LDAP doesn't like crypt-passwords with 41bit?

2008-07-23 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > > Our passwords in the LDAP server are encrypted with “crypt” and stored > as 41bit binary values. The problem is that python-ldap doesn’t seem to > like 41bit passwords but only 20bit. When I try to authenticate by > Plone-LDAP / python-LDAP, it doesn’t work, cause t

Re: REG:python-ldap able to handle unicode characters

2008-07-27 Thread Michael Ströder
deepti jawalkar wrote: > > I have been working with python ldap and ADSI modules to get my tasks > done in AD and i have noticed that python ldap is able to handle unicode > characters when we try to add/remove a particular user from a group who > has unicode characters in his DN but the sam ei

Re: Really strange error

2008-08-01 Thread Michael Ströder
Jonathan Hansen wrote: > When I run the script below it binds successfully, but then when I try > and run the search says it cannot contact the server. I have verified > the service is running, ports are open, it binds without error so I am > quite confused. You could use tracelevel=2 when c

Re: Really strange error

2008-08-01 Thread Michael Ströder
Michael Ströder wrote: > Jonathan Hansen wrote: >> When I run the script below it binds successfully, but then when I >> try and run the search says it cannot contact the server. I have >> verified the service is running, ports are open, it binds without >> er

Re: Really strange error

2008-08-02 Thread Michael Ströder
Jonathan, please stay on the mailing list. Jonathan Hansen wrote: > Turned that on and it's a little more confusing because I can SEE > results returned... The output '=> LDAPError' in the trace log shows that an exception was raised derived from an error code returned by the underlying OpenLD

Re: REG:python-ldap able to handle unicode characters

2008-08-03 Thread Michael Ströder
deepti jawalkar wrote: > well these are my 2 cases : > > *with python-ldap *: so in this case it works even though the object i > am passing has unicode characters in it's distinguished name > eg: CN=Sen-po 胡森� > (senpo),OU=Users,OU=TPE,OU=Offices,DC=corp,DC=google,DC=com Well, *I* can't

Re: Error while building

2008-08-07 Thread Michael Ströder
Sig wrote: > Matej Vela a écrit : >> Sig <[EMAIL PROTECTED]> writes: >>> I can't build python-ldap-2.3.5. What should I do ? >> Looks like you're missing libldap2-dev. Please run >> >> # apt-get install build-essential libldap2-dev libsasl2-dev python-dev > [..] > Too bad all these dev libs ar

Re: Problems importing from LDIF file generated with python-ldap

2008-08-13 Thread Michael Ströder
Lars Erik Kolden wrote: > ldapmodify: modify operation type is missing at line 26, entry > "cn=audio,ou=Group,dc=ourdc,dc=no" > [..] > When I look in the LDAP docs, this looks reasonable, as it states that > you ned an "add: memberUid" statement with the changetype: modify. But > how come it worked

Re: SunStudio compile

2008-08-22 Thread Michael Ströder
Matej Vela wrote: > Anil <[EMAIL PROTECTED]> writes: > >> I am trying to compile python ldap with SunStudio, I get this error. Any >> idea? > [...] >> "Modules/options.c", line 108: Error: Formal argument 1 of type >> ldapcontrol** in call to LDAPControl_List_DEL(ldapcontrol**) is being >> pass

Re: SunStudio compile

2008-08-22 Thread Michael Ströder
Anil wrote: > Thanks, that worked! I am able to compile it now, but if I enable sasl, > it also fails: > > "Modules/LDAPObject.c", line 568: Warning: String literal converted to > char* in formal argument format in call to > _PyObject_CallMethod_SizeT(_object*, char*, char*, ...). > "Modules/LD

Re: SunStudio compile

2008-08-25 Thread Michael Ströder
Matej Vela wrote: > Yup. If you haven't already, try replacing lines 614 and 615 > > sasl_interact_t *interact = in; > PyObject *SASLObject = defaults; > > with > > sasl_interact_t *interact = (sasl_interact_t *) in; > PyObject *SASLObject = (PyObject *) defaults; I will commit

Re: problem using python-ldap under fcgi

2008-08-26 Thread Michael Ströder
Matt Bartolome wrote: > I've got a little problem and I'm not sure how to track down the error > I'm getting. My web server is spitting back a 504 gateway timeout > which isn't helpful at all so I'm hoping someone here can point me in > the right direction. > > When I attempt to: > >

Re: problem using python-ldap under fcgi

2008-08-27 Thread Michael Ströder
Matt Bartolome wrote: > Hey Michael. Thank you for your response. I modified LDAPObject.c and > ldapcontrol.c to use the solution described here: > > https://bugs.launchpad.net/ubuntu/+source/python-cdb/+bug/157251 > > Looks like it is something specific to glibc in ubuntu and the > "recommended"

Re: problem using python-ldap under fcgi

2008-08-27 Thread Michael Ströder
Matt Bartolome wrote: > My apologies on the wild goose chase but after using valgrind on my > fcgi process it is python cx_Oracle (would have never guessed that!) > which triggers the segmentation fault when ldap.initialize() is > called. Why it does this is beyond me but a simple alteration of my

Re: problem using python-ldap under fcgi

2008-08-27 Thread Michael Ströder
Matt Bartolome wrote: > I'll take a stab at this. I'll give you fair warning though that I > don't know much about C. It looks like the modifications would be > fairly straight forward though given I can find the recommended usage > and documentation. I left off at the type cast build warnings so I

Re: Creating Active Directory Objects

2008-08-30 Thread Michael Ströder
Randy wrote: > Mike (or anyone else who has successfully changed an Active Directory > password using python-ldap over SSL), > > I have not found an update in the archives to your last message on > this subject (below). Can you perhaps share some Python code showing > how to add or change the pas

Re: Query on finding the members inside a nested group inside Active Directory

2008-09-05 Thread Michael Ströder
Alex Davies wrote: > > I am trying to query an AD Domain Controller for some information, and > i'd like to do this without having to install the win32 and AD libraries > for Python. So you want to use python-ldap on Win32. Ok. > I am using the following code to obtain a list of users inside a g

Re: How to get a user's OUs

2008-09-08 Thread Michael Ströder
Gustavo Narea wrote: > > How can I retrieve the Organizational Units a user belongs to via python-ldap? This question is not very clear. Do you mean the attribute 'ou' of the user's entry or the ou-Container the user's entry is in? If you're working with AD it's probably the latter. Then it's the

Re: How to get a user's OUs

2008-09-10 Thread Michael Ströder
Gustavo Narea wrote: > > On Monday September 8, 2008 23:47:19 you wrote: >> This question is not very clear. Do you mean the attribute 'ou' of the >> user's entry or the ou-Container the user's entry is in? If you're >> working with AD it's probably the latter. Then it's the DN of the user's >> en

Re: Problem using ldaps with two different CA cert files

2008-09-11 Thread Michael Ströder
Rich Megginson wrote: > Is it possible to use two different CA certs in a single python-ldap > app? There are two options: 1. Stuff all trusted CA certs into one "PEM" file and use ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, '/path/to/allcacerts.pem') 2. Copy all CA certs in a directory and use

Re: Change password

2008-09-16 Thread Michael Ströder
Jonathan Hansen wrote: > Does anyone have a working password change script for active directory > server that will run on Linux? My web2ldap implements it. But it's not a small script. Depending on your use-case you might consider deploying web2ldap though. At least for learning how the data loo

Re: ldap.modlist.modifyModlist()

2008-09-19 Thread Michael Ströder
Paul Wankadia wrote: > The current implementation of modifyModlist() clashed with some ACLs > because it touches too many values. :/ I don't fully understand. Do you have ACLs based on certain attribute values? It would be probably a good idea to mention these issues in the docs. > Here's a repla

Re: ldap.modlist.modifyModlist() (resent to list)

2008-09-23 Thread Michael Ströder
Paul Wankadia wrote: > On Fri, Sep 19, 2008 at 6:12 PM, Michael Ströder <[EMAIL PROTECTED]> wrote: > >>> The current implementation of modifyModlist() clashed with some ACLs >>> because it touches too many values. :/ >> I don't fully understand. Do

Re: python-ldap wrong auth. after server down

2008-09-26 Thread Michael Ströder
mete bilgin wrote: > i'm trying to connect ldap into python. when i give it to true username > and password, nothing going wrong...But i try to wrong password ,the > server shutdown...How can i pass that. What does "the server shutdown" mean exactly. Is it stopped? > ps: > ldap_server=ldap.open('

Re: python-ldap wrong auth. after server down

2008-09-26 Thread Michael Ströder
Please don't e-mail me personally. Stay on the mailing list! mete bilgin wrote: > 2008/9/26 Michael Ströder <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> > > mete bilgin wrote: > > i'm trying to connect ldap into python. when i give it to

Re: configure: error: BDB/HDB: BerkeleyDB not available

2008-10-05 Thread Michael Ströder
Andre Basel wrote: > When trying to install OpenLDAP , I get the above error. > > How do I install BerkeleyDB, or make it available? It's more appropriate to ask questions about how to install OpenLDAP on the openldap-software mailing list: http://www.openldap.org/lists/ FWIW: If you just need

Thoughts on python-ldap 3.0

2008-11-07 Thread Michael Ströder
HI! Given that Python 3.0 makes good progress it's worth to think about how to provide a LDAP module for Python 3.0. Glancing over PEP 3000 it's pretty obvious that python-ldap could be changed more than just adding a few compability patches needed for 2.5 or 2.6 since Python 3.0 seems to be a pr

Re: Thoughts on python-ldap 3.0

2008-11-07 Thread Michael Ströder
Michael Ströder wrote: > Some ideas: Forgot one point: I'd prefer python-ldap to be part of the Python standard lib in the long run. New code would make it possible to meet the licensing prerequisites of the PSF for this from the very beginning. Ciao,

Re: Certificate checking on LDAP over SSL connection

2008-12-09 Thread Michael Ströder
Alberto Lopes wrote: > > From what I understood from the LDAPUserFolder code, it delegates the > SSL negotiation to the python-ldap library. And further down the delegation path: python-ldap -> OpenLDAP lib -> OpenSSL lib > How can I pass the > CAcertificate to the python-ldap layer in order to

Re: Certificate checking on LDAP over SSL connection

2008-12-09 Thread Michael Ströder
Alberto Lopes wrote: > ldap.set_option(ldap.OPT_X_TLS_CACERTFILE,'/path/to/my/CAcert') > l = > ldap.initialize('ldaps://:',trace_level=ldapmodule_trace_level,trace_file=ldapmodule_trace_file) > > l.protocol_version=ldap.VERSION3 > l.bind_s('','',ldap.AUTH_SIMPLE) > > Here, I got the following m

Re: Certificate checking on LDAP over SSL connection

2008-12-10 Thread Michael Ströder
Alberto Lopes wrote: > subject= > issuer=/DC=srf/CN=AC DN > [..] > From the "subject=" line, one could see that the server certificate is > subjectless. Why do you use such a invalid cert? Fix this. > Do you think that's the reason why I couldnt' connect via python-ldap? Yes. Ciao, Michael. -

Re: Certificate checking on LDAP over SSL connection

2008-12-16 Thread Michael Ströder
Alberto Lopes wrote: > > I dunno if this message was best sent directly to you or posted on the > list; if so, please feel free to forward it. Please post to python-ldap-dev@lists.sourceforge.net (Cc:-ed). > Apparentely the "SSL server certificate with blank subject field" > problem doesn't end

Re: minor errors in the docstring of dsml.py

2008-12-17 Thread Michael Ströder
Yves Dorfsman wrote: > There are minor errors in the doc string of dsm.py, such as: > > | input_file > | File-object to read the LDIF input from > > Which obviously has been copied from the ldif.py. Uuumh, thanks. Checked in corrected version in CVS HEAD. Ciao, Michael. -

Re: DSMLParser example

2008-12-17 Thread Michael Ströder
Yves Dorfsman wrote: > Is there a simple example for dsml.DSMLParser() somewhere ? No, this module is rather unmaintained. IIRC it mainly works like module ldif: You should sub-class dsml.DSMLParser implementing a custom method .handle(). Note that it only supports DMSLv1 which is not what you wa

Re: DSMLParser example

2008-12-17 Thread Michael Ströder
Yves Dorfsman wrote: > Michael Ströder wrote: >> Yves Dorfsman wrote: >>> But eventually it fails with an HTTP 404 error... >> ??? > > Yes I was confused too. > [..] >File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default >

Re: DSMLParser example

2008-12-18 Thread Michael Ströder
Yves Dorfsman wrote: > Michael: Can you confirm this is the way it was supposed to be used, I mean, > is this class the sort of argument that should be used for ContentHandler ? > >> Yves Dorfsman wrote: >> >>> I have tried: >>> x = dsml.DSMLParser(input_file, dsml.DSMLv1Handler) > > I have note

Re: Thoughts on python-ldap 3.0

2009-01-10 Thread Michael Ströder
Please, stay on the mailing list. Olivier Sessink wrote: > Sorry for this very late reaction. > > What would be great is to have a higher-level ldap objects to > manipulate entries: > ldapconnection = new blabla() > ldapobjects = ldapconnection.search('uid=xyz') > if (ldapobjects[0]['sn'] == 'you

Re: How to change the password of a LDAP entry as LDAP administrator

2009-01-15 Thread Michael Ströder
Guruprasad wrote: > Guruprasad wrote: >> Hi all, >> I am new to this Python-LDAP API and am currently learning and working >> on it. I, the LDAP admin, want to set the password of a LDAP user >> after binding as the admin user. I came across passwd_s() method which >> can be used to change the user

Re:

2009-01-26 Thread Michael Ströder
solomon_anto...@emc.com wrote: > > I wanted to know if any of you were successful in getting python-ldap > installed on solaris 10. if so could you point me to any instructions > that you might have? I've installed it with the usual platform-independent method: http://python-ldap.sourceforge.ne

Re:

2009-01-28 Thread Michael Ströder
solomon_anto...@emc.com wrote: > > I tried using the platform install and for some reason I get this error. > ImportError: ld.so.1: python: fatal: libresolv.so.2: open failed: No such > file or directory > > Also I ran ldd on the libresolve.so.2 > libresolv.so.2 =>/usr/lib/libresolv.so.2

Re: Updated eggs for linux x86 and amd64

2009-01-30 Thread Michael Ströder
Sidnei da Silva wrote: > On Thu, Jan 29, 2009 at 5:43 PM, Waldemar Osuch > wrote: >> On Thu, Jan 29, 2009 at 1:17 AM, Torsten Kurbad >> wrote: >>> On Thursday, January 29, 2009 at 03:44 Sidnei da Silva wrote: The best way really would be to build it statically. I did manage to do this *

Re: Distinguished name problem

2009-02-16 Thread Michael Ströder
Fredrik Melander wrote: > From the command line (ldapsearch) I've got no problem becoming whatever > I want. The python-ldap module on the other hand gives me *almost* > anything I want. The only thing that I seem to not be able to get is the > DN. The 2-tuples returned by ldap_search_s() etc. are

Re: Distinguished name problem

2009-02-16 Thread Michael Ströder
Fredrik Melander wrote: > first of all - I noticed (a bit too late) that this actually is the > developer-list (although a user-list doesn't seem to exist). I want to > take the opportunity to thank you for taking time to answer my trivial > questions in spite of this. Much appreciated! There's on

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-03 Thread Michael Ströder
Joel Heenan wrote: > > I'm trying to use SimplePagedResultsControl so I can pull some data out > of Active Directory that has a Server-Limit set. I got most of my code > from this guide http://www.novell.com/coolsolutions/tip/18274.html Since I posted this code I think it works. ;-) > File "/u

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-03 Thread Michael Ströder
Joel Heenan wrote: > Hi Michael, > > Comments inline: > >> Michael Ströder wrote: >> Joel Heenan wrote: >> >>> File "/usr/lib64/python2.4/site-packages/ldap/controls.py", line >> 78, >>> in encodeControlValue >>> >>

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-05 Thread Michael Ströder
pyldap.20.dlo...@neverbox.com wrote: > > I've run into the same problem as Joel on basically an identical setup > - CentOS 5.2, openldap 2.3.27-8.el5_2.4, python 2.4.3-21.el5, > python-ldap 2.2.0-2.1. This of course being on a 64 bit release of > CentOS. > > I did as you suggested and updated ope

Re: change password for user

2009-03-08 Thread Michael Ströder
Jan-Frode Myklebust wrote: > I have a script that tries to sync a userdatabase with > plaintext username/password in mysql, to a Centos Directory > Server. Currently I've been pushing the passwords into the > directory by first creating the SSHA1 hash in python and > store '{SSHA}' + encode-string

Re: change password for user

2009-03-09 Thread Michael Ströder
Zhang Huangbin wrote: > Michael Ströder wrote: >>> so it would be nice to have >>> the directory server do the hashing instead. I've found the >>> method: >>> >>> passwd_s(user, oldpw, newpw, [serverctrls=None, [clientctrls=None]]) >&g

Re: change password for user

2009-03-09 Thread Michael Ströder
Zhang Huangbin wrote: > Michael Ströder wrote: >> Yes. Other LDAP servers might have a different configuration. Also some >> servers set other password attributes as well (e.g. the smbk5pwd overlay >> for OpenLDAP sets Samba password attributes and the Kerberos keys for a >

Re: change password for user

2009-03-09 Thread Michael Ströder
Jan-Frode Myklebust wrote: > On 2009-03-09, Michael Ströder wrote: >>> But, it occurred to me that I'm not fully sure what I'm doing >>> when creating the SSHA1 hash, >> If the password is usable afterwards there's nothing wrong with >> client-side

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Michael Ströder
Zhang Huangbin wrote: > Zhang Huangbin wrote: >> Strange, the same code (Demo/page_control.py) works in: >> >> - OS: CentOS 5.2, *i386* >> - Python: 2.4.3-21.el5 (shipped within CentOS) >> - python-ldap: 2.3.6 (installed from source tarball) >> - OpenLDAP: 2.3.27-8.el5_2.4 >> > How can i help devel

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Michael Ströder
Zhang Huangbin wrote: > I had the same error here while run Demo/page_control.py: To all of the people experiencing problems: Could you please run Demo/page_control.py after applying the attached patch (which enables debug logging). To preclude problems in the 64-bit build of OpenLDAP client lib

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Michael Ströder
Zhang Huangbin wrote: > Michael Ströder wrote: >> To all of the people experiencing problems: >> Could you please run Demo/page_control.py after applying the attached >> patch (which enables debug logging). > > Here is output msg: So this seems to boil down to that th

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Michael Ströder
Michael Ströder wrote: > Zhang Huangbin wrote: >> Michael Ströder wrote: >>> To all of the people experiencing problems: >>> Could you please run Demo/page_control.py after applying the attached >>> patch (which enables debug logging). >> Here is output ms

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Michael Ströder
Zhang Huangbin wrote: > Michael Ströder wrote: >> Could somebody with more knowledge of C programming please review >> function encode_rfc2696() in Modules/ldapcontrol.c? >> >> The following var declaration could be problematic on 64-bit systems: >> >>

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Michael Ströder
Zhang Huangbin wrote: > Michael Ströder wrote: >> Could somebody with more knowledge of C programming please review >> function encode_rfc2696() in Modules/ldapcontrol.c? >> >> The following var declaration could be problematic on 64-bit systems: >> >>

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Michael Ströder
Zhang Huangbin wrote: > Michael Ströder wrote: >> Thanks to Zhang Huangbin for giving me access to his machine for testing. >> So I could track it down. It seems to work with the patch below which I >> committed to CVS HEAD. > > Hi, Michael. Thanks for your q

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-17 Thread Michael Ströder
Zhang Huangbin wrote: > Michael Ströder wrote: >> This patch seems to work (already installed at your site ;-). >> > Something strange. > > The server your tested is CentOS 5.2 x86_64, and it works with your > patched version. > > But on RHEL 5.3 x86_64, it rais

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-17 Thread Michael Ströder
Michael Ströder wrote: > Zhang Huangbin wrote: >> Michael Ströder wrote: >>> This patch seems to work (already installed at your site ;-). >>> >> Something strange. >> >> The server your tested is CentOS 5.2 x86_64, and it works with your >> patch

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-18 Thread Michael Ströder
Zhang Huangbin wrote: > > A personal question: Cc: to the list since this could be of general interest. > when will you release a new version? It would be no big deal to release a new version tonight if it's important for your project to use a released version with a definite version number you

Re: Segfault in LDAPerror() when errnum is out of bounds

2009-03-20 Thread Michael Ströder
Sean, many thanks for digging through this. Does that mean your issues with syncrepl controls and l_ldap_result3() are fixed? Any particular reason why you're using python-ldap 2.3.1 which is almost two years old? Sean Burford wrote: > When LDAPError receives an errnum from ldap_get_option(l, >

Re: Segfault in LDAPerror() when errnum is out of bounds

2009-03-20 Thread Michael Ströder
Sean Burford wrote: > > 2009/3/20 Michael Ströder <mailto:mich...@stroeder.com>> > > many thanks for digging through this. Does that mean your issues with > syncrepl controls and l_ldap_result3() are fixed? > > Yeah. There are still mysteries, but Refresh

Re: Segfault in LDAPerror() when errnum is out of bounds

2009-03-27 Thread Michael Ströder
Sean Burford wrote: > 2009/3/20 Michael Ströder <mailto:mich...@stroeder.com>> > > Your patch and a couple of other minor changes are now in CVS HEAD. > > errors.c still looks the same, has the patch been submitted? Oops. Yes, forgot to committ it.

Re: Recursive ldap lookups

2009-04-02 Thread Michael Ströder
Fredrik Melander wrote: > I was wondering if/how I can make recursive lookups in my ldap-tree > (corresponding to the -C option of ldapsearch), Which ldapsearch tool are you talking about? OpenLDAP's command-line tool ldapsearch does not have an option -C. Do you have several implementations of ld

Re: Anyone packaged python-ldap as part of a bigger package ?

2009-04-06 Thread Michael Ströder
Roland Hedberg wrote: > One problem I've already found is that there doesn't seem to exist a > simple stable FTP/HTTP URL that points to the latest distribution. Do you need a URL which is always the same but points to the latest tar.gz file? Ciao, Michael.

Re: Anyone packaged python-ldap as part of a bigger package ?

2009-04-06 Thread Michael Ströder
Roland Hedberg wrote: > > On Apr 6, 2009, at 9:37, Michael Ströder wrote: > >> Roland Hedberg wrote: >>> One problem I've already found is that there doesn't seem to exist a >>> simple stable FTP/HTTP URL that points to the latest distribution. >&

Re: Anyone packaged python-ldap as part of a bigger package ?

2009-04-06 Thread Michael Ströder
Jens Vagelpohl wrote: > > On Apr 6, 2009, at 14:10 , Michael Ströder wrote: > >>> It's not always wise to go with the latest. >> At the moment it is (within the 2.3 series). > > Unfortunately that's not true. I've ben in many situations where I

<    1   2   3   4   >