Code

gosa.git
13 years agoCorrectly display and save PPDs when an option is not translated. (TRAC #5063)
lhm-gosa [Tue, 31 Aug 2010 08:29:44 +0000 (08:29 +0000)]
Correctly display and save PPDs when an option is not translated. (TRAC #5063)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19498 594d385d-05f5-0310-b6e9-bd551577e9d8

13 years agoApply follow-up patch for 1797 from mba
psc [Tue, 29 Jun 2010 15:12:18 +0000 (15:12 +0000)]
Apply follow-up patch for 1797 from mba

Avoid repeating LDAP queries on every log request

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18874 594d385d-05f5-0310-b6e9-bd551577e9d8

13 years agoApply patch for 1797 from mba
psc [Tue, 29 Jun 2010 13:06:24 +0000 (13:06 +0000)]
Apply patch for 1797 from mba

In the logging function pay respect to the gosa unittags
by filtering the servers on the fly and removing servers
if they don't match the unittag (to avoid another LDAP
query the next time)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18863 594d385d-05f5-0310-b6e9-bd551577e9d8

13 years agoApply patch from mba for #4170
psc [Fri, 21 May 2010 12:23:56 +0000 (12:23 +0000)]
Apply patch from mba for #4170

For the removal of debconf configuration use the
prepare_to_save_FAI_object (which respects CoW) and
fix some bugs that would have prevented its usage.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18612 594d385d-05f5-0310-b6e9-bd551577e9d8

13 years agoApply patch from mba for #4146
psc [Thu, 20 May 2010 08:31:16 +0000 (08:31 +0000)]
Apply patch from mba for #4146

- Never set InheritXYSync for new objects
- Never disable display properties in object groups

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18566 594d385d-05f5-0310-b6e9-bd551577e9d8

13 years agoFix an translation error
psc [Thu, 6 May 2010 08:17:13 +0000 (08:17 +0000)]
Fix an translation error

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18156 594d385d-05f5-0310-b6e9-bd551577e9d8

13 years agoFollowup commit for #4146
psc [Wed, 5 May 2010 10:50:27 +0000 (10:50 +0000)]
Followup commit for #4146

Fix problem that in some cases wrong error messages
are printed.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18146 594d385d-05f5-0310-b6e9-bd551577e9d8

13 years agoBugfix for #4721
psc [Tue, 4 May 2010 09:56:29 +0000 (09:56 +0000)]
Bugfix for #4721

Before creating multiple events filter duplicates.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18032 594d385d-05f5-0310-b6e9-bd551577e9d8

13 years agoFix regression in #4271
psc [Tue, 4 May 2010 09:27:03 +0000 (09:27 +0000)]
Fix regression in #4271

Fix a missing offset PHP error, because the mac-address
index was wrong.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18028 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoBugfix for #4271
psc [Fri, 30 Apr 2010 10:33:42 +0000 (10:33 +0000)]
Bugfix for #4271

When deleting events from the deployment status show the
system name in parentheses (if available)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17990 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4271
psc [Thu, 29 Apr 2010 11:48:32 +0000 (11:48 +0000)]
Apply fix for #4271

When adding targets for event generation store mac, name and
object group membership to the structure and use it, to display
it in the event target listing.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17931 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4070
psc [Thu, 29 Apr 2010 11:32:21 +0000 (11:32 +0000)]
Apply fix for #4070

When server connection fails while trying to send a message
use post to schedule the register_at_gosa_si_server event
in the proper session, otherwise failover will not work
properly under some circumstances.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17930 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply bugfix for #3285
psc [Thu, 29 Apr 2010 09:03:23 +0000 (09:03 +0000)]
Apply bugfix for #3285

Re-add a else clause that went missing and caused
repositories to be undeletable again.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17926 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #2994
psc [Thu, 29 Apr 2010 08:54:36 +0000 (08:54 +0000)]
Apply fix for #2994

Do not check if gosaApplicationFlags changed as it appears
to be not neccessary and causes bugs

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17925 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4271
psc [Tue, 27 Apr 2010 13:53:30 +0000 (13:53 +0000)]
Apply fix for #4271

- Move code for saving events to a static function in the DaemonEvent
  class so it can be called from different places in the code without
  making it redundant. Use this new function in gotomasses and the
  system plugin so that both places can benefit from the new time offset
  feature.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17888 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4271
psc [Tue, 27 Apr 2010 13:50:58 +0000 (13:50 +0000)]
Apply fix for #4271

Increase minute range to 120 and pc range to 100

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17887 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4146
psc [Tue, 27 Apr 2010 09:23:37 +0000 (09:23 +0000)]
Apply fix for #4146

- When saving object groups allow empty values for HSync/VSync
  if both values are empty. As a result those attributes won't
  be stored in the object group for the object.
- Add a checkbox to allow decision weither to inherit display
  attributes from the object group or not
- Allow inheritance of display attributes from the object group
- Move autosync check to a different place so that it also works
  for inheritted values.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17874 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4170
psc [Tue, 27 Apr 2010 09:17:04 +0000 (09:17 +0000)]
Apply fix for #4170

Fix syntax error in htmlentities() call that caused
a PHP error in some cases.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17873 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #2994
psc [Thu, 1 Apr 2010 12:28:43 +0000 (12:28 +0000)]
Followup commit for #2994

When extracting (key, value) tuples for application parameters
from either an application or a meno groups use a limit in the
split/explode command, so that only the first
double-colon is actually used to split the string. Fixes a bug
where strings containing double-colons get truncated.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17458 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #774
psc [Thu, 1 Apr 2010 12:20:10 +0000 (12:20 +0000)]
Followup commit for #774

- Make check for a dash at the beginning of a classname
  trigger on all class types, not only FAIScript
- Add a check to the check() function of every class type
  so that the check for a dash in the beginning of a class
  name or spaces is also checked on save.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17457 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #3716
psc [Thu, 1 Apr 2010 07:46:55 +0000 (07:46 +0000)]
Followup commit for #3716

In FAI::get_all_objects_for_a_given_base change the regex
to determine if a given object is in removed state from
'/removed$/' to '/removed/'. This makes it possible to determine
the removed state on packages with the state "|removed|freeze".

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17449 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #144
psc [Thu, 1 Apr 2010 07:45:05 +0000 (07:45 +0000)]
Followup commit for #144

- When subsearch is enabled we missed to retreive the FAIclass attribute
  from LDAP for servers. Therefore the class filter and the release filter
  threated every server as one which does not have classes and/or a
  release defined
- When either a MAC-adress filter or an ip range filter is enabled,
  do not show object groups.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17448 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #2000
psc [Mon, 29 Mar 2010 10:34:38 +0000 (10:34 +0000)]
Followup commit for #2000

When creating a printer via a workstation use a different
formular name for the printer description, otherwise the
description conflicts with the workstation description.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17346 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #4271
psc [Mon, 29 Mar 2010 10:14:45 +0000 (10:14 +0000)]
Followup commit for #4271

- Do not try to create multiple events when concurrent
  operations is 0. This also fixes a maximum execution bug,
  because the multi-event logic can not really handle that
  case.
- Some changes to the templates:
  - Add a heading for the extended options
  - Show extended options in two rows
  - Change time offset text
- Use drop down boxes for selection of the multi-event options to
  avoid errornous input

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17345 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFix: Close all table tags
lhm-gosa [Wed, 17 Mar 2010 17:48:25 +0000 (17:48 +0000)]
Fix: Close all table tags

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16905 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4170
psc [Wed, 17 Mar 2010 15:24:42 +0000 (15:24 +0000)]
Apply fix for #4170

- Some changes to the debconf dialog:
  - Seperate HTML from the code which is used for rendering of each entry.
    This way formatting changes do not need to be done on every entry.
  - Add a checkbox in front of each entry to allow the user to control,
    which entry is updated in the LDAP and which not.
- Some changes to the debconf overview:
  - Add a new save button that is shown for values with defaults if
    they are currently saved to LDAP and an action for the blank button.
    This way the user can control weither a default value is saved to
    LDAP explicit or not.
- Some optimizations in data exchange between debconf overview
  and debconf dialog

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16793 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoImplement a debconf configuration overview (Trac #2025)
psc [Tue, 16 Mar 2010 10:28:57 +0000 (10:28 +0000)]
Implement a debconf configuration overview (Trac #2025)

- When editting a package list enable the user to
click 'Edit configurations' and get an overview of
and edit all debconf configurations in the given package list.
- Add the possibility to add debconf settings for settings
which are not known to gosa-si.
- Add some safety measures to the debconfTemplate class
to avoid breaking values because of quotes etc.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16619 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years ago* Fix inheritance of kernel cmdline
lhm-gosa [Fri, 12 Mar 2010 14:17:59 +0000 (14:17 +0000)]
* Fix inheritance of kernel cmdline
  + Drop unused bootmode code
  + Drop legacy "base64 ldap server on cmdline" code

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16492 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFix for #4070
psc [Wed, 10 Mar 2010 18:55:07 +0000 (18:55 +0000)]
Fix for #4070

- Add support for a new configuration option "dns-lookup" to
  control weither DNS lookups shall happen at all
- Find servers from DNS always if the dnslookup option is true. This
  way these servers can be used as fallback even if a server is
  configured. Otherwise DNS lookups do not happen if a server is
  configured in the client configuration.
- Support multiple servers in the configuration file.
- Use a global for tracking the registration tries, because
  otherwise the used server will not be exchanged, because
  the try counter gets reset everytime a new register event
  is yielded
- Minor bugfix: Do not try to compare $res to "0" if $res is not
  defined.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16397 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoBugfix for #4263
psc [Wed, 10 Mar 2010 16:10:13 +0000 (16:10 +0000)]
Bugfix for #4263

When copying workstations / terminals additional copy
some missing attributes (FAIstate, gotoSysStatus, etc.)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16386 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4368
psc [Tue, 9 Mar 2010 08:33:09 +0000 (08:33 +0000)]
Apply fix for #4368

Ask for an object group when creating a new workstation.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16357 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #144
psc [Fri, 5 Mar 2010 15:37:20 +0000 (15:37 +0000)]
Followup commit for #144

- Add localisation for the newly added strings
- Update localisation

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16311 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #2994
psc [Fri, 5 Mar 2010 15:26:54 +0000 (15:26 +0000)]
Apply fix for #2994

Allow groups to store application flags for associated applications.
They are stored as a special gosaApplicationParameter and only if
they changed compared to the original application (otherwise the gosaApplicationFlag
attribute of the group is removed from LDAP)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16310 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFix for #144
psc [Fri, 5 Mar 2010 13:22:19 +0000 (13:22 +0000)]
Fix for #144

- Improve tests::is_in_ip_range:
  - Check if the specified address is a valid address at all,
    otherwise return FALSE
  - If both 'to' and 'from' are set to '*' or empty return TRUE
- Add new function ldap_equality_check
  - This function compares a string similar as a LDAP equality match
    would do. It does so by replacing any occurence of a * with a
    regex pattern and test it with preg_match. The default mapping is
    but the  test can be extended  by changing that mapping, so that the
    asterisk can stand for a certain range of chars for example.
  - Add new filters for MAC-Address, FAI-Classes and FAI-release
    based on this.
- Add a new function AddTextCheckbox. This is similar to AddCheckbox
  but also has a parameter regexes that gets a list of regexes (as
  returned by AddRegex with the return_regex=TRUE parameter) which
  are displayed directly after the checkbox.
- Add a function Draw() that gets a smarty object from
  MultiSelectWindow::Draw and additionally renders the special filters
  with a special template.
- Make save_object() handle the somewhat special structure of
  this->array_TextCheckboxes which stores the TextCheckboxes as
  created by AddTextCheckbox
- Make filter_iprange (and its text field ifrom and ipto) use the
  nex AddCheckBox feature.
- Add a template for the event target add list
- Add a new parameter to AddRegex so that it is possible to get a
  regex array instead of returning the objects array_Regexes
- Add new functions GetCheckbox and GetRegex that contain the
  code from the Draw() function to draw textfields and checkboxes.
  This enables inheritting implementations to use these functions
  when altering the behaviour.
- Allow Draw function to return smarty object
  This change allows to change the behaviour of the
  Draw function to return a smarty object.
  If the class that inherits from MultiSelectWindow sets
  $this->DrawReturnsSmartyObject to a true value a
  smarty object is returned instead of html.
  A certain class can now alter this smarty object and after that
  fetch the HTML itself.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16231 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #3750
psc [Thu, 4 Mar 2010 14:02:56 +0000 (14:02 +0000)]
Apply fix for #3750

- Move gathering of all FAI classes to an own function,
  because it should really be limited to the FAI classes
  that are part of the current release or inheritted releases.
- Use FAI::get_all_objects_for_given_base to get the list of
  FAI classes and limit the scope to the current FAI release.
  This way the list only has those FAI classes which we have
  in the current release or could inherit. This fixes a bug
  with displaying wrong symbols in some conditions.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16073 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4177
psc [Thu, 4 Mar 2010 13:56:15 +0000 (13:56 +0000)]
Apply fix for #4177

When preparing objects for copy and paste use get_leaf_objects
to get the list of leaf objects straight. Otherwise copied objects
do not contain all classes they should contain.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16072 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply patch for #3716
psc [Thu, 4 Mar 2010 13:53:38 +0000 (13:53 +0000)]
Apply patch for #3716

Fix inconsistent class display:
- Show scripts that are inheritted from a parent release
  - Add a new function FAI::get_leaf_objects that gets a list
    of class leaf objects which are part of the given class
    in the current release and its parents
  - faiScript: Use get_leaf_objects to find leaf objects
  - faiTemplate: Use get_leaf_objects to find leaf objects
  - faiVariable: Use get_leaf_objects to find leaf objects
  - faiPartitionTable: use get_leaf_objects to find leaf objects

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16071 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoImplement reinstall with offsets (#4271)
psc [Tue, 2 Mar 2010 11:17:46 +0000 (11:17 +0000)]
Implement reinstall with offsets (#4271)

- Add support to the DaemonEvent class to let the user select
  a time offset in minutes and a number of concurrent operations
  (new function, new template)
- Make alle events use the new feature
- Add support to gotomasses to handle the case where a DaemonEvent
  requests to be handled as a multi event object. In this case
  the event itself is not appended to the gosa-si queue and instead
  a couple of new events are generated depending on the specified
  number of allowed concurrent operations.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15837 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #3867
psc [Mon, 1 Mar 2010 08:32:26 +0000 (08:32 +0000)]
Apply fix for #3867

- Move check for used workstations so that the check
  is executed after adding a workstation instead of complaining
  on save.
- Fix check for used workstations. It was missing a index indication
  and therefore not properly determining the 'gosaGroupObjects''
  attribute.
- Fix a typo in the german error message

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15778 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply patch for #3305
psc [Fri, 26 Feb 2010 12:35:17 +0000 (12:35 +0000)]
Apply patch for #3305

- When removing members from an object group do not immediately remove
  the tab objects. Instead stage them for removal (and unstage them
  if an according member is added) and delete them on save. This
  way we can avoid a bug where objects get changed although one
  decides to cancel editting an object group.
- Fix the remove_from_parent functions in several classes so
  that removing objects from object groups can actually remove
  the attributes from the LDAP.
- Only delete attributes from LDAP if not all members are beeing
  removed.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15748 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #2852
psc [Fri, 26 Feb 2010 10:58:22 +0000 (10:58 +0000)]
Apply fix for #2852

- Let gosa-si-client determine weither FAI operation is an installation
  or a softupdate and additionally send this info to the server.
- Let gosa-si-client call save_fai_log on "TASKBEGIN savelog" instead
  of "TASKBEGIN finish". This fixes the problem that the save function
  were not called when running a soft-update.
- In gosa-si-server handle the new fai_action field when receiving
  logfiles so that softupdate logs are stored in different directories
  than installation logs.
- Add logic to the code that gets FAI logfiles from gosa-si to detect
  weither a softupdate or installation log is received and set an
  attribute in the result array accordingly.
- When viewing install logs in Gosa show a new column with the FAI
  operation the files belong to.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15739 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply patch for #3736
psc [Thu, 25 Feb 2010 14:35:32 +0000 (14:35 +0000)]
Apply patch for #3736

Copy & Paste needs to copy the gotoLDAPServers and gotoLDAPInherit
attributes, otherwise active workstations can not be copied.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15713 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #3768
psc [Wed, 24 Feb 2010 15:39:13 +0000 (15:39 +0000)]
Followup commit for #3768

When saving daemon events check if timestamp is set.
Otherwise set it to the current time.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15699 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #1957
psc [Wed, 24 Feb 2010 15:33:33 +0000 (15:33 +0000)]
Apply fix for #1957

Check object group names for characters which would need
special quoting (,=+<>#).

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15698 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #3672
psc [Tue, 23 Feb 2010 16:46:43 +0000 (16:46 +0000)]
Apply fix for #3672

- When getting a list of departments do consider the
  unittag and honour unittag configuration.
- When getting a list of hotplug devices filter them by
  the unittag of the user, so that only devices with the
  same gosa unittag are used.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15679 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoCommit LHM-local patch
psc [Tue, 23 Feb 2010 09:45:11 +0000 (09:45 +0000)]
Commit LHM-local patch

Don't show 'Set UserPassword' action in system management.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15671 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply LHM-local patch
psc [Tue, 23 Feb 2010 09:45:07 +0000 (09:45 +0000)]
Apply LHM-local patch

Don't store the last system a user logged in, as this need schema
changes and the feature is not used (yet)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15670 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoCommit LHM-local patch
psc [Tue, 23 Feb 2010 09:45:02 +0000 (09:45 +0000)]
Commit LHM-local patch

Use goto-action to trigger local si-client events

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15669 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoCommit LHM-local patch
psc [Tue, 23 Feb 2010 09:44:57 +0000 (09:44 +0000)]
Commit LHM-local patch

Disable CD generation, if no ISOCMD is specified

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15668 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoCommit LHM-locale patch
psc [Mon, 22 Feb 2010 09:15:56 +0000 (09:15 +0000)]
Commit LHM-locale patch

When searching for incoming objects always use the base from
the config.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15661 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply patch for #2023
psc [Thu, 18 Feb 2010 09:46:32 +0000 (09:46 +0000)]
Apply patch for #2023

- Merge changeset 13812 from GOsa trunk
- Always initialize @valid_packages to avoid a PHP error if no valid
  packages are specified (e.g. if only one package is specified that
  has invalid characters).
- On initialization check for a configuration option
  "direct_packages_add" in the plugin configuration and depending
  what is set show a direct add field or not. Default is false.
- Update locales

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15646 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoBugfix for #4183
psc [Thu, 18 Feb 2010 09:28:22 +0000 (09:28 +0000)]
Bugfix for #4183

When rendering checkboxes they should only be shown if
the attribute in question is allowed to be editted.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15645 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply patch for #3558
psc [Thu, 18 Feb 2010 08:47:00 +0000 (08:47 +0000)]
Apply patch for #3558

- In the system management add a new checkbox "Search in description"
  that allows to optionally search within descriptions of items.
  If this is selected the filter is extended to additionally search the
  description of the items for the specified Regex.
- Add a new case to msgPool::SelectToView for the "Search in
  description" checkbox
- Add translation for new strings

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15644 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFix logging (Trac: #1797)
psc [Thu, 18 Feb 2010 08:19:01 +0000 (08:19 +0000)]
Fix logging (Trac: #1797)

Replace occurences of config usage with usage of this->config
because otherwise no logging takes place (this->config is initialized
while $config would need to be imported from the global namespace).

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15642 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #4099
psc [Thu, 11 Feb 2010 12:34:19 +0000 (12:34 +0000)]
Apply fix for #4099

- Add a new function getSambaSID() to groupGeneric which calculates
  a samba SID with the algorithm which is used for new groups as
  well.
- Remove the SID calculation code from the save function and just
  use getSambaSID
- In PrepareForCopyPaste determine a new SID for the new group
  object.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15611 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #774
psc [Thu, 11 Feb 2010 10:24:58 +0000 (10:24 +0000)]
Apply fix for #774

- Add a check that disallows dashes at the beginning of a
  script classname.
- Add localisation for new string

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15609 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply patch for #4186
psc [Tue, 9 Feb 2010 20:14:25 +0000 (20:14 +0000)]
Apply patch for #4186

Allow dashes in share names.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15605 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply patch for Trac #3671
psc [Tue, 9 Feb 2010 20:07:29 +0000 (20:07 +0000)]
Apply patch for Trac #3671

- Add sub search checkbox to hotplug device selection dialog
- Use get_list instead of ldap->search to get the list of hotplug
  devices and honor the subsearch flag while on it.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15604 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for Trac #3558
psc [Tue, 9 Feb 2010 20:02:48 +0000 (20:02 +0000)]
Apply fix for Trac #3558

Add missing set_acl_category call because otherwise its not
possible to delete incoming devices unless you are a gosa
super user.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15603 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoPrint exit code for LDAP config hook
lhm-gosa [Mon, 8 Feb 2010 14:31:10 +0000 (14:31 +0000)]
Print exit code for LDAP config hook

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15602 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdd option to execute custom scripts after LDAP config file generation (#4125).
lhm-gosa [Mon, 8 Feb 2010 13:00:50 +0000 (13:00 +0000)]
Add option to execute custom scripts after LDAP config file generation (#4125).

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15601 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoUpdate locales
psc [Mon, 8 Feb 2010 12:27:43 +0000 (12:27 +0000)]
Update locales

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15600 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply fix for #2000
psc [Thu, 4 Feb 2010 15:55:15 +0000 (15:55 +0000)]
Apply fix for #2000

Adapt the template so that a description field is shown
for workstation printers as well. Its only shown in workstation
printers because standalone printers have a different position
for that field.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15591 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoBugfix for Trac #1983
psc [Thu, 4 Feb 2010 15:49:01 +0000 (15:49 +0000)]
Bugfix for Trac #1983

When getting a list of object groups add the missing fetching
of the description, otherwise it cannot be displayed.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15590 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAllow '/' in Base-DN config (#4192)
lhm-gosa [Thu, 4 Feb 2010 15:34:22 +0000 (15:34 +0000)]
Allow '/' in Base-DN config (#4192)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15589 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoApply patch for #3768
psc [Wed, 3 Feb 2010 13:27:21 +0000 (13:27 +0000)]
Apply patch for #3768

Allow human-readable timestamps when adding events via
CSV files.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15577 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFix for #4146
psc [Tue, 26 Jan 2010 09:50:59 +0000 (09:50 +0000)]
Fix for #4146

Fix wrong condition in check weither a certain ogroup has
a valid driver set or should show "unknown". It tested on
"if attribute gotoXDriver is not empty" while it should
have tested for "if attribute is empty" which caused
unknown to be shown errornous in some cases.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15307 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdd doxygen tags to MultiSelectWindow class
psc [Tue, 26 Jan 2010 09:50:54 +0000 (09:50 +0000)]
Add doxygen tags to MultiSelectWindow class

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15306 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdd doxygen tag to class ACL
psc [Tue, 26 Jan 2010 09:50:50 +0000 (09:50 +0000)]
Add doxygen tag to class ACL

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15305 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdd doxygen tags to the msgpool class
psc [Tue, 26 Jan 2010 09:50:44 +0000 (09:50 +0000)]
Add doxygen tags to the msgpool class

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15304 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdd some doxygen tags to the tests class
psc [Tue, 26 Jan 2010 09:50:38 +0000 (09:50 +0000)]
Add some doxygen tags to the tests class

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15303 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdd some doxygen tags to the plugin class
psc [Tue, 26 Jan 2010 09:50:33 +0000 (09:50 +0000)]
Add some doxygen tags to the plugin class

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15302 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdd API documentation for functions.inc
psc [Mon, 23 Nov 2009 10:58:58 +0000 (10:58 +0000)]
Add API documentation for functions.inc

Add doxygen to several functions in functions.inc

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14832 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAllow duplicated class names of different types
psc [Fri, 20 Nov 2009 10:29:22 +0000 (10:29 +0000)]
Allow duplicated class names of different types

- When adding a new class with a name that already
exists, but has a different type (e.g. is stored
in another RDN), do not show a warning.
(Trac: #3200)
- Don't search for objects with FAIstate removed

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14829 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdd API documentation to the config class
psc [Fri, 6 Nov 2009 16:26:22 +0000 (16:26 +0000)]
Add API documentation to the config class

Added doxygen tags to most of the config class functions.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14783 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #3020
psc [Tue, 3 Nov 2009 19:36:02 +0000 (19:36 +0000)]
Followup commit for #3020

- Change caption of inherit button
- Only show inherited[drivername] if the workstation really
  inherits from an object (that means object group has a valid
  driver set and the object itself does not have a valid driver
  set). If no driver is set and no inheritance takes place
  [unknown] is shown.
- Instead of manually setting some attributes to empty (meant
  to inherit values) call the function of the object that
  will inherit all values. This way the inheritance for newly installed
  objects uses the same code path for inheritance as it would if the
  "Inherit button" would be used and inherits everything.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14736 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #3200
psc [Thu, 29 Oct 2009 09:56:07 +0000 (09:56 +0000)]
Followup commit for #3200

- Use release dn as search base when checking if a given
  classname is already used by another administrative unit.
- Remove the unittag from the filter that is used to search
  for existing classes. This way every class is found that
  has the same name and it can not happen, that the error
  may not be shown under some circumstances.
- As a side-effect of the previous change, the error might
  also be shown, if the classname is in use in the same
  administrative unit. But this is already handled by a
  standard duplicate check, so to avoid double error message,
  we only check for the classnames, if the previous check didn't
  trigger an error message.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14703 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #3285
psc [Tue, 27 Oct 2009 18:24:05 +0000 (18:24 +0000)]
Followup commit for #3285

If a repository service of a server has multiple releases
with the same URL and one tries to delete it, it fails,
because the deletion code path is never reached. This is caused
by a wrong indenting, which is fixed with this commit.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14664 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years ago* Convert vendorId and productId to lower case. Udev-rules only match if vendorId...
lhm-gosa [Mon, 26 Oct 2009 08:11:32 +0000 (08:11 +0000)]
* Convert vendorId and productId to lower case. Udev-rules only match if vendorId and productId are lower case.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14625 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for #3020
psc [Wed, 21 Oct 2009 13:02:29 +0000 (13:02 +0000)]
Followup commit for #3020

- Allow inheritance of XDriver if the object group sets a valid
  driver and only if the possible inheritance is unambigious
  (e.g. the object is not a member of several object groups)
- Show the text 'manual/auto' only when working with object groups
  and stick with unknown for workstation objects.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14614 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup commit for Trac #3115
psc [Mon, 19 Oct 2009 17:28:07 +0000 (17:28 +0000)]
Followup commit for Trac #3115

- Allow . in server names as well
- Remove useless _ in list of allowed characters, because its
  included by \w
- Include optional port in the stated syntax in the error message

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14606 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFollowup-Changes for #3020
psc [Mon, 19 Oct 2009 15:29:29 +0000 (15:29 +0000)]
Followup-Changes for #3020

- Revert change that let object inherit gotoXDriver, because
  this is not wanted (it breaks auto-detection)
- Change caption of '(unknown)' to manual/auto.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14605 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoHandle a special case in debconf configuration
psc [Mon, 19 Oct 2009 08:47:53 +0000 (08:47 +0000)]
Handle a special case in debconf configuration

Use a text field for select fields which don't have a proper
list of choices, instead of a useless "Need some text..." choice
and show a warning about the requirements of such a field.
(Trac: #868)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14601 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoBugfix for Trac #2870
psc [Fri, 16 Oct 2009 13:30:26 +0000 (13:30 +0000)]
Bugfix for Trac #2870

- Filter servers by the unittag of the user
- Filter classes by the unittag of the user by generating
  a list of bad classes and comparing the classes to it.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14596 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoUpdate for Trac Ticket #3181
psc [Tue, 13 Oct 2009 14:27:04 +0000 (14:27 +0000)]
Update for Trac Ticket #3181

Add localisation

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14592 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdded allow_remove function
psc [Tue, 13 Oct 2009 14:24:11 +0000 (14:24 +0000)]
Added allow_remove function

Added allow_remove function to avoid deleting repository
services which are still in use.
(Trac: #3285)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14591 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoUpdate for Trac Ticket #3181
psc [Mon, 12 Oct 2009 09:15:20 +0000 (09:15 +0000)]
Update for Trac Ticket #3181

- Move ogroup resolving logic to a new function in
  class_DaemonEvent_notify.inc
- Use new function in add_targets to resolve object groups
- Make it possible to add object group targets when using the
  'Add target' function while sending a message.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14579 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFix problems with removing services after saving
psc [Fri, 9 Oct 2009 10:16:13 +0000 (10:16 +0000)]
Fix problems with removing services after saving

When initializing ServerService set acl_base. This
fixes problems, where services cannot be deleted,
because acl_base is not set after saving the services
dialog.
(Trac: #3285)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14567 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoBugfix for Trac #3181
psc [Thu, 8 Oct 2009 12:38:20 +0000 (12:38 +0000)]
Bugfix for Trac #3181

- Build a proper $target array for the add_targets function,
  containing group names and uids. Fixes problems with object group
  members not added to the target list of a notification event.
- Add message checks
- Save notify object before handing it to gosa-si

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14564 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFix error message for invalid LDAP URIs
psc [Tue, 6 Oct 2009 08:36:41 +0000 (08:36 +0000)]
Fix error message for invalid LDAP URIs

- Properly check for missing server specification in the
  given LDAP URI
- Give a message indicating that the format of the URI is
  defect, not incorrectly stating that it contains wrong
  characters.
- Add localisation for new error string

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14533 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoSome changes to the FAI icon listing:
psc [Mon, 5 Oct 2009 12:14:40 +0000 (12:14 +0000)]
Some changes to the FAI icon listing:

- Use the 'title' attribute instead of 'alt' for the descriptions,
  because the latter are not shown.
- Add missing descriptions
- Add missing &nbsp; in placeholder entries.
- "Profiles" -> "Profile"

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14510 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAdd localisation for newly added error message when
psc [Mon, 5 Oct 2009 08:55:37 +0000 (08:55 +0000)]
Add localisation for newly added error message when
adding shares.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14506 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years ago* Trac #3317
lhm-gosa [Mon, 5 Oct 2009 07:30:35 +0000 (07:30 +0000)]
* Trac #3317
  Rewrite of trigger_wake function.
  WOL-Packets are sent as ip-directed-broadcats instead of normal broadcasts (255.255.255.255).

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14505 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFix (hopefully last) consistency problems in locale strings
psc [Fri, 2 Oct 2009 16:04:31 +0000 (16:04 +0000)]
Fix (hopefully last) consistency problems in locale strings

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14501 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoMake error message more specific on where the error is.
psc [Fri, 2 Oct 2009 15:55:53 +0000 (15:55 +0000)]
Make error message more specific on where the error is.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14500 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoCheck of sharename should still check if only
psc [Fri, 2 Oct 2009 15:19:38 +0000 (15:19 +0000)]
Check of sharename should still check if only
the allowed chars are used.
(#1960)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14499 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years ago- Change "Pass on values.." to "Pass on attributes" in the
psc [Fri, 2 Oct 2009 15:17:49 +0000 (15:17 +0000)]
- Change "Pass on values.." to "Pass on attributes" in the
object group, to make this more consistent with the rest.
- Update locales.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14497 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoAnother fix for the XDRiver inheritance:
psc [Fri, 2 Oct 2009 15:10:49 +0000 (15:10 +0000)]
Another fix for the XDRiver inheritance:
Use the drivernames as key in the XDrivers array,
so that on saving (not inherited) the attribute
is set properly
(#3020)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14496 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years ago- Add an error if fai classes already exist in other administrative
psc [Fri, 2 Oct 2009 14:38:34 +0000 (14:38 +0000)]
- Add an error if fai classes already exist in other administrative
  units instead of overwriting them.
  (Trac: #3200)
- Update locales and add translation for the new error string

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14493 594d385d-05f5-0310-b6e9-bd551577e9d8

14 years agoFix for XDriver inheritance, do not store XDRiver
psc [Fri, 2 Oct 2009 13:50:33 +0000 (13:50 +0000)]
Fix for XDriver inheritance, do not store XDRiver
as "inherited [drivername]" by properly generating
the drop-down in the template
(Trac: #3020)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14483 594d385d-05f5-0310-b6e9-bd551577e9d8