summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9503386)
raw | patch | inline | side by side (parent: 9503386)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Apr 2008 10:08:26 +0000 (10:08 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Apr 2008 10:08:26 +0000 (10:08 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10109 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/sudo/class_sudoManagement.inc | patch | blob | history | |
gosa-core/plugins/admin/sudo/remove.tpl | patch | blob | history |
diff --git a/gosa-core/plugins/admin/sudo/class_sudoManagement.inc b/gosa-core/plugins/admin/sudo/class_sudoManagement.inc
index 236ee4f7a0b7c13e5c33a2b98b6970b317ab31c0..e9757df05088d105f2621ff78bb24253ba44a36a 100644 (file)
var $DivListSudo = NULL;
var $base = "";
+ var $sudotabs = NULL;
+
function sudoManagement (&$config, &$ui)
{
/* Save configuration for internal use */
$this->ui = &$ui;
$this->base = get_ou("sudoou");
- echo "base checks, maybe it is not set, or it do not exists";;
+ if(empty($this->base)){
+ //FIXME Optimize this message, maybe with msgPool
+ msg_dialog::display(_("Configuration"),sprintf(_("The sudo object path is not configured.")));
+ }
/* Create dialog object */
$this->DivListSudo = new divListSudo($this->config,$this);
********************/
/* User wants to edit data? */
- if (($s_action=="edit") && !is_object($this->sudotabs)){
+ if (($s_action=="edit_role") && !is_object($this->sudotabs)){
/* Get 'dn' from posted 'uid', must be unique */
$this->dn= $this->list[trim($s_entry)]['dn'];
********************/
/* Remove sudo was requested */
- if ($s_action=="del"){
+ if ($s_action=="del_role"){
/* Get 'dn' from posted 'uid' */
$this->dn= $this->list[trim($s_entry)]['dn'];
********************/
$values = array("cn","description","sudoUser","sudoCommand","sudoOption");
$ff = "(&(|(cn=".$Regex.")(description=".$Regex."))(sudoUser=".$UserRegex.")(objectClass=sudoRole))";
- $res = get_list($ff, "sudo",$base,$values, GL_SUBSEARCH);
+ $res = get_list($ff, "sudo",$base,$values, GL_SIZELIMIT);
$tmp = array();
foreach($res as $attrs){
$tmp[$attrs['cn'][0]] = $attrs;
index c4405a19e9427c9c7569b49b3bf3264f432dbd4d..80b656b49c2000ba352a5c9b3d22d5deea666909 100644 (file)
</div>
<p>
{$info}
- {t}This may be a primary user group. Please double check if you really want to do this since there is no way for GOsa to get your data back.{/t}
</p>
<p>
<p class="plugbottom">
{if $multiple}
- <input type=submit name="delete_multiple_groups_confirm" value="{msgPool type=delButton}">
+ <input type=submit name="delete_multiple_sodus_confirm" value="{msgPool type=delButton}">
- <input type=submit name="delete_multiple_group_cancel" value="{msgPool type=cancelButton}">
+ <input type=submit name="delete_multiple_sodu_cancel" value="{msgPool type=cancelButton}">
{else}
- <input type=submit name="delete_group_confirm" value="{msgPool type=delButton}">
+ <input type=submit name="delete_sodu_confirm" value="{msgPool type=delButton}">
<input type=submit name="delete_cancel" value="{msgPool type=cancelButton}">
{/if}