From 18699c9ac24b26a68c4f811a81ec53f89d9ebefb Mon Sep 17 00:00:00 2001 From: blackhedd Date: Wed, 2 May 2007 10:15:15 +0000 Subject: [PATCH] comments and docs for Net::LDAP#Search_subschema_entry --- ChangeLog | 1 + lib/net/ldap.rb | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index bdc0168..81f175c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,7 @@ added to Net::LDAP#add, and eventually will be added to other methods. * Belatedly added a patch contributed by Kouhei Sutou last October. The patch adds start_tls support. +* Added Net::LDAP#search_subschema_entry == Net::LDAP 0.0.4: August 15, 2006 diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index fd712c3..ac31f05 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -1060,6 +1060,19 @@ module Net # or an empty Entry is the server doesn't return the record. On success, the # Net::LDAP::Entry returned from this call will have the attributes :dn, # :objectclasses, and :attributetypes. + # + # ldap = Net::LDAP.new + # ldap.host = "your.ldap.host" + # ldap.auth "your-user-dn", "your-psw" + # subschema_entry = ldap.search_subschema_entry + # + # subschema_entry.attributetypes.each do |attrtype| + # # your code + # end + # + # subschema_entry.objectclasses.each do |attrtype| + # # your code + # end #-- # cf. RFC4512 section 4. # The :dn attribute in the returned Entry is the subschema name as returned from