Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Net::LDAP help with distinguished name

by Discreet Entity (Initiate)
on Feb 03, 2012 at 22:19 UTC ( [id://951721]=note: print w/replies, xml ) Need Help??


in reply to Re: Net::LDAP help with distinguished name
in thread Net::LDAP help with distinguished name

Sorry that doesn't help. That's a search which is specifically what I don't need. I just need to connect to the object using the distinguished name.

I can't believe this is hard. It's so basic. I must be missing something.

Anyone??

  • Comment on Re^2: Net::LDAP help with distinguished name

Replies are listed 'Best First'.
Re^3: Net::LDAP help with distinguished name
by Anonymous Monk on Feb 04, 2012 at 00:22 UTC

    I can't believe this is hard. It's so basic. I must be missing something.

    Yes, password is used all over the documentation

      Was what you posted supposed to be helpful? I'm not talking about binding to the directory. I'm talking about getting a single entry object based on a dn.

      Seriously, I posted here because I thought I would find people who would help. Posting vague comments is not helpful.

        Although you complain that the responses are vague, they are not. The API exposed by Net::LDAP is pretty much a Perl equivalent to the OpenLDAP C API. As such, if you want to be able to get the information for a single entry, you need to go through the bind and search steps

        The bind can be anonymous, if you LDAP server allows it and allows retrieval of the object whose DN you already have. If not, then you need to bind with that DN and provide the password associated with it. Once you do the bind, you can do a search for the DN. Once you have the search, you have the attributes and values associated with it.

        Even if you do a non-anonymous bind, what returns in Net::LDAP is a connection variable, not a hash or array of information on the entity that made the connection

        Your experience with Windows and Visual Basic has led you to believe that there is some magical way to say, "I have this DN, give me the attributes associated with it". Although the API you were using made this easy, behind the scenes what was happening is what you have to do more explicitly if you were using, say, C, Perl, or something else

        Was what you posted supposed to be helpful? ...

        Absolutely. I don't see what is hard or vague about grepping the documentation, and copy and pasting the bits you need, even if its verbose, because the api provided is verbose

        Seriously, I posted here because I thought I would find people who would help.

        Well, if the responses so far haven't been helpful, what would you consider helpful?

        Posting vague comments is not helpful.

        So is complaining about them :) but FWIW, I posted a link to examples you could (eventually) copy/paste

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://951721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2024-04-18 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found