LDAP data structure

  • Follow


Hi,

I try to get read access to LDAP database, but I know only few column
names. How can I get entire list of them? Could anybody post a piece
of entire code, please?

Regards
Leonid
0
Reply lchanine (4) 2/23/2004 6:07:58 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2004-02-23, Leonid <lchanine@yahoo.co.uk> wrote:
>
> I try to get read access to LDAP database, but I know only few column
> names. How can I get entire list of them?

What have you tried, and what was the result?

OT: That's not how LDAP works; each entry can have many different
attributes, not all of which are required.

> Could anybody post a piece of entire code, please?

Post what you've done, learn more about LDAP (from somewhere else), and
ask more specific questions, and perhaps people will be able to help
more effectively.

perldoc Net::LDAP might be useful, too.

- --keith

- -- 
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAOlDahVcNCxZ5ID8RAnFlAJ9Rz5Y/NzVk+s3AFQVUnJxekKVsHgCgkSmH
TqKi3sSeZF1JSS831fJXFXc=
=4yU5
-----END PGP SIGNATURE-----
0
Reply Keith 2/23/2004 7:13:31 PM


On 23 Feb 2004, lchanine@yahoo.co.uk wrote:

> I try to get read access to LDAP database, but I know only few
> column names. How can I get entire list of them? Could anybody post
> a piece of entire code, please?

You can try the GQ application, if you are not comfortable with LDAP
yet.  It's available for Linux, and works very well.  It will show
you the available fields.

The Net::LDAP module has a schema() method you can use to retrieve
the LDAP server's schema, but it's really much easier to start with a
GUI like GQ.

Ted


0
Reply Ted 2/24/2004 4:44:10 PM

In article <4n65dwl95x.fsf@collins.bwh.harvard.edu>,
 Ted Zlatanov <tzz@lifelogs.com> wrote:

> On 23 Feb 2004, lchanine@yahoo.co.uk wrote:
> 
> > I try to get read access to LDAP database, but I know only few
> > column names. How can I get entire list of them? Could anybody post
> > a piece of entire code, please?

When searching the directory you don't necessarily need to know _any_ of 
the column names - it's a bit like doing 'SELECT *' in SQL rather than 
naming the columns explicitly.

Look in the Net::LDAP::Entry documentation at the 'attributes' method. 
Personally I've found Net::LDAP all that we need for pulling data from 
Active Directory via LDAP.

P

-- 
pkent 77 at yahoo dot, er... what's the last bit, oh yes, com
Remove the tea to reply
0
Reply pkent 2/25/2004 1:05:25 AM

3 Replies
64 Views

(page loaded in 0.089 seconds)

Similiar Articles:






7/23/2012 12:49:08 AM


Reply: