I think it will be usefull to add this features to
LDAP::Schema
# RGE PATCH : Return the list of attributes
# alias for an attribut in schema
#
def alias(at)
self['attributeTypes'].each{|s|
if( s =~ /NAME\s+\((.*'#{at}'.*)\).*DESC.*$/ )
return $1.tr("'",'').split(' ')
end
}
return nil
end
The regexp is not so cute, but it's just to explain the
feature
LDAP::Schema.names(key) cannot get this information and
the list of attributeTypes is limited, because of a too
restrictive regexp
(don't see some stupids parenthesis ;) )