Hello,

some of my custom templates does not display in the template list.

I can't figure out why.

The disturbing thing is that they used to display, but don't display
anymore after a clean reinstall; I still have other hosts with
phpldapadmin displaying the exact same templates).

It seems to be templates with special objectclasses.

Below you'll find an example.

In this example, if I change:

<objectClasses>
 <objectClass id="top"></objectClass>
 <objectClass id="sudoRole"></objectClass>
</objectClasses>

with, let's say::

<objectClasses>
 <objectClass id="top"></objectClass>
 <objectClass id="container"></objectClass>
 <objectClass id="sudoRole"></objectClass>
</objectClasses>

The template appears again in the list (but does not permit to edit
the attributes in my list for SudoRole, just the cn of my container object
class)

Here 'container' is just:
objectclass (
     1.2.840.113556.1.3.23
     NAME 'container'
     SUP top
     STRUCTURAL
     MUST ( cn )
 )


My questions are:
- how can I check if a template is valid ?
- how can I check what saddens phpldapadmin with the template ?
- is there a validation of the objectclasses by phpldapadmin for the
templates ? If yes, where do I provide phpldapadmin with the custom
schemas ?
- anyway, any clues about the template not displaying ?

Thanks in advance.

Louis

One of the templates:


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>DKT Sudo Role</title>
<icon>images/lock.png</icon>
<description>New sudo role for a group of machines</description>
<askcontainer>1</askcontainer>
<rdn>cn</rdn>
<visible>1</visible>

<objectClasses>
  <objectClass id="top"></objectClass>
  <objectClass id="sudoRole"></objectClass>
</objectClasses>

<attributes>
<attribute id="cn">
  <description>Common name for which the entity is known by</description>
  <display>Rule Name</display>
  <order>1</order>
  <page>1</page>
</attribute>

<attribute id="sudoCommand">
  <description>Commands to be executed by sudo</description>
  <display>sudo command(s) (i.e. /path/to/cmd1,/path/to/cmd2)</display>
  <hint>Examples: ALL,/bin/su</hint>
  <order>2</order>
  <page>1</page>
</attribute>

<attribute id="sudoHost">
  <description>Host or NIS netgroup concerned (a + sign must precede the group
  name)</description>
  <display>sudo host(s) (i.e. +a_nis_netgroup)</display>
  <order>3</order>
  <page>1</page>
</attribute>

<attribute id="sudoOption">
  <description>Options(s) followed by sudo</description>
  <display>sudo option(s)</display>
  <option>!authenticate</option>
  <order>4</order>
  <page>1</page>
</attribute>

<attribute id="sudoUser">
  <description>User(s) who may run sudo (a % sign must precede a
group name)</description>
  <display>sudo user(s) or group(s) (i.e. %a_group)</display>
  <order>5</order>
  <page>1</page>
</attribute>

</attributes>

</template>

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
phpldapadmin-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpldapadmin-users

Reply via email to