From: Graham B. <gb...@po...> - 2000-07-31 08:13:28
|
On Thu, Jul 27, 2000 at 09:33:18PM -0500, Mark Wilcox wrote: > What's listed here needs to be split into 2 objects. > > To test for connectity, it could be Net::LDAP::isUp($ldap,[callback => > \&callback]). by default it could try with anonymous bind. $ldap is an open > Net::LDAP connection. callback is an user defined function to determine LDAP > connection status. I think I would like to keep it called `ping' > As for things like what supported version,SASL,controls, etc. This all should > be in the server's root DSE (assuming it's LDAP 3, but an LDAP 2 server can't > give you this info). > > Thus we could have an object like Net::LDAP::DSE. > > You could get it by calling: > my $dse = $ldap->get_dse(); > > this could have methods like this: > $dse->version() #returns version > $dse->sasl() #returns an array of SASL elements > $dse->schema() #returns an array of names of schema entries > $dse->controls() #returns array of OIDS of supported controls > $dse->contexts() #return an array of contexts on the server > $dse->get("dse attribute") #returns an array of elements that for the attribute > passed to get I like this idea. And as root_dse already returns an entry and Net::LDAP::DSE could just be a subclass of Net::LDAP::Entry it would also be backwards compatable. Graham. |