Menu

#1 LDAP::SCHEMA adds

open
nobody
5
2006-09-05
2006-09-05
No

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 ;) )

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.