#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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks