Revision 0c7af251
Added by Marc Dequènes about 15 years ago
- ID 0c7af251faf00610f537515c5f6f773a46f66c54
conf/ldap_shadows/test.conf | ||
---|---|---|
classes: ['bot']
|
||
sort_by: uid
|
||
presentation:
|
||
optional_classes: []
|
||
allowed_aspects: ['primary', 'mail', 'fs', 'shell', 'ftp', 'web', 'jabber']
|
||
hidden_attributes: ['uid']
|
||
expert_attributes: ['uidNumber', 'gidNumber', 'gecos']
|
||
... | ... | |
classes: ['individual']
|
||
sort_by: uid
|
||
presentation:
|
||
optional_classes: []
|
||
allowed_aspects: ['primary', 'mail', 'fs', 'shell', 'ftp', 'web', 'jabber']
|
||
hidden_attributes: ['uid']
|
||
expert_attributes: ['uidNumber', 'gidNumber', 'gecos']
|
||
... | ... | |
classes: ['posixGroup', 'groupOfMembers']
|
||
sort_by: cn
|
||
presentation:
|
||
optional_classes: []
|
||
allowed_aspects: []
|
||
hidden_attributes: ['uniqueMember']
|
||
expert_attributes: ['gidNumber']
|
lib/ldap_shadows/object.rb | ||
---|---|---|
end
|
||
|
||
def self.possible_attributes
|
||
klasses = self.required_classes
|
||
klasses += self.presentation[:optional_classes] if self.presentation.has_key?(:optional_classes)
|
||
self.objectclasses_attr_list(klasses)
|
||
self.objectclasses_attr_list(self.required_classes)
|
||
end
|
||
|
||
def self.possible_attributes_for_aspect(aspect)
|
Also available in: Unified diff
[-] cleanup: removed silly optional_classes support, as aspects handle this nicely