Re: python ldap bind error

2012-12-22 Thread Michael Ströder
Jorge Alberto Diaz Orozco wrote:
> hi there.
> I'm working with python ldap and I need to authenticate my user.
> this is the code I'm using.
> 
> import ldap
> ldap.set_option(ldap.OPT_REFERRALS,0)
> ldap.protocol_version = 3
> conn = ldap.initialize("ldap://ldap.domain.cu";)
> conn.simple_bind_s("u...@domain.cu","password")
> 
> every time I do this it gives me the next error:
> ldap.INVALID_DN_SYNTAX: {'info': 'invalid DN', 'desc': 'Invalid DN syntax'}

"u...@domain.cu" is not a DN as required in RFC 4511:

http://tools.ietf.org/html/rfc4511#section-4.2

MS AD directly accepts a userPrincipalName but this is a highly proprietary
feature => search the user's entry first.

Ciao, Michael.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python ldap recursive

2010-07-15 Thread Michael Ströder
tekion wrote:
> I know perl Net::LDAP could do a recursive search call to LDAP.

I don't know perl's Net::LDAP and therefore I'm not sure what you mean with
"recursive search call". Personally I'd associate that with recursively
processing LDAP tree structure.

> What I am running into with Python LDAP on the search call is that I would 
> l have to wait for the search to complete to get the result.  Where as with
> Perl recursive search call,  I would get the result (not the completed
> result) back while the search is still running.

In case you're using http://www.python-ldap.org you're probably looking for
the asynchronous search methods:

http://www.python-ldap.org/doc/html/ldap.html#ldap.LDAPObject.search

See general note:

http://www.python-ldap.org/doc/html/ldap.html#sending-ldap-requests

Ciao, Michael.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python ldap recursive

2010-07-13 Thread Steven D'Aprano
On Tue, 13 Jul 2010 18:15:58 -0700, tekion wrote:

> Hi,
> I know perl Net::LDAP could do a recursive search call to LDAP.   What I
> am running into with Python LDAP on the search call is that I would l
> have to wait for the search to complete to get the result.  Where as
> with Perl recursive search call,  I would get the result (not the
> completed result) back while the search is still running.  Does any know
> if we have something like this in Python LDAP module?  Thanks.

What Python LDAP module are you using?



-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap and encodings

2009-08-14 Thread Matias

Matias wrote:

Hi!

I'm using python-ldap to create some entries on my openldap server.

The problem is that some of those entries have accented characters and 
unicode text in general.


I'm wondering if there is any example or documentation on how to add
or modify ldap objects whose values contains non-ascii characters,
such as accents, and so on. As far as I understand, those values
should be encoded using base64, but if I do that, I don't know how to
indicate in the modlist that this is the encoded value and not the
value itself.

Any help will be bery appreciated.


Matias.




Nevermind I was doing something really stupid.Don't ask please :-)

--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap

2009-07-09 Thread Michael Ströder
Larry kavanagh wrote:
> I need a PYTHON-LDAP package.
> 
> I'm trying to install ploneldap and it tells me I need python-ldap
> package first  .. but I can't find one to match my versions.
> 
> I'm using plone 3.2.2, Python 2.4.4 and Zope 2.10.7 on a Win32 environment.

Did you check all the links on this page?

  http://www.python-ldap.org/download.shtml

There's a MSI installer for Python 2.4 on Win32:

http://pypi.python.org/packages/2.4/p/python-ldap/python-ldap-2.3.8.win32-py2.4.exe#md5=35da547711280c18bd4ccd6e637cdf9b

There has been an update of the .egg files recently (also link on the
download page above).

Ciao, Michael.

-- 
Michael Ströder
E-Mail: mich...@stroeder.com
http://www.stroeder.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap reading an OU with more than 1000 objects

2008-10-18 Thread Michael Ströder
Erick Perez - Quadrian Enterprises, S.A. wrote:
> I have a MS Windows AD domain, and have one OU with more tan 1000 users
> objects. When I try to read it, I hit the 1000 limit of AD while returning
> objects, so I'm asking for advice as to how to read them.

IIRC with MS AD you can circumvent this limit by using the Simple Paged
Control (see RFC 2696). Check Demo/page_control.py in python-ldap's
source distribution for example code.

Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python LDAP

2008-08-26 Thread Juan
On 26 ago, 13:42, Michael Ströder <[EMAIL PROTECTED]> wrote:
> Juan wrote:
> >     self.conn = ldap.initialize(self.host, self.port)
>  > [..]
> > LDAPError: (2, 'No such file or directory')
>
> You have to pass in a LDAP URI as documented 
> here:http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.initialize
>
> Use of compability function ldap.open() is deprecated and might vanish
> in future versions of python-ldap.
>
> See also Demo/initialize.py in python-ldap's source distribution.
>
> Ciao, Michael.

Perfect! Thank you very much.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python LDAP

2008-08-26 Thread Michael Ströder

Juan wrote:

self.conn = ldap.initialize(self.host, self.port)

> [..]

LDAPError: (2, 'No such file or directory')


You have to pass in a LDAP URI as documented here:
http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.initialize

Use of compability function ldap.open() is deprecated and might vanish 
in future versions of python-ldap.


See also Demo/initialize.py in python-ldap's source distribution.

Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap - Operations Error

2008-04-25 Thread Michael Ströder

[EMAIL PROTECTED] wrote:

Thanks for the help guys, it works!  I used the
ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/


Hmm, maybe I should generally switch off referral chasing in python-ldap 
forcing applications to enable it if needed overriding libldap's 
default. I did this already for LDAPObject.protocol_version where 
libldap's default is LDAPv2 and python-ldap sets it to LDAPv3 in 
LDAPObject.__init__(). Although this was an incompatible change no-one 
complained.



immedialtey after import, then did the initialize trace_level=2 and
did the simple_bind_s.  I was able to search and get the results.
That trace_level thing is nice, i'm sure i will be debugging this more
as i move forward :)

Not sure if this is an AD thing or just something i needed to do with
our particular server/config.


Basically the concept of LDAPv3 referrals is broken since there's no 
concept for specifying how to bind to the referral's target without 
a-priori local configuration. See also an old posting to 
news:microsoft.public.windows.server.active_directory related to this:


http://groups.google.com/group/microsoft.public.windows.server.active_directory/msg/d061e0398cc366a5

Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap - Operations Error

2008-04-24 Thread t . a . adjuster
On Apr 24, 2:02 pm, [EMAIL PROTECTED] wrote:
> Not sure if this is an AD thing or just something i needed to do with
> our particular server/config.

Glad to hear my posting helped somebody.

In our case, our domain controller was passing us referrals to the
Configuration, ForestDNSZones, and DomainDNSZones partitions of the
directory when we were doing SCOPE_SUBTREE scoped searches from the
root DN of an AD domain. When python-ldap tried to chase those
referrals it did so with an anonymous bind, hence the error.

Once we turned off the OPT_REFERRALS option, our only other
consideration was to be sure that, when iterating over our search
results, we just scrubbed out the referrals that were returned (based
on the referrals being lists and the real search results being
dictionaries). This is a bit quick and dirty, perhaps, but it's what
did the trick for us.

Evan

--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap - Operations Error

2008-04-24 Thread theiviaxx
Thanks for the help guys, it works!  I used the
ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/
immedialtey after import, then did the initialize trace_level=2 and
did the simple_bind_s.  I was able to search and get the results.
That trace_level thing is nice, i'm sure i will be debugging this more
as i move forward :)

Not sure if this is an AD thing or just something i needed to do with
our particular server/config.

Thanks again!
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap: searching without specifying an OU?

2008-04-24 Thread Michael Ströder

hotani wrote:

http://peeved.org/blog/2007/11/20/


BTW: This blog entry claims that LDAP_SERVER_DOMAIN_SCOPE_OID control 
cannot be used with python-ldap. But support for such simple LDAPv3 
extended controls was added to python-ldap way back in 2005.


Actually it's easy (relevant code excerpt):


