Code

cleaning up
[gosa.git] / sudo-ldap / src / class_sudoLdap.inc
1 <?php
2 /*!
3   \brief   sudoLdap plugin
4   \author  Guido Serra <gserra@guidoserra.it>
5   \version 1.00
6   \date    22.03.2008
8   This class provides the functionality to read and write all attributes
9   relevant for sudo-ldap from/to the LDAP.
10  */
12 class sudoLdap extends plugin
13 {
14   /* Definitions */
15   var $plHeadline= "sudo-ldap";
16   var $plDescription= "This does something";
18   /* Plugin specific values */
19  
20   var $attributes     = array(  "sudoUser", 
21                                                                 "sudoHost", 
22                                                                 "sudoCommand", 
23                                                                 "sudoRunAs", 
24                                                                 "sudoOption");
25   
26   var $objectclasses  = array("sudoRole");
27   
28   /* constructor, if 'dn' is set, the node loads the given
29      'dn' from LDAP */
30   function sudoLdap ($config, $dn= NULL, $parent= NULL)
31   {
32     /* Configuration is fine, allways */
33     $this->config= $config;
35     /* Load bases attributes */
36     plugin::plugin($config, $dn, $parent);
38     $ldap= $this->config->get_ldap_link();
39     
40   }
43   /* execute generates the html output for this node */
44   function execute($isCopyPaste = false)
45   {
46         /* Call parent execute */
47         plugin::execute();
48         $display= "";
50         $display = "execute()";
51         
52         return($display);
53   }
55 }
57 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
58 ?>