Class: LDAP::Conn
- Inherits:
-
Object
- Object
- LDAP::Conn
- Defined in:
- lib/activeldap/schema2.rb
Overview
Schema2
Instance Method Summary collapse
Instance Method Details
#schema(base = nil, attrs = nil, sec = 0, usec = 0) ⇒ Object
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/activeldap/schema2.rb', line 193 def schema(base = nil, attrs = nil, sec = 0, usec = 0) attrs ||= [ 'objectClasses', 'attributeTypes', 'matchingRules', 'matchingRuleUse', 'dITStructureRules', 'dITContentRules', 'nameForms', 'ldapSyntaxes', ] base ||= root_dse(['subschemaSubentry'], sec, usec)[0]['subschemaSubentry'][0] base ||= 'cn=schema' ent = search2(base, LDAP_SCOPE_BASE, '(objectClass=subschema)', attrs, false, sec, usec) return Schema2.new(ent[0]) end |