Your assumption is not completely correct.
The wiki has just been updated with the custom_attrs parameter. This
parameter will make PLA treat an "Internal Attribute" as a "Regular
Attribute", so that it is editable, etc.
However, in the template engine (for XML templates), it will still do
some validation when enabling values to be edited/created, in that an
entry must have an object class that includes this attribute as MUST or
MAY. (This validation was implemented to avoid the bug submissions
associated with user errors creating invalid templates, and thus getting
LDAP errors when trying to create/update entries).
Since internal attributes are not normally associated with an
ObjectClass, it will automatically remove them. You should however, be
able to update this entry using the default template (which may not be
what you want...?)
On review, it is an easy fix, to enable the template engine to accept
these attributes - if you are using PLA 1.2.0.5, edit lib/Template.php,
on line 1328 change the if test to
|if (! in_array($attribute->getName(),$allattrs) && (!
array_intersect($attribute->getAliases(),$allattrs))
| && (!
in_array_ignore_case('extensibleobject',$this->getObjectClasses()))
| && (!
in_array_ignore_case($attribute->getName(),$server->getValue('server','custom_attrs'))))
{
(thereby adding the "&& (!
in_array_ignore_case($attribute->getName(),$server->getValue('server','custom_attrs'))"
test...
Let me know if it works, and I'll commit it to GIT.
...deon
FutureCIS wrote:
> And I have the following line in my config:
> $servers->setValue('server','custom_attrs',array('nsRoleDN','nsRole','nsAccountLock'));
>
>
> The problem is, every time I try to use the template to edit a user, I get
> the following message:
> "Automatically removed attribute from template
> Modify User Account: nsAccountLock removed from template as it is not
> defined by an ObjectClass"
>
> As far as I know, the line in the config file is supposed to override this
> error message and allow me to edit this attribute. Can anyone offer some
> input on this?
>
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
phpldapadmin-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpldapadmin-users