lib/whimsy/asf/ldap.rb in whimsy-asf-0.0.44 vs lib/whimsy/asf/ldap.rb in whimsy-asf-0.0.45
- old
+ new
@@ -202,10 +202,11 @@
def groups
Group.list("memberUid=#{name}")
end
def dn
- attrs['dn']
+ value = attrs['dn']
+ value.first if Array === value
end
def method_missing(name, *args)
if name.to_s.end_with? '=' and args.length == 1
return modify(name.to_s[0..-2], args)