Skip to content
Browse files

comments and docs for Net::LDAP#Search_subschema_entry

  • Loading branch information...
1 parent 95d86ea commit 18699c9ac24b26a68c4f811a81ec53f89d9ebefb blackhedd committed May 2, 2007
Showing with 14 additions and 0 deletions.
  1. +1 −0 ChangeLog
  2. +13 −0 lib/net/ldap.rb
View
1 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
View
13 lib/net/ldap.rb
@@ -1060,6 +1060,19 @@ def search_root_dse
# 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

0 comments on commit 18699c9

Please sign in to comment.
Something went wrong with that request. Please try again.