Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-plugins fusiondirectory-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectory
  • fusiondirectory-pluginsfusiondirectory-plugins
  • Issues
  • #5024

Closed
Open
Created Jul 21, 2016 by coudot@coudotReporter

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
Assignee
Assign to
Time tracking