Module: ActiveSambaLdap::SambaGroupEntry::ClassMethods
- Defined in:
- lib/active_samba_ldap/samba_group_entry.rb
Instance Method Summary collapse
Instance Method Details
#gid2rid(gid) ⇒ Object
65 66 67 68 69 70 71 72 |
# File 'lib/active_samba_ldap/samba_group_entry.rb', line 65 def gid2rid(gid) gid = Integer(gid) if WELL_KNOWN_RIDS.include?(gid) gid else 2 * gid + 1001 end end |
#rid2gid(rid) ⇒ Object
74 75 76 77 78 79 80 81 |
# File 'lib/active_samba_ldap/samba_group_entry.rb', line 74 def rid2gid(rid) rid = Integer(rid) if WELL_KNOWN_RIDS.include?(rid) rid else (rid - 1001) / 2 end end |
#samba_object_class ⇒ Object
61 62 63 |
# File 'lib/active_samba_ldap/samba_group_entry.rb', line 61 def samba_object_class "sambaGroupMapping" end |
#start_rid ⇒ Object
83 84 85 |
# File 'lib/active_samba_ldap/samba_group_entry.rb', line 83 def start_rid gid2rid(start_gid) end |