Allow to configure main objectClass used for ppolicy objects
FD is hardcoded to use objectClass device to represent a password policy, but this should be configurable. On my side I use for example organizationalUnit.
I was able to change it with this simple patch on class_ppolicy.inc file:
< var $objectclasses = array('device', 'pwdPolicy'); --- > var $objectclasses = array('organizationalUnit', 'pwdPolicy'); 38c38,39 < 'icon' => 'geticon.php?context=applications&icon=ppolicy&size=16' --- > 'icon' => 'geticon.php?context=applications&icon=ppolicy&size=16', > 'mainAttr' => 'ou' 57c58 < 'cn', TRUE --- > 'ou', TRUE 181,182c182,183 < $this->attributesAccess['cn']->setDefaultValue($config->get_cfg_value('ppolicyDefaultCn', 'default')); < $this->attributesAccess['cn']->resetToDefault(); --- > $this->attributesAccess['ou']->setDefaultValue($config->get_cfg_value('ppolicyDefaultCn', 'default')); > $this->attributesAccess['ou']->resetToDefault();
But we need to add new configuration items:
- main objectClass name
- main attribute
(from redmine: issue id 5024, created on 2016-07-21)
- Custom Fields:
- Bug in version: 1.0.14
- Support contract: None