import ldap
from ldap.controls import BooleanControl
LDAP_SERVER_DOMAIN_SCOPE_OID='1.2.840.113556.1.4.1339'
[..]
l = ldap.initialize(ldap_uri,trace_level=trace_level)
# Switch off chasing referrals within OpenLDAP's libldap
l.set_option(ldap.OPT_REFERRALS, 0)
# Simple bind with user's DN and password
l.simple_bind_s(dn,password)
res = l.search_ext_s(
  'DC=dom,DC=example,DC=com',
  ldap.SCOPE_ONELEVEL,
  '(objectClass=subentry)',
  ['*'],
  serverctrls = [
BooleanControl(
  LDAP_SERVER_DOMAIN_SCOPE_OID,
  criticality=0,controlValue=1
)
  ]
)


Strange enough it has no effect. And setting criticality=1 raises an 
error indicating that this control is not supported although this 
control is explicitly mentioned in attribute 'supportedControl' of the 
server's rootDSE:


ldap.UNAVAILABLE_CRITICAL_EXTENSION: {'info': '0057: LdapErr: 
DSID-0C09068F, comment: Error processing control, data 0, vece', 'desc': 
'Critical extension is unavailable'}


Might depend on the domain functional level AD is running with...

Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder

[EMAIL PROTECTED] wrote:

import ldap
l = ldap.initialize("ldap://server.net";)
l.simple_bind(DN, "secret")

> 1
 ^^^
You probably want to use the synchronous method simple_bind_s() since 
you want to impersonate on this LDAP connection immediately before doing 
anything else on that connection.



l.result(1)

(97, [])


Could you please use argument trace_level=2 when calling 
ldap.initialize() and examine the debug log? It records all method calls 
of your particular LDAPObject instance.


l = ldap.initialize("ldap://server.net",trace_level=2)

Level 2 outputs a debug log with results received. Protect this log 
since it also contains passwords!



l.search("dc=server,dc=net", ldap.SCOPE_SUBTREE, "(sAMAccountName=user)")

OPERATIONS_ERROR: {'info': ': LdapErr: DSID-0C090627, comment:
In order to perform this operation a successful bind must be completed
on the connection., data 0, vece', 'desc': 'Operations error'}


Still something went wrong with your bind. Since I don't know your DN I 
can't say anything. The DN should be a local user in this domain and not 
a user from another trusted domain. If you have a complicated AD setup 
with various domains and delegated trust connecting to the GC (global 
catalog) on port 3268 might be easier.



The simple bind works fine and returns a result, when i get the
result, it returns 97 meaning successful.


It would raise an exception if an LDAP error was received.


 So there was a successful
bind on the connection, right?


Don't know. Since I don't know your DN and AD domain configuation.

I've added a new example script ms_ad_bind.py to python-ldap's Demo/ 
directory illustrating all the possible bind methods:


http://python-ldap.cvs.sourceforge.net/*checkout*/python-ldap/python-ldap/Demo/ms_ad_bind.py?content-type=text%2Fplain

For getting the SASL stuff to correctly work your DNS has to be properly 
set up for AD (A RRs and matching PTR RRs for the DCs).


Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap - Operations Error

2008-04-24 Thread Tim Golden

Michael Ströder wrote:

Jason Scheirer wrote:

On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote:

Hello all, I am trying to integrate TurboGears with our Active
Directory here at the office.  TurboGears aside, i cannot get this to
work.


Seems more promising: 
http://tgolden.sc.sabren.com/python/active_directory.html


This is based on ADSI?
Then the caveat is that it only runs on Windows.


Yes, it's Windows-only. (I've no idea if it would
run under something like WINE).

TJG
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder

Jason Scheirer wrote:

On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote:

Hello all, I am trying to integrate TurboGears with our Active
Directory here at the office.  TurboGears aside, i cannot get this to
work.


Seems more promising: http://tgolden.sc.sabren.com/python/active_directory.html


This is based on ADSI?
Then the caveat is that it only runs on Windows.

Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap - Operations Error

2008-04-23 Thread theiviaxx
Thanks for that last link, i'll try that tomorrow :)  As for the
tgolden modules, i will use that in a pinch, but it means our server
has to be a windows box.  just trying to keep this as open as
possible :)

Thanks again
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap - Operations Error

2008-04-23 Thread Jason Scheirer
On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote:
> Hello all, I am trying to integrate TurboGears with our Active
> Directory here at the office.  TurboGears aside, i cannot get this to
> work.  The simplest thing i can do to test this is:
>
> >>> import ldap
> >>> l = ldap.initialize("ldap://server.net";)
> >>> l.simple_bind(DN, "secret")
> 1
> >>> l.result(1)
> (97, [])
> >>> l.search("dc=server,dc=net", ldap.SCOPE_SUBTREE, "(sAMAccountName=user)")
>
> OPERATIONS_ERROR: {'info': ': LdapErr: DSID-0C090627, comment:
> In order to perform this operation a successful bind must be completed
> on the connection., data 0, vece', 'desc': 'Operations error'}
>
> The simple bind works fine and returns a result, when i get the
> result, it returns 97 meaning successful.  So there was a successful
> bind on the connection, right?  I'm really not sure where the problems
> lies.  Is it with the way im connecting or is it something to do with
> our AD server?
>
> Thanks

Seems more promising: http://tgolden.sc.sabren.com/python/active_directory.html

Also, same problem: 
http://groups.google.com/group/turbogears/browse_thread/thread/10fcd1f9e920d0a8

Also: http://peeved.org/blog/2007/11/20/

Google is pretty awesome when you paste in literal error strings.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder

hotani wrote:

It seems the only way I can bind is by using this format:
simple_bind_s('[EMAIL PROTECTED]','password')


Believe me: This is not true.


If I try using a DN, it fails every time. This will not work:
simple_bind_s('cn=user,dc=server,dc=local', 'password')


Check the DN you're using. Maybe you should search this particular user 
entry with filter ([EMAIL PROTECTED])


Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder

hotani wrote:

This fixed it!
http://peeved.org/blog/2007/11/20/

By adding this line after 'import ldap', I was able to search from the
root level:
ldap.set_option(ldap.OPT_REFERRALS, 0)


Uumh, yes. I'm always switching off OpenLDAP client lib's internal 
referral chasing.


But be prepared to also handle (at least ignore) the search 
continuations (LDAP URL) in the search results you will probably 
receive. These are not regular search entries.


Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread hotani
This fixed it!
http://peeved.org/blog/2007/11/20/

By adding this line after 'import ldap', I was able to search from the
root level:
ldap.set_option(ldap.OPT_REFERRALS, 0)
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread hotani
It seems the only way I can bind is by using this format:
simple_bind_s('[EMAIL PROTECTED]','password')

If I try using a DN, it fails every time. This will not work:
simple_bind_s('cn=user,dc=server,dc=local', 'password')

Errors out with "invalid credentials": ldap.INVALID_CREDENTIALS:
{'info': '80090308: LdapErr: DSID-0C090334, comment:
AcceptSecurityContext error, data 525, vece', 'desc': 'Invalid
credentials'}


If I put the *wrong* credentials in the first format, it will fail -
which seems to indicate the bind is working. With that
'successful' (?) bind, it is returning the bind error from my earlier
post only when I leave out the OU when searching.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder

hotani wrote:

Thanks for the response. The user I'm connecting as should have full
access but I'll double check tomorrow.

This is the LDAP error that is returned when I leave out the OU:

{'info': ': LdapErr: DSID-0C090627, comment: In order to
perform this operation a successful bind must be completed on the
connection., data 0, vece', 'desc': 'Operations error'}


This clearly indicates that the bind was not successful and you're 
trying anonymous search access here which is not allowed in default 
configuration of AD. I'm not sure whether you can allow anonymous access 
at ou-level.


You could try to use trace_level=2 to check whether bind is really 
successful and which bind-DN and credentials are actually used.


Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap: searching without specifying an OU?

2008-04-22 Thread hotani
Thanks for the response. The user I'm connecting as should have full
access but I'll double check tomorrow.


This is the LDAP error that is returned when I leave out the OU:

{'info': ': LdapErr: DSID-0C090627, comment: In order to
perform this operation a successful bind must be completed on the
connection., data 0, vece', 'desc': 'Operations error'}
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap: searching without specifying an OU?

2008-04-22 Thread Michael Ströder

hotani wrote:

I am attempting to pull info from an LDAP server (Active Directory),
but cannot specify an OU. In other words, I need to search users in
all OU's, not a specific one.


If the user you're binding with has the right in AD to search the whole 
subtree you can start searching at the domain-level.



con = ldap.initialize("ldap://server.local";)
con.simple_bind_s('[EMAIL PROTECTED]', pass)


Just for the records: A simple bind with userPrincipalName only works on 
AD. It's not a LDAPv3 compliant bind request then (which requires a full 
DN).



result = con.search_ext_s(
  'OU=some office, DC=server, DC=local',
  ldap.SCOPE_SUBTREE,
  "sAMAccountName=username", ['mail']
)[0][1]

for i in result:
  print "%s = %s" (i, result[i])

But i really need it to not require an OU.


It should work. I'm doing this quite often.


When I remove that part, it breaks.


What does "it breaks" mean? Any exception raised by python-ldap?


Maybe a different search function?


Nope.

Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for plone 3 (python 2.4.4)

2008-02-21 Thread Michael Ströder
Erol Robaina Cepero wrote:
> On 19/02/2008 at 07:12 p.m. Michael Ströder wrote:
> 
>> Erol Robaina Cepero wrote:
>>> I need download python-ldap for my plone 3.0.5 that use python 2.4.4.
>>>
>>> Do you know where I can find it?
>> http://python-ldap.sourceforge.net/download.shtml
> 
> There I found the version 2.3.1 for python 2.5. It works in python 2.4.4 too?

Nope. Binary builds of C extension modules are only guaranteed to 
be compatible within a Python media release, like 2.4.x or either 
2.5.x. So you have to compile it yourself if you don't find a 
suitable build of python-ldap for your platform and Python version.

Ciao, Michael.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for plone 3 (python 2.4.4)

2008-02-19 Thread Michael Ströder
Erol Robaina Cepero wrote:
> I need download python-ldap for my plone 3.0.5 that use python 2.4.4.
> 
> Do you know where I can find it?

http://python-ldap.sourceforge.net/download.shtml

Ciao, Michael.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-12 Thread Benedict Verheyen
Waldemar Osuch schreef:

> 
> I have also build it on XP SP2.
> 
> I have wrapped the files from "setup.py build" and all required .dll
> using Inno Setup.
> Maybe Vista does not like the executable produced by Inno.
> 
> If you still want to try then unzip the following:
> http://www.osuch.org/python-ldap.zip
> into your "site-packages" and see how far you can get.
> 
> The detailed instructions on how to build would be quite long and I'm
> sure I have forgotten some of the steps already but if you know about
> "./configure make make install" dance and know how to use Google you
> should be OK.
> 
> 1. First install MinGW, Msys and msysDTK.
> 2. Then you need to compile openldap.  See:
>
> http://mail.gnome.org/archives/gnomemeeting-devel-list/2005-September/msg00019.html
>for reference.  You will need regex but you can skip Berkley DB
> before you start.
> 3. I have compiled openssl too but I have seen ready made libraries
> for download.
>I do not have link handy at the moment.
> 4. The last step would be to run "setup.py build" for python-ldap.
> Remove sasl2 from setup.cfg
>since cyrus-sasl does not seem to be available for MinGW.
> 
> See how far you can get with the above instructions.  If you get stuck
> send me a private email and I will try to help you.
> If you could keep track of the steps and came up with better
> instructions than my pitiful attempt above that would be great.
> 
> Waldemar

Hi Waldemar,

thanks for the instructions.
I will try to build it one of these days and see how far i get.

As for the zip, i installed it and it works, i can use the ldap lib now.
So as you said, it indeed seems to be a problem with the Inno setup.
Anyway, if the zip works, i'm happy :)

If i get around to building it and if i succeed, i will post a more 
detailed report on how to do it.

Thanks,
Benedict

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Waldemar Osuch
On Jun 11, 6:42 am, Benedict Verheyen <[EMAIL PROTECTED]>
wrote:
> Thorsten Kampe schreef:
> 
>
> >> I'm on Vista (boohoo :(), what's your platform?
>
> > XP SP2
>
> Hmmm it thought so.
> So in my case it would be interesting to know how to build it so i can
> make a build that works on Vista too.
>

I have also build it on XP SP2.

I have wrapped the files from "setup.py build" and all required .dll
using Inno Setup.
Maybe Vista does not like the executable produced by Inno.

If you still want to try then unzip the following:
http://www.osuch.org/python-ldap.zip
into your "site-packages" and see how far you can get.

The detailed instructions on how to build would be quite long and I'm
sure I have forgotten some of the steps already but if you know about
"./configure make make install" dance and know how to use Google you
should be OK.

1. First install MinGW, Msys and msysDTK.
2. Then you need to compile openldap.  See:
   
http://mail.gnome.org/archives/gnomemeeting-devel-list/2005-September/msg00019.html
   for reference.  You will need regex but you can skip Berkley DB
before you start.
3. I have compiled openssl too but I have seen ready made libraries
for download.
   I do not have link handy at the moment.
4. The last step would be to run "setup.py build" for python-ldap.
Remove sasl2 from setup.cfg
   since cyrus-sasl does not seem to be available for MinGW.

See how far you can get with the above instructions.  If you get stuck
send me a private email and I will try to help you.
If you could keep track of the steps and came up with better
instructions than my pitiful attempt above that would be great.

Waldemar

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Benedict Verheyen
Thorsten Kampe schreef:

>> I'm on Vista (boohoo :(), what's your platform?
> 
> XP SP2

Hmmm it thought so.
So in my case it would be interesting to know how to build it so i can 
make a build that works on Vista too.

Regards,
Benedict

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Thorsten Kampe
* Benedict Verheyen (Mon, 11 Jun 2007 11:32:26 +0200)
> Thorsten Kampe schreef:
> > * Benedict Verheyen (Mon, 11 Jun 2007 11:23:59 +0200)
> >> Waldemar Osuch schreef:
> >>> I have managed to build it for myself using MinGW:
> >>> http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe
> >>>
> >>> See if it will work for you
> >>>
> >> thanks for the installation file.
> >> When i installed it, i got an error stating "The setup files are corrupt".
> > 
> > I downloaded and installed them. They work fine...
> 
> I'm on Vista (boohoo :(), what's your platform?

XP SP2
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Benedict Verheyen
Thorsten Kampe schreef:
> * Benedict Verheyen (Mon, 11 Jun 2007 11:23:59 +0200)
>> Waldemar Osuch schreef:
>>> I have managed to build it for myself using MinGW:
>>> http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe
>>>
>>> See if it will work for you
>>>
>> thanks for the installation file.
>> When i installed it, i got an error stating "The setup files are corrupt".
> 
> I downloaded and installed them. They work fine...

I'm on Vista (boohoo :(), what's your platform?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Thorsten Kampe
* Benedict Verheyen (Mon, 11 Jun 2007 11:23:59 +0200)
> Waldemar Osuch schreef:
> > I have managed to build it for myself using MinGW:
> > http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe
> > 
> > See if it will work for you
> > 
> thanks for the installation file.
> When i installed it, i got an error stating "The setup files are corrupt".

I downloaded and installed them. They work fine...
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Benedict Verheyen
Waldemar Osuch schreef:

> 
> I have managed to build it for myself using MinGW:
> http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe
> 
> See if it will work for you
> 
> Waldemar

Hi Waldemar,

thanks for the installation file.
When i installed it, i got an error stating "The setup files are corrupt".
Anyway, i would be interested in knowing how to build the setup.
The only experience i have so far with building stuff via MinGW was with 
a Qemu build.

Regards,
Benedict

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-09 Thread Michael Ströder
Waldemar Osuch wrote:
> On Jun 8, 6:36 am, Benedict Verheyen <[EMAIL PROTECTED]>
> wrote:
>> Hi,
>>
>> i found python-ldap for version Python 2.4.
>> Is there i place i can find a version for 2.5?
>>
>> If not, how can i build it myself for Windows?
>>
> 
> I have managed to build it for myself using MinGW:
> http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe

I'd appreciate if someone would provide Win32 builds of python-ldap on a
regular basis. Or at least a description what to do. I could add it to
python-ldap's web site.

Ciao, Michael.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-08 Thread Waldemar Osuch
On Jun 8, 6:36 am, Benedict Verheyen <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> i found python-ldap for version Python 2.4.
> Is there i place i can find a version for 2.5?
>
> If not, how can i build it myself for Windows?
>

I have managed to build it for myself using MinGW:
http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe

See if it will work for you

Waldemar


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap for Python 2.5 on Windows?

2007-06-08 Thread Michael Ströder
Benedict Verheyen wrote:
> 
> i found python-ldap for version Python 2.4.
> Is there i place i can find a version for 2.5?
> 
> If not, how can i build it myself for Windows?

Depending on what you need you might want to dive into OpenLDAP's FAQ:

http://www.openldap.org/faq/data/cache/300.html

There has been some discussion on the python-ldap-dev mailing list about
that. But there were no contributions coming out of that.

Ciao, Michael.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap and Python 2.5

2006-11-16 Thread Michael Ströder
Michael Ströder wrote:
> 
> But this seems to help (tested on my local system):
> http://sourceforge.net/tracker/index.php?func=detail&aid=1575329&group_id=2072&atid=102072

Released python-ldap 2.2.1 yesterday which contains this fix.

Ciao, Michael.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap/win32 or python/ldap/win32

2006-11-06 Thread Michael Ströder
rcmn wrote:
> i'm running around in circle trying to to use python/ldap/ on
> win32(WinXP).

Maybe this message sent to the python-ldap-dev mailing list helps.
You're welcome to follow up on this list.

Ciao, Michael.

 Original Message 
Subject: Experimental 2.2.0 Windows Build
Date: Mon, 4 Sep 2006 22:58:26 -0300
From: Sidnei da Silva <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]

Hello there,

I've managed to put together an experimental 2.2.0 build for Windows,
which can be found here:

  http://awkly.org/files/python-ldap-2.2.0.win32-py2.4.exe

I'm admittedly not an expert in compiling stuff, so if anyone with
more expertise can double-check what I've did:

  http://awkly.org/archive/compiling-python-extensions-on-mingw/


... specially the change from '-shared' to '-mdll -static' on the
arguments to 'ld', I would really *really* appreciate.

For the brave folks willing to try out the installer itself, you're at
your own risk, but please report back any issues.

If the build turns out to work fine and people are willing to bless
this as the official Windows build and upload it to sourceforge I
would be more than glad.

It was built with mingw against:

  openldap-2.2.29
  openssl-0.9.8b

-- 
Sidnei da Silva
-- 
http://mail.python.org/mailman/listinfo/python-list


Helpful replies (was Re: python-ldap)

2006-02-14 Thread Christos Georgiou
On Tue, 07 Feb 2006 12:36:11 -0500, rumours say that Steve Holden
<[EMAIL PROTECTED]> might have written:

>[EMAIL PROTECTED] wrote:
>> y0!
>>
>> 
>> 
>> tks!
 
>gOOgl3, man
>
>PS: We tend to speak English here :-)

Actually, we tend to speak whatever language the OP's experience suggests. 

I remember the other day, some Humphrey Bogart asked "Are there any waters
in Casablanca?" and some smart-_)_ replied "You know how to google, don't ya
honey?  You just put the little words together and... click search."

I ain't sure if Bogey eventually looked it up.
-- 
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap

2006-02-14 Thread Christos Georgiou
On 13 Feb 2006 11:11:05 -0800, rumours say that "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> might have written:

>hy...

>if you dont know how to help people here... dont say "google it".

I never said "google it".  I presume you mean this post as a reply to all
other posters in this thread, right?  And you can bet your tiny _)_ that
Steve Holden does know how to help people here, something that can be proven
if you google for previous posts of him.

