Skip to content

Commit 18699c9

Browse files
author
blackhedd
committed
comments and docs for Net::LDAP#Search_subschema_entry
1 parent 95d86ea commit 18699c9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
added to Net::LDAP#add, and eventually will be added to other methods.
3131
* Belatedly added a patch contributed by Kouhei Sutou last October.
3232
The patch adds start_tls support.
33+
* Added Net::LDAP#search_subschema_entry
3334

3435

3536
== Net::LDAP 0.0.4: August 15, 2006

lib/net/ldap.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,19 @@ def search_root_dse
10601060
# or an empty Entry is the server doesn't return the record. On success, the
10611061
# Net::LDAP::Entry returned from this call will have the attributes :dn,
10621062
# :objectclasses, and :attributetypes.
1063+
#
1064+
# ldap = Net::LDAP.new
1065+
# ldap.host = "your.ldap.host"
1066+
# ldap.auth "your-user-dn", "your-psw"
1067+
# subschema_entry = ldap.search_subschema_entry
1068+
#
1069+
# subschema_entry.attributetypes.each do |attrtype|
1070+
# # your code
1071+
# end
1072+
#
1073+
# subschema_entry.objectclasses.each do |attrtype|
1074+
# # your code
1075+
# end
10631076
#--
10641077
# cf. RFC4512 section 4.
10651078
# The :dn attribute in the returned Entry is the subschema name as returned from

0 commit comments

Comments
 (0)