Sha256: 2c565a6d4e23432565f9773f7cbe5a2546d53bf5309cc60bdc959b8cd1648008
Contents?: true
Size: 1.18 KB
Versions: 6
Compression:
Stored size: 1.18 KB
Contents
#-- license # # Based on original code by Justin Mecham and James Hunt # at http://rubyforge.org/projects/activedirectory # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # #++ license module ActiveDirectory module FieldType class GroupDnArray # # Encodes an array of objects into a list of dns # def self.encode(obj_array) obj_array.collect(&:dn) end # # Decodes a list of DNs into the objects that they are # def self.decode(dn_array) # How to do user or group? Group.find(:all, distinguishedname: dn_array) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems