module ActiveSambaLdap::SambaGroupEntry::ClassMethods

Public Instance Methods

gid2rid(gid) click to toggle source
# File lib/active_samba_ldap/samba_group_entry.rb, line 69
def gid2rid(gid)
  gid = Integer(gid)
  if WELL_KNOWN_RIDS.include?(gid)
    gid
  else
    2 * gid + 1001
  end
end
rid2gid(rid) click to toggle source
# File lib/active_samba_ldap/samba_group_entry.rb, line 78
def rid2gid(rid)
  rid = Integer(rid)
  if WELL_KNOWN_RIDS.include?(rid)
    rid
  else
    (rid - 1001) / 2
  end
end
samba_object_classes() click to toggle source
# File lib/active_samba_ldap/samba_group_entry.rb, line 61
def samba_object_classes
  if samba4?
    ["group"]
  else
    ["sambaGroupMapping"]
  end
end
start_rid() click to toggle source
# File lib/active_samba_ldap/samba_group_entry.rb, line 87
def start_rid
  gid2rid(start_gid)
end