| Author |
how to get server name/type/version?
|
|
| Peter2 2007-03-22, 7:11 pm |
| hi all,
is it possible to get the name/type/version of an LDAP server in PERL?
if so, what is the call I'm looking for?
also, i'm curious to see if i can have a telnet-based interactive
session with an LDAP server - just like you can do with an SMTP
server. is that even possible?
thanks.
| |
| Chris Ridd 2007-03-22, 7:11 pm |
| On 22/3/07 4:57, "Peter2" <psmithsf@gmail.com> wrote:
> hi all,
>
> is it possible to get the name/type/version of an LDAP server in PERL?
There's no guaranteed way to get this information. If you're fortunate, the
server will support RFC 3045, which adds some attributes containing this
information in the root DSE.
> if so, what is the call I'm looking for?
We need to add the RFC 3045 attributes to the ones that we retrieve in
Net::LDAP->root_dse... (Just committed that change to svn.)
But until we ship something with that change in, just do something like this
(untested):
$root = $ldap->root_dse(qw(vendorName vendorVersion));
$vendorName = $root->get_value('vendorName');
$vendorVersion = $root->get_value('vendorVersion');
> also, i'm curious to see if i can have a telnet-based interactive
> session with an LDAP server - just like you can do with an SMTP
> server. is that even possible?
Yes, but since LDAP is a binary protocol and SMTP is not, it would be quite
difficult to do. Consider it a challenge :-)
Cheers,
Chris
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|