from source/rpc_server/srv_util.c in Samba
from source/include/rpc_misc.c in Samba
from librpc/ndr/security.h in Samba
from source/librpc/idl/lsa.idl in Samba
# File lib/active_samba_ldap/samba_group_entry.rb, line 101 def change_gid_number(gid, allow_non_unique=false) result = super return result unless samba_available? rid = self.class.gid2rid(gid_number) change_sid(rid, allow_non_unique) end
# File lib/active_samba_ldap/samba_group_entry.rb, line 108 def change_gid_number_by_rid(rid, allow_non_unique=false) assert_samba_available change_gid_number(self.class.rid2gid(rid), allow_non_unique) end
# File lib/active_samba_ldap/samba_group_entry.rb, line 113 def change_sid(rid, allow_non_unique=false) assert_samba_available if (LOCAL_ADMINS_RID..LOCAL_REPLICATORS_RID).include?(rid.to_i) sid = "#{SID_BUILTIN}-#{rid}" else sid = "#{self.class.configuration[:sid]}-#{rid}" end # check_unique_sid_number(sid) unless allow_non_unique self.samba_sid = sid end
# File lib/active_samba_ldap/samba_group_entry.rb, line 129 def change_type(type) assert_samba_available normalized_type = type.to_s.downcase if samba4? self.group_type = ActiveDirectory::GroupType.resolve(normalized_type) else if TYPES.has_key?(normalized_type) type = TYPES[normalized_type] elsif TYPES.values.include?(type.to_i) # pass else # TODO: add available values raise ArgumentError, _("invalid type: %s") % type end self.samba_group_type = type.to_s end end
# File lib/active_samba_ldap/samba_group_entry.rb, line 92 def fill_default_values(options={}) if samba_available? options = options.stringify_keys change_type(options["group_type"] || "domain") unless samba_group_type self.display_name ||= options["display_name"] || cn end super end
Generated with the Darkfish Rdoc Generator 2.