>groups.google was made to help! not to say google it!

groups.google was made to *archive* newsgroups. By using groups.google, you
just participate in the larger community of Usenet.  Google that strange
term "usenet".  It's kind of public email.  You send to a "newsgroup", then
everybody in the world can see your message, and anybody can reply, and so
forth.

You'll see in one of the top hits (for "usenet") that Google sometime
acquired the Usenet Archive of Deja (Deja.com, DejaNews.com etc), which are
archives of newsgroups since before Google existed.  There is no company
"google.groups" full of professionals getting paid to answer your questions.

Think of groups.google as an agency that allows you to travel in the
dangerous world of Usenet.

>i really dont not what kind of professional you are to say "google it!"

Assuming you reply to Steve Holden; you have false logic.  Like I said,
nobody ever gets paid for replying to newsgroup posts, so professionalism
does not get involved in any sense.  Or have you sent any money to the PSF
[Python Software Foundation] asking for support?  If that is the case, I
fully apologize, and please don't read the rest of my post! ;)

>you are smart boy!

I used to be before I grew up.

>i think your mom has much pride of you!

Especially since she will shortly be a grand mother.

>google it to learn more than say "google it!"

Your writing style hints you are 14-15 yrs old, but you can also be some
non-native English speaker (as I am), even an IT professional (the topic of
LDAP does not concern the average adolescent :); in either case, perhaps you
might be able and not entirely bored to read more than a few pages:

http://www.catb.org/~esr/faqs/smart-questions.html

Let this be your guide in your travels in Usenet.  Show you did your
"homework" before asking others.

You see, imagine yourself after about 15-20 years of using computers and
discussing them with others (in private or on the internet), and new people
keep coming all the time asking the same questions that have been discussed,
answered and beaten to death dozens of times before.  Steve's using
computers for longer than that, and he bothered at least to tell you the
obvious step you didn't take: to google your question so you find the
previous related discussions.

You should thank him for offering his time, because his reply was helpful
even if you don't understand it; he directed you to the whereabouts of the
answer to your question.  Ask groups.google about

group:comp.lang.python ldap

and work your way from there.  When you come back here after you've grokked
the "Smart Questions" document, I (and Steve I am sure, and lots of others
who didn't bother to reply as Steve did) will be more than glad to help you
further your knowledge of Python.

Cheers, btaranto.
-- 
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap

2006-02-13 Thread [EMAIL PROTECTED]
hy...

if you dont know how to help people here... dont say "google it".

groups.google was made to help! not to say google it!

i really dont not what kind of professional you are to say "google it!"

you are smart boy!

i think your mom has much pride of you!

google it to learn more than say "google it!"

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap

2006-02-13 Thread Christos Georgiou
On 7 Feb 2006 10:02:23 -0800, rumours say that "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> might have written:

>_)_

On 7 Feb 2006 10:02:25 -0800, rumours say that "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> might have written:

>_)_

You can't beat Steve with a pair of arses, because Steve's hand is
physically higher than your arse (even considering a big age-gap between you
two).

If you said o0o, I'd call your bluff a zero and raise an eye (make that a
capital eye).  I also believe that I could fit a db in there (as thin as the
crack may be), but (o)(o) would be cozier as a receptacle.

Now, let us all smart_)_s peace off.

PS should anyone grab the chance and mix ethnic jokes based on my
nationality in a reply, I'll have to tell you that I have been offended by
professionals during my army service and you'll barely scratch my back :)
-- 
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap

2006-02-07 Thread Paul McGuire
"Steve Holden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
> > y0!
> > where can i get module of python-ldap to work with eclipse ide on
> > windows?
> >
> > tks!
> >
> gOOgl3, man
>
> PS: We tend to speak English here :-)
> -- 
> Steve Holden   +44 150 684 7255  +1 800 494 3119
> Holden Web LLC www.holdenweb.com
> PyCon TX 2006  www.python.org/pycon/
>

How non-l33t of us!

-- Paul


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap

2006-02-07 Thread [EMAIL PROTECTED]
_)_

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap

2006-02-07 Thread [EMAIL PROTECTED]
_)_

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python-ldap

2006-02-07 Thread Steve Holden
[EMAIL PROTECTED] wrote:
> y0!
> where can i get module of python-ldap to work with eclipse ide on
> windows?
> 
> tks!
> 
gOOgl3, man

PS: We tend to speak English here :-)
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006  www.python.org/pycon/

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python ldap pointers for a newbie - Actually just trying to decifer the error..

2005-07-18 Thread Michael Ströder
rh0dium wrote:
> 
> ldap_result_id = cnx.search_s(baseDN, searchScope, searchAttrs, retrieveAttrs)

You are already using the synchronous search method which indeed return
the search results.

So this should read:

result_data=cnx.search_s(baseDN,searchScope,searchAttrs,retrieveAttrs)

> result_type, result_data = cnx.result(ldap_result_id, 0)

You don't need this if you just want to use synchronous search method.

Ciao, Michael.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python LDAP Schema Pickle

2005-05-09 Thread hemanth
Why don't you check if ldaptor has implemented a similar functionality?
I got the following link while googling:


-- 
http://mail.python.org/mailman/listinfo/python-list