Code

gosa.git
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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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   in placeholder entries.
- "Profiles" -> "Profile"

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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 years agoRemove unfinished code from workstationStartup which is part
psc [Fri, 2 Oct 2009 13:08:49 +0000 (13:08 +0000)]
Remove unfinished code from workstationStartup which is part
of another (upcoming) change.

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

15 years agoUpdate localisations for newly added strings and
psc [Fri, 2 Oct 2009 12:08:04 +0000 (12:08 +0000)]
Update localisations for newly added strings and
fix a typo.

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

15 years agoUse the right ACL category when initialising worktabs
psc [Fri, 2 Oct 2009 11:46:42 +0000 (11:46 +0000)]
Use the right ACL category when initialising worktabs
(Trac: #3020)

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

15 years agoSlightly changes in the wording of the confirmation message
psc [Fri, 2 Oct 2009 09:39:28 +0000 (09:39 +0000)]
Slightly changes in the wording of the confirmation message

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

15 years agoRemove another typo in the error message
psc [Fri, 2 Oct 2009 09:28:51 +0000 (09:28 +0000)]
Remove another typo in the error message

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

15 years agoRemove an unused variable from the template
psc [Fri, 2 Oct 2009 09:25:19 +0000 (09:25 +0000)]
Remove an unused variable from the template

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

15 years agoFollowup Commit for r14465:
psc [Fri, 2 Oct 2009 09:23:07 +0000 (09:23 +0000)]
Followup Commit for r14465:
Change regular expression in error message, too.

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

15 years agoFix typo in message
psc [Fri, 2 Oct 2009 09:20:46 +0000 (09:20 +0000)]
Fix typo in message

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

15 years agoDisallow $ in share _names_ again
psc [Fri, 2 Oct 2009 09:09:42 +0000 (09:09 +0000)]
Disallow $ in share _names_ again

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

15 years agoRemove another relict of debugging output
psc [Fri, 2 Oct 2009 09:05:31 +0000 (09:05 +0000)]
Remove another relict of debugging output

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

15 years agoAdd a confirmation dialog for the 'Pass all attributs to members'
psc [Fri, 2 Oct 2009 09:02:01 +0000 (09:02 +0000)]
Add a confirmation dialog for the 'Pass all attributs to members'
button and act immediately, if this dialog is confirmed.
(Trac: #3020)

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

15 years agoCheck volume for possibly hidden share names, instead
psc [Fri, 2 Oct 2009 08:39:06 +0000 (08:39 +0000)]
Check volume for possibly hidden share names, instead
of the name. (Trac: #1960)

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

15 years agoChange caption of the inheritance button in object groups, because the wording is...
psc [Thu, 1 Oct 2009 09:12:46 +0000 (09:12 +0000)]
Change caption of the inheritance button in object groups, because the wording is wrong in this context. (Trac: #3020)

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

15 years agoReally fix the regular expression for testing of share-
psc [Wed, 30 Sep 2009 15:14:10 +0000 (15:14 +0000)]
Really fix the regular expression for testing of share-
names and change the word of the error message
(Trac: #1960)

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

15 years agoFix PHP error, by adding $category argument
psc [Tue, 29 Sep 2009 13:56:20 +0000 (13:56 +0000)]
Fix PHP error, by adding $category argument
to the new worktabs call

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

15 years agoRemove debug code
psc [Tue, 29 Sep 2009 13:01:14 +0000 (13:01 +0000)]
Remove debug code

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

15 years agoFix regular expression for the check, weither $
psc [Tue, 29 Sep 2009 11:41:22 +0000 (11:41 +0000)]
Fix regular expression for the check, weither $
is at the end of the share name or not, so that
foo$bar leads to an error.
(Trac: #1960)

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

15 years agoAllow the specification of hidden shares (indicated
psc [Tue, 29 Sep 2009 09:24:49 +0000 (09:24 +0000)]
Allow the specification of hidden shares (indicated
by a $ _at the end_ of the share name) by relaxing the
check weither a share name is valid or not
(Trac: #1960)

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

15 years agoUpdate locale files and add german translation for
psc [Mon, 28 Sep 2009 10:59:39 +0000 (10:59 +0000)]
Update locale files and add german translation for
the new inherit to group members button
(Trac: #3020)

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

15 years agoEnable inheritance of XDriver
psc [Mon, 28 Sep 2009 09:35:23 +0000 (09:35 +0000)]
Enable inheritance of XDriver
(Trac: #3020)

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

15 years ago- Adapt actions to be more consistent overall
psc [Mon, 28 Sep 2009 09:29:06 +0000 (09:29 +0000)]
- Adapt actions to be more consistent overall
  - Add 'force localboot' option in several places
  - Change visibility of the localboot event so that it gets
    automatically displayed in places, where events are selected
    by their visibility.
  - Remove actions that don't work.
- Fix a typo in class_servGeneric.inc
(Trac: #3097/#1242)

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

15 years agoUse icons in the list of fai classes, instead of
psc [Mon, 28 Sep 2009 09:18:55 +0000 (09:18 +0000)]
Use icons in the list of fai classes, instead of
text, to enhance clarity.
(Trac: #348)

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

15 years agoAdd a new button to objectgroups of workstations, that
psc [Mon, 28 Sep 2009 08:46:50 +0000 (08:46 +0000)]
Add a new button to objectgroups of workstations, that
enables to let all member objects inherit from the objectgroup,
instead of doing this manually from each object.
(Trac: #3020)

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

15 years ago- Fix update_fai_cache to not overwrite class information for classes
psc [Thu, 24 Sep 2009 09:39:47 +0000 (09:39 +0000)]
- Fix update_fai_cache to not overwrite class information for classes
  that contain several class types.
- Fix function selectable classes: Properly return the abbrevations for
  a given class_name instead of constructing it randomly with
  false results.
- Implement function get_classes to reduce code duplication and use it
  in several places.
- Implement function get_abbrevations_string to determine abbrevations
  string and use it.
(Trac: #3381)

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

15 years agoidProduct- and idVendor-Inputfield should be caseinsensitive.
lhm-gosa [Wed, 9 Sep 2009 13:04:52 +0000 (13:04 +0000)]
idProduct- and idVendor-Inputfield should be caseinsensitive.

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

15 years ago- class_DaemonEvent.inc: Do not simply reset timestamp, because
psc [Wed, 22 Jul 2009 11:33:09 +0000 (11:33 +0000)]
- class_DaemonEvent.inc: Do not simply reset timestamp, because
it causes PHP errors when sending messages
- class_DaemonEvent_notify.inc: Add missing timestamp to attributes
list
- gosa-si: Revert commit 13501 because the code actually needs id not
to be a primary key.

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

15 years agoRevert commit 13946
psc [Wed, 22 Jul 2009 11:29:01 +0000 (11:29 +0000)]
Revert commit 13946

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

15 years ago- Add missing 'timestamp' in attributes list
psc [Wed, 22 Jul 2009 11:28:18 +0000 (11:28 +0000)]
- Add missing 'timestamp' in attributes list
- Do not simply unset the timestamp, because that
causes PHP errors when sending messages

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

15 years agoUse get_attribute for FAItemplateFile if it exists
psc [Wed, 22 Jul 2009 11:13:33 +0000 (11:13 +0000)]
Use get_attribute for FAItemplateFile if it exists
in the object, because it can be binary and would
otherwise be damaged.
(Trac: #2983)

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

15 years ago* Make CopyPasteVars complete
psc [Tue, 21 Jul 2009 10:07:13 +0000 (10:07 +0000)]
* Make CopyPasteVars complete
* Force adding the new object to eventually existing printer objects
  on Copy/Paste
(Trac: #3034)

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

15 years agoBy default do not delete recursive
psc [Mon, 20 Jul 2009 11:58:56 +0000 (11:58 +0000)]
By default do not delete recursive

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

15 years agoOn copy and paste also copy the accessTo field,
psc [Thu, 16 Jul 2009 13:39:40 +0000 (13:39 +0000)]
On copy and paste also copy the accessTo field,
which fixes PHP errors when iterating over that
non-existing value.
(Trac: #3033)

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

15 years agoTake share server into account, when testing weither
psc [Thu, 16 Jul 2009 13:18:43 +0000 (13:18 +0000)]
Take share server into account, when testing weither
a specific share is in use or not, because otherwise
we might block removing in case of double sharenames on
different servers.

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

15 years agoFix check of idVendor and idProduct inputfields.
lhm-gosa [Thu, 16 Jul 2009 12:55:11 +0000 (12:55 +0000)]
Fix check of idVendor and idProduct inputfields.

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

15 years agoOptimize LDAP searchfilter. The LDAP-Performance-Warning after Gosa-Login doesn't...
lhm-gosa [Wed, 15 Jul 2009 09:17:41 +0000 (09:17 +0000)]
Optimize LDAP searchfilter. The LDAP-Performance-Warning after Gosa-Login doesn't appear anymore

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

15 years agoOptimize LDAP searchfilter. The LDAP-Performance-Warning after Gosa-Login doesn't...
lhm-gosa [Wed, 15 Jul 2009 09:12:43 +0000 (09:12 +0000)]
Optimize LDAP searchfilter. The LDAP-Performance-Warning after Gosa-Login doesn't appear anymore.

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

15 years agoAdded a new special casing for debconf variables
psc [Wed, 15 Jul 2009 08:57:41 +0000 (08:57 +0000)]
Added a new special casing for debconf variables

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

15 years agoFollowup commit for r13729
psc [Mon, 13 Jul 2009 14:36:12 +0000 (14:36 +0000)]
Followup commit for r13729

Handle moving of printers properly, by comparing
the CN instead of the full DN.

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

15 years ago- When checking if a share is in use by other objects,
psc [Mon, 13 Jul 2009 14:07:01 +0000 (14:07 +0000)]
- When checking if a share is in use by other objects,
also check if it is in use by object groups.
- Also check for used shares if removing the share only
  (and not the whole service or server)

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

15 years agoRemoved check for object presence when
psc [Mon, 13 Jul 2009 13:55:20 +0000 (13:55 +0000)]
Removed check for object presence when
updating freeze tags

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

15 years agoRenumber $this->FAIclasses when deleting values.
psc [Mon, 13 Jul 2009 08:48:09 +0000 (08:48 +0000)]
Renumber $this->FAIclasses when deleting values.
Avoids problem with "ghost" entries.

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

15 years agoSome improvements to the ArrayUp/ArrayDown handling
psc [Fri, 10 Jul 2009 09:52:48 +0000 (09:52 +0000)]
Some improvements to the ArrayUp/ArrayDown handling

- In functions Array(Up|Down) don't do anything if
  number of elements is 1
- Don't display down element if there is only
  one entry in the list.

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

15 years agoFollowup commit for r13825
psc [Wed, 8 Jul 2009 16:30:37 +0000 (16:30 +0000)]
Followup commit for r13825

- Take other CopyPasteVars in account, too, when preparing
  for copy & paste, because otherwise some values might
  be missing, leading to strange effects.
- Remove sambaGroupType from CopyPasteVars because it leads
  to an access violation when saving the object, although
  the sambaGroupType is saved properly in the resulting
  object (identical to the value in the previous object)

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

15 years agoAlso return if a file is 0 bytes long.
psc [Tue, 7 Jul 2009 12:52:28 +0000 (12:52 +0000)]
Also return if a file is 0 bytes long.

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

15 years agoPrint a error message if files are 0-byte long,
psc [Tue, 7 Jul 2009 12:51:04 +0000 (12:51 +0000)]
Print a error message if files are 0-byte long,
instead of trying to parse that empty file.

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

15 years agoFollowup commit for r13694
psc [Tue, 7 Jul 2009 08:51:45 +0000 (08:51 +0000)]
Followup commit for r13694

- Make delete functionality properly handle the new array
  with numeric indices

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

15 years agoDon't copy over subobjects in subreleases if their
psc [Fri, 3 Jul 2009 10:38:54 +0000 (10:38 +0000)]
Don't copy over subobjects in subreleases if their
parent is in "removed" state

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

15 years agoMake sure CoW objects in subreleases are properly created when the main
psc [Fri, 3 Jul 2009 09:05:45 +0000 (09:05 +0000)]
Make sure CoW objects in subreleases are properly created when the main
object gets modified and check that the parent object is not marked as
removed in is_child_of_cow_parent()

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

15 years agoIn PrepareForCopyPaste instanciate the source object and set
psc [Mon, 29 Jun 2009 16:10:49 +0000 (16:10 +0000)]
In PrepareForCopyPaste instanciate the source object and set
$this->smbgroup depending on what is set in the source object.
This fixes problems with copying groups if the group is tied
to a samba group (Trac #2670)

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

15 years agoLimit scope of get_child_objects and some cosmetic
psc [Mon, 29 Jun 2009 13:10:43 +0000 (13:10 +0000)]
Limit scope of get_child_objects and some cosmetic
changes.

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

15 years agoRewrite get_parent_object(..) so that it uses gosa_explode_dn
psc [Mon, 29 Jun 2009 09:03:35 +0000 (09:03 +0000)]
Rewrite get_parent_object(..) so that it uses gosa_explode_dn
instead of preg_replace, because it should avoid potential
problems with ',' in DNs

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

15 years agoFollowup commit for r13801: Remove var_dump
psc [Fri, 26 Jun 2009 11:33:25 +0000 (11:33 +0000)]
Followup commit for r13801: Remove var_dump

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

15 years agoApply patch for #2674 by mba
psc [Fri, 26 Jun 2009 11:19:33 +0000 (11:19 +0000)]
Apply patch for #2674 by mba

If the gid is the same as a gid of a group with the same name,
set primaryGroup to 0, i.e. "automatic".
If "automatic" was chosen as a group. See if there is group with the
same name as the uid, and if so, set the person's gid to that gid.

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

15 years agoCheck for double group names (Trac: #2756)
psc [Fri, 26 Jun 2009 10:49:06 +0000 (10:49 +0000)]
Check for double group names (Trac: #2756)

When adding new groups or editting existing groups
check for existing groups and abort with an error if same
named groups exist in the same unit tag

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

15 years agoRemove the double function
psc [Fri, 26 Jun 2009 09:01:23 +0000 (09:01 +0000)]
Remove the double function
Add the modeline again, which got lost in the las commit

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

15 years agoMove functionality of determining the GosaUnitTag of
psc [Fri, 26 Jun 2009 08:41:50 +0000 (08:41 +0000)]
Move functionality of determining the GosaUnitTag of
an object to an own function and use this one inside
of tag_attrs. This way the function can be used in other
parts of gosa, where comparisons with the GosaUnitTag of
a new object may be desired

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

15 years agoAdd a configuration option allowGroupsWithSameNameInOtherSubtrees,
psc [Wed, 24 Jun 2009 10:35:42 +0000 (10:35 +0000)]
Add a configuration option allowGroupsWithSameNameInOtherSubtrees,
which allows to control the object attribute
allowGroupsWithSameNameInOtherSubtrees
(Related to Trac #2756)

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

15 years agoFix Trac #2646
psc [Wed, 24 Jun 2009 08:48:26 +0000 (08:48 +0000)]
Fix Trac #2646

Do not handle field seperators different in _get_next
and _get_last functions, which are used when moving
items around. This fixes several problems with moving items
around.

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

15 years agoApply patch by mba for Trac #2667
psc [Tue, 23 Jun 2009 12:16:57 +0000 (12:16 +0000)]
Apply patch by mba for Trac #2667

- Add download button for logon scripts
- Change button label from "Import" to "Import script"

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

15 years agoFix revision 13752 (for Trac #2697)
psc [Mon, 22 Jun 2009 18:20:25 +0000 (18:20 +0000)]
Fix revision 13752 (for Trac #2697)

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

15 years agoUse preselected priority, so that preset priorities
psc [Mon, 22 Jun 2009 16:02:09 +0000 (16:02 +0000)]
Use preselected priority, so that preset priorities
do not get reset (Trac #2643)

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

15 years agoCompare LDAP::fix()'ed DNs only, because othereise the the comparison
psc [Mon, 22 Jun 2009 14:05:51 +0000 (14:05 +0000)]
Compare LDAP::fix()'ed DNs only, because othereise the the comparison
can fail if DNs contain special characters.
(#1917)

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

15 years agoSilence error message when SNMP-support is missing (Trac #2006)
psc [Mon, 22 Jun 2009 12:27:01 +0000 (12:27 +0000)]
Silence error message when SNMP-support is missing (Trac #2006)

Do not show an error message if SNMP-support is missing,
instead indicate it in status view.

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

15 years agoCommitting results from running update-locale..
psc [Mon, 22 Jun 2009 12:22:24 +0000 (12:22 +0000)]
Committing results from running update-locale..

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

15 years agoRevert 13752 because it might cause data loss
psc [Mon, 22 Jun 2009 10:30:15 +0000 (10:30 +0000)]
Revert 13752 because it might cause data loss

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

15 years agoApply patch for Trac #2697 by mba
psc [Mon, 22 Jun 2009 07:54:13 +0000 (07:54 +0000)]
Apply patch for Trac #2697 by mba

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

15 years agoApply patch for Trac #225 by mba
psc [Sun, 21 Jun 2009 19:47:01 +0000 (19:47 +0000)]
Apply patch for Trac #225 by mba

Properly show object group membership in system list

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

15 years agoApply patch for #225 by mba
psc [Sun, 21 Jun 2009 19:45:04 +0000 (19:45 +0000)]
Apply patch for #225 by mba

- Properly handle renaming of systems that contain
  special characters
- Properly capture object group membership when editing systems

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

15 years agoFix by mba for #2697
psc [Fri, 19 Jun 2009 15:03:21 +0000 (15:03 +0000)]
Fix by mba for #2697

Reduce '|removed' entries by applying clean_up_releases() function
on child releases, too.

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

15 years agoApply patch for Trac #2697
psc [Fri, 19 Jun 2009 14:47:26 +0000 (14:47 +0000)]
Apply patch for Trac #2697

Save changes first, before cleaning up FAI-classes wrt
to "|removed" information

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