Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Linux, Python 2.5.2, serverless binding LDAP?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kevin Cole  
View profile  
 More options Nov 12, 7:47 pm
Newsgroups: comp.lang.python
From: Kevin Cole <dc.l...@gmail.com>
Date: Thu, 12 Nov 2009 16:47:36 -0800 (PST)
Local: Thurs, Nov 12 2009 7:47 pm
Subject: Linux, Python 2.5.2, serverless binding LDAP?
Hi,

I recently asked our IT department how to gain access to an
addressbook.  After carefully explaining that I was on a Linux system
using Python, I got the reply:

"You should use our LDAP. With LDAP you can pull any data you want
from Active Directory. On our network, the serverless binding address
for our LDAP is ldap://dc=...,dc=...,dc=...,dc=..."

with the actual "..." filled in.

I don't know squat about LDAP, but installed the python-ldap deb, and
started glancing at the documentation on-line. I didn't see anything
obvious for working with the URI above.  Can I work w/ it?  If so, a
short example, please?

Thanx.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
alex23  
View profile  
 More options Nov 12, 8:01 pm
Newsgroups: comp.lang.python
From: alex23 <wuwe...@gmail.com>
Date: Thu, 12 Nov 2009 17:01:47 -0800 (PST)
Local: Thurs, Nov 12 2009 8:01 pm
Subject: Re: Linux, Python 2.5.2, serverless binding LDAP?
On Nov 13, 10:47 am, Kevin Cole <dc.l...@gmail.com> wrote:

http://www.python-ldap.org/doc/html/ldapurl.html#example

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Cole  
View profile  
 More options Nov 12, 8:27 pm
Newsgroups: comp.lang.python
From: Kevin Cole <dc.l...@gmail.com>
Date: Thu, 12 Nov 2009 17:27:03 -0800 (PST)
Local: Thurs, Nov 12 2009 8:27 pm
Subject: Re: Linux, Python 2.5.2, serverless binding LDAP?
On Nov 12, 8:01 pm, alex23 <wuwe...@gmail.com> wrote:

Ah, it wasn't clear to me that "localhost:1389" meant serverless.
Armed with that, I'm off to experiment.

Thanks.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Cole  
View profile  
 More options Nov 12, 8:39 pm
Newsgroups: comp.lang.python
From: Kevin Cole <dc.l...@gmail.com>
Date: Thu, 12 Nov 2009 17:39:55 -0800 (PST)
Local: Thurs, Nov 12 2009 8:39 pm
Subject: Re: Linux, Python 2.5.2, serverless binding LDAP?
On Nov 12, 8:01 pm, alex23 <wuwe...@gmail.com> wrote:

On second thought... That didn't help at all.  The example just shows
how to parse a URI.  I'm trying to connect to a service (if I
understand correctly) that is NOT on my Linux box, but somewhere out
in our IT department's ether, and I do not have host/domain to work
with.  I interpreted "serverless binding" to mean that I was
connecting by some means other than host.domain:port.  Yes?

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Ströder  
View profile  
 More options Nov 13, 5:04 am
Newsgroups: comp.lang.python
From: Michael Ströder <mich...@stroeder.com>
Date: Fri, 13 Nov 2009 11:04:57 +0100
Local: Fri, Nov 13 2009 5:04 am
Subject: Re: Linux, Python 2.5.2, serverless binding LDAP?

localhost:1389 means localhost on port 1389. It has nothing to do with
server-less bind.

Server-less bind is based on a DNS lookup: Let's say you want to query the DNS
server for returning the LDAP server(s) for naming context dc=uninett,dc=no
then invoke on the command-line:

$ host -t srv _ldap._tcp.uninett.no.
_ldap._tcp.uninett.no has SRV record 0 0 389 ldap.uninett.no.

That is also heavily used with MS AD.

Off course you can do this SRV lookup with http://pydns.sf.net which is
actually done in my LDAP client http://web2ldap.de:

http://demo.web2ldap.de:1760/web2ldap?ldap:///dc=uninett,dc=no??one

Ciao, Michael.

--
Michael Ströder
E-Mail: mich...@stroeder.com
http://www.stroeder.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google