Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Linux, Python 2.5.2, serverless binding LDAP?

Reply
Thread Tools

Linux, Python 2.5.2, serverless binding LDAP?

 
 
Kevin Cole
Guest
Posts: n/a
 
      11-13-2009
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 With Quote
 
 
 
 
alex23
Guest
Posts: n/a
 
      11-13-2009
On Nov 13, 10:47*am, Kevin Cole <dc.l...@gmail.com> wrote:
> 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.


http://www.python-ldap.org/doc/html/...l.html#example
 
Reply With Quote
 
 
 
 
Kevin Cole
Guest
Posts: n/a
 
      11-13-2009
On Nov 12, 8:01*pm, alex23 <wuwe...@gmail.com> wrote:
> On Nov 13, 10:47*am, Kevin Cole <dc.l...@gmail.com> wrote:
>
>
>
> > 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.

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


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

Thanks.
 
Reply With Quote
 
Kevin Cole
Guest
Posts: n/a
 
      11-13-2009
On Nov 12, 8:01*pm, alex23 <wuwe...@gmail.com> wrote:
> On Nov 13, 10:47*am, Kevin Cole <dc.l...@gmail.com> wrote:
>
>
>
> > 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.

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


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.domainort. Yes?
 
Reply With Quote
 
Michael Ströder
Guest
Posts: n/a
 
      11-13-2009
Kevin Cole wrote:
> On Nov 12, 8:01 pm, alex23 <wuwe...@gmail.com> wrote:
>> On Nov 13, 10:47 am, Kevin Cole <dc.l...@gmail.com> wrote:
>>> 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.

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

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


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/web2lda...ett,dc=no??one

Ciao, Michael.

--
Michael Ströder
E-Mail:
http://www.stroeder.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView binding - how to stop initial binding Amit ASP .Net 6 10-24-2006 08:06 AM
pywin32 COM sort in Excel (late binding fails, early binding works) (+py2exe) kogrover@gmail.com Python 2 10-20-2006 04:08 PM
Creating a "serverless" app... Rlrcstr ASP .Net 2 06-09-2005 11:44 PM
Complex data binding question, binding child objects of a custom collection. JcFx ASP .Net Datagrid Control 0 06-01-2005 04:01 PM
Data Binding - using inline code vs. functions vs. straight binding Jordan ASP .Net 2 02-10-2004 08:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57