Code

gosa.git
10 years agoJust use the -n option from dh_installinit and the world is fine again. 2.6-lhm master
lhm-gosa [Mon, 28 Oct 2013 20:44:17 +0000 (20:44 +0000)]
Just use the -n option from dh_installinit and the world is fine again.

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

10 years agoFix disabling of gosa-si startup
lhm-gosa [Mon, 28 Oct 2013 14:06:05 +0000 (14:06 +0000)]
Fix disabling of gosa-si startup

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

10 years agoDon't start gosa-si via init-system.
lhm-gosa [Fri, 25 Oct 2013 07:25:19 +0000 (07:25 +0000)]
Don't start gosa-si via init-system.

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

10 years agoFix LHM #8687
psc [Tue, 18 Jun 2013 11:17:52 +0000 (11:17 +0000)]
Fix LHM #8687

Add returned message from set_activated_for_installation method to list
of messages to return from trigger_action_reinstall callback. Implicitly
activate clients when installing.

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

11 years agoMerge branch '2.6-lhm' of git.credativ.com:muenchen/gosa into 2.6-lhm
psc [Thu, 21 Jun 2012 14:10:25 +0000 (14:10 +0000)]
Merge branch '2.6-lhm' of git.credativ.com:muenchen/gosa into 2.6-lhm

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

11 years agoDon't remove FAI-State when reboot, rescan or wakeup is requested. Set FAI-State...
lhm-gosa [Tue, 15 May 2012 12:04:44 +0000 (12:04 +0000)]
Don't remove FAI-State when reboot, rescan or wakeup is requested. Set FAI-State to localboot.

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

12 years agoFix #6643: Backport IP update from gosa-si 2.7
psc [Tue, 13 Mar 2012 14:51:23 +0000 (14:51 +0000)]
Fix #6643: Backport IP update from gosa-si 2.7

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

12 years agoApply fix for #6747
psc [Tue, 28 Jun 2011 14:38:04 +0000 (14:38 +0000)]
Apply fix for #6747

Overhaul fifo socket handling: open and immediately close the fifo
when printing the logged in users. Also print the socket messages
arriving at the client side at the default INFO loglevel

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

12 years agoNo longer pass on the list of users at local clients to all known
wolffc [Fri, 24 Jun 2011 14:13:22 +0000 (14:13 +0000)]
No longer pass on the list of users at local clients to all known
servers immediately when handling the CURRENTLY_LOGGED_IN message.
Instead, introduce a new option (report-logged-in-users), task
(watch_for_logged_in_users) and time period (logged_in_users_delay) so
that all known users are reported every logged_in_users_delay seconds
(10 minutes by default).

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

12 years agoMake sure a newline is passed to the socket
wolffc [Wed, 22 Jun 2011 13:55:41 +0000 (13:55 +0000)]
Make sure a newline is passed to the socket

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

12 years agoApply fix for #6890
psc [Tue, 31 May 2011 07:14:43 +0000 (07:14 +0000)]
Apply fix for #6890

When asking for object groups during system creation,
filter list of available object groups by unittag.

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

12 years agoApply fix for #6888
psc [Mon, 30 May 2011 14:48:08 +0000 (14:48 +0000)]
Apply fix for #6888

When querying gosa for install jobs, test weither there is
already a mac defined for our workstation. Otherwise we end
up checking against all currently running installations.

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

12 years agoFix filename and path of list_new_app.png (#6187)
psc [Mon, 30 May 2011 11:04:10 +0000 (11:04 +0000)]
Fix filename and path of list_new_app.png (#6187)

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

12 years agoFix pathes to log_warning.png (#6186)
psc [Fri, 27 May 2011 12:10:29 +0000 (12:10 +0000)]
Fix pathes to log_warning.png (#6186)

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

12 years agoAdd type attribute to CopyPasteVars (#5601)
psc [Fri, 27 May 2011 11:08:04 +0000 (11:08 +0000)]
Add type attribute to CopyPasteVars (#5601)

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

12 years agoApply patch for #5598
psc [Fri, 27 May 2011 11:06:36 +0000 (11:06 +0000)]
Apply patch for #5598

- Use 'Device name' as string in error messages for wrong device name
  attributes
- In the error message for an errornous description print the actual
  value of the description in the message and not the device name

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

12 years agoFix path for groups in references tab (#6185)
psc [Fri, 27 May 2011 11:05:22 +0000 (11:05 +0000)]
Fix path for groups in references tab (#6185)

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

12 years agoAdd error handling to the create_table function of the DBsqlite module,
psc [Fri, 20 May 2011 12:49:36 +0000 (12:49 +0000)]
Add error handling to the create_table function of the DBsqlite module,
and abort recreate_fai_release_db and recreate_fai_server_db events if
create_table fails

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

12 years agoApply fix for #6900
psc [Thu, 19 May 2011 14:05:59 +0000 (14:05 +0000)]
Apply fix for #6900

Force FAIdebianRelease and FAIdebianSection to the defaults of the
currently active release, even if LDAP values are different

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

12 years agoIgnore test TASKBEGIN messages
psc [Mon, 2 May 2011 08:36:17 +0000 (08:36 +0000)]
Ignore test TASKBEGIN messages

Ignore test TASKBEGIN messages with 'tests' as task type. Add debug output
so that the task type gets logged if a job gets resubmitted due to an
unexpected TASKBEGIN message.

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

13 years agoFollowup patch for #6578
psc [Fri, 15 Apr 2011 14:16:32 +0000 (14:16 +0000)]
Followup patch for #6578

Set $server_ip to public IP if gosa-si-client registers with the
server on the same host. Fix an off-by-one error when detecting
whether registering with all servers has been tried. Do not discard
messages from 127.0.0.1

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

13 years agoImprove client connection handling (#6578)
psc [Tue, 12 Apr 2011 11:24:25 +0000 (11:24 +0000)]
Improve client connection handling (#6578)

Add some delays to gosa-si-client to avoid spamming the gosa-si-server
if there are problems

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

13 years agoMake package filters for sections work (#6576)
psc [Tue, 12 Apr 2011 08:38:35 +0000 (08:38 +0000)]
Make package filters for sections work (#6576)

- Add support to FAI_get_packages function to filter by section,
  by adding a new attribute exclude_sections which allows the
  specification of an array with sections as keys (and arbitrary
  values).
  (This way its possible to create the array with array_filter and the
  existing package_sections array in class_faiPackageEntry)
- Extend class_faiPackageEntry to hand the list of unselected sections
  to FAI_get_packages
- Extend class_faiPackageEntry to keep the state of the section
  selection on page reload

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

13 years agoApply fix for #6613
psc [Tue, 12 Apr 2011 08:36:04 +0000 (08:36 +0000)]
Apply fix for #6613

Several changes in gosa-si to properly support multiple repositories
in different pathes:

- Add a new configuration option repo-basepath, which stores the common
  prefix of repositories (e.g. /srv/www)
- Determine relative path of a repository by extracting the path
  component of a repository URL as stord in gosa (e.g.
  http://localhost/repo -> /repo) and make it the repo_path
- Process all repo_path'es (when adding packages and scanning debconf
  templates)

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

13 years agoApply patch for #5863
psc [Tue, 12 Apr 2011 08:07:01 +0000 (08:07 +0000)]
Apply patch for #5863

- Add a new function get_configured_packages and move logic, which gets
  debconf configuration for all configured packages from LDAP, to this
  function.
- In object initialisation and PrepareForCopyPaste function use
  get_configured_packages instead of duplicating the functionality at
  two places.

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

13 years agoApply fix for Trac #6579
psc [Tue, 5 Apr 2011 12:16:12 +0000 (12:16 +0000)]
Apply fix for Trac #6579

- When checking key/xml validity test for xml-indicator before trying
  to parse the XML output. Throw exception with a specific error message
  if this indicator cannot be found.
- Only check key and xml validity if incoming message is from current
  server
- Remove sig_die_handler in client and server

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

13 years agoApply patch for #6281 from LHM
psc [Fri, 11 Mar 2011 15:34:15 +0000 (15:34 +0000)]
Apply patch for #6281 from LHM

Cleanup gosa-si-server forking behaviour

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

13 years agoApply patch for #6281 from LHM
psc [Fri, 11 Mar 2011 15:34:10 +0000 (15:34 +0000)]
Apply patch for #6281 from LHM

Cleanup gosa-si-server signal handling

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

13 years agoApply patch for #6281 from LHM
psc [Fri, 11 Mar 2011 15:34:05 +0000 (15:34 +0000)]
Apply patch for #6281 from LHM

Reorganize gosa-si-client fifo handling

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

13 years agoApply patch for #6281 from LHM
psc [Fri, 11 Mar 2011 15:34:00 +0000 (15:34 +0000)]
Apply patch for #6281 from LHM

Cleanup gosa-si-client forking behaviour

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

13 years agoApply patch for #6281 from LHM
psc [Fri, 11 Mar 2011 15:33:54 +0000 (15:33 +0000)]
Apply patch for #6281 from LHM

Cleanup gosa-si-client signal handling

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

13 years agoFix invalid character encoding
lhm-gosa [Fri, 14 Jan 2011 14:34:30 +0000 (14:34 +0000)]
Fix invalid character encoding

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

13 years agoFollowup patch for #6056
psc [Fri, 3 Dec 2010 10:25:13 +0000 (10:25 +0000)]
Followup patch for #6056

Display a warning message if a workstation is a member of more than
one object group.

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

13 years agoApply fix for #6056
psc [Fri, 3 Dec 2010 10:25:03 +0000 (10:25 +0000)]
Apply fix for #6056

Relax check for object group membership for the Devices tab. Display
values as inherited for the (broken) case that a system is member of
more than one object group.

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

13 years agoPatch for #6056
psc [Fri, 3 Dec 2010 10:21:14 +0000 (10:21 +0000)]
Patch for #6056

When building the list of workstations which are already a member of
an object group, properly encode the member DN via LDAP::convert() to
avoid problems with workstations from OUs which include slashes.

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

13 years agoApply fix for #3020
psc [Fri, 3 Dec 2010 10:18:59 +0000 (10:18 +0000)]
Apply fix for #3020

When loading member list of systems in an object group, make sure the
properly escaped name is saved via LDAP::convert(). This fixes a
warning message from the printGeneric class when the system is
instantiated during pass_attributes_to_members().

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

13 years agoApply fix for #5583
psc [Thu, 11 Nov 2010 15:03:33 +0000 (15:03 +0000)]
Apply fix for #5583

Disallow '\' and '"' in object group names as they lead to LDAP
errors

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

13 years agoApply patch for #5508
psc [Fri, 1 Oct 2010 08:44:03 +0000 (08:44 +0000)]
Apply patch for #5508

When checking for messages to be delivered, honor delivery_time field
and skip the message if the delivery time has not been reached yet.

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

13 years agoApply patch for #5572
psc [Fri, 1 Oct 2010 08:42:20 +0000 (08:42 +0000)]
Apply patch for #5572

When creating, renaming or copy-pasting a system, no longer allow two
workstations or server of the same name in two different departments.
As an exception, allow them if they are in two different
administrative units and the "honourUnitTags" option is enabled.

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

13 years agoTrigger actions also when no user is logged in
lhm-gosa [Fri, 17 Sep 2010 21:25:20 +0000 (21:25 +0000)]
Trigger actions also when no user is logged in

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

13 years agoFix regression in commit r19721.
wolffc [Fri, 17 Sep 2010 07:29:44 +0000 (07:29 +0000)]
Fix regression in commit r19721.

Check for empty name field first, to avoid a superfluous invalid
entry error when no script name has been  specified.

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

13 years agoDisplay all available printer drivers for each model. Collect
wolffc [Thu, 16 Sep 2010 14:47:04 +0000 (14:47 +0000)]
Display all available printer drivers for each model. Collect
ShortNickName attribute from PPD files and add an extension to the
model name if more than one entry exists for each model. The extension
consists of the base directory (foomatic-rip, hpijs, etc.) and the
short nick name.

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

13 years agoWhen removing the File service or inidividual shares, honour the
wolffc [Thu, 16 Sep 2010 14:46:04 +0000 (14:46 +0000)]
When removing the File service or inidividual shares, honour the
gosaUnitTag when searching for objects still using those shares and do
not display an error message if they belong to a different
administrative unit.

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

13 years agoDisplay a warning if the size limit of an ldap search is exceeded
wolffc [Thu, 16 Sep 2010 14:42:15 +0000 (14:42 +0000)]
Display a warning if the size limit of an ldap search is exceeded
and the configuration option 'sizelimitWarning' is set to 'true'.

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

13 years agoOptimize LDAP search further by only checking for a non-zero object
wolffc [Thu, 16 Sep 2010 14:41:37 +0000 (14:41 +0000)]
Optimize LDAP search further by only checking for a non-zero object
count. This removes the need to size-limit the search to 1, which
clashes with the new 'sizelimitWarning' option.

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

13 years agoDo not size limit get_list() query in
wolffc [Thu, 16 Sep 2010 14:41:12 +0000 (14:41 +0000)]
Do not size limit get_list() query in
get_all_objects_for_given_base() as this function is called when any
FAI class is opened and might not display all content if there are
more than 200 (or the configured size limit) scripts, templates etc.
objects.

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

13 years agoWhen removing no longer reacting gosa-si server from the known_server
wolffc [Thu, 16 Sep 2010 14:39:43 +0000 (14:39 +0000)]
When removing no longer reacting gosa-si server from the known_server
database, remove clients registered with them from the foreign_clients
database as well.

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

13 years agoCheck for invalid names first before trimming name, catching trailing
wolffc [Thu, 16 Sep 2010 14:38:38 +0000 (14:38 +0000)]
Check for invalid names first before trimming name, catching trailing
spaces at the end or beginning

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

13 years agoWhen moving or renaming devices, check whether they are in use by a
wolffc [Thu, 16 Sep 2010 14:35:53 +0000 (14:35 +0000)]
When moving or renaming devices, check whether they are in use by a
user, group or object group. If so, display an error message stating
the user. As the reference is not being updated in the user object,
the device would get deleted from the user next time when they are
saved.

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

13 years agoAdded support for optionally taking along members when copying object
wolffc [Mon, 13 Sep 2010 14:47:13 +0000 (14:47 +0000)]
Added support for optionally taking along members when copying object
groups. This is disabled for workstations, terminals and servers,
which must not belong to more than one object group. A note has been
added to warn users that adding members of a different type will
delete the copied settings.

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

13 years agoDetect type of LDAP server (Sun LDAP and OpenLDAP for now) on login
wolffc [Mon, 13 Sep 2010 14:46:28 +0000 (14:46 +0000)]
Detect type of LDAP server (Sun LDAP and OpenLDAP for now) on login
by querying the Root DSE. Use this information to choose appropriate
escaping of commas (\, vs. \2C) in filters in order to update object
group memberships during renames and moves of systems.

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

13 years agoRun code to update printer objects not only when a printer is added
wolffc [Mon, 13 Sep 2010 14:45:24 +0000 (14:45 +0000)]
Run code to update printer objects not only when a printer is added
or removed, but also in case the group name changes

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

13 years agoMake sure delete actions are properly cancelled by calling the
wolffc [Fri, 10 Sep 2010 09:28:21 +0000 (09:28 +0000)]
Make sure delete actions are properly cancelled by calling the
"Delete MULTIPLE entries Canceled" code path and not the "Delete
confirm dialog" code path. Also, properly delete confirm dialog once
cancelled.

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

13 years agoApply patch for #2025
psc [Tue, 7 Sep 2010 12:52:41 +0000 (12:52 +0000)]
Apply patch for #2025

Do not check ACLs in the faiDebconfConfigurations class. Instead, do
not display the 'Edit Debconf Configurations' button if the
FAIdebconfInfo ACL is not present for writing, in line with the
faiPackageConfiguration class.

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

13 years agoFollowup patch for #3305
psc [Tue, 7 Sep 2010 12:48:09 +0000 (12:48 +0000)]
Followup patch for #3305

Remove properties of object groups once the last member has been
removed and the object group is saved. This fixes a problem when
removing of empty object groups was hitting an ldap error if sub
objects were still present.

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

13 years agoApply fix for #3105
psc [Tue, 7 Sep 2010 09:07:16 +0000 (09:07 +0000)]
Apply fix for #3105

Properly transcode special invalid characters in the 'invalid' stock
error message, fix an additonal exclamation mark when additionally
example input is presented and use already translated field names for
Product-ID and Vendor-ID in the hotplug management.

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

13 years agoApply patch for #5210
psc [Tue, 7 Sep 2010 08:49:19 +0000 (08:49 +0000)]
Apply patch for #5210

Fix a problem with the deletion of fai classes:
The query weither a class is associated to a profile matched
classes, which contained the name of a to-be-deleted class as a
substring of their own name.
The query was changed in a way that the list of associated classes
is compared exactly with the class to be deleted.

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

13 years agoApply patch for #4486
psc [Tue, 7 Sep 2010 08:40:57 +0000 (08:40 +0000)]
Apply patch for #4486

Disallow usage of an existing FAI profile as name for a FAI class
created by copy and paste

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

13 years agoApply patch for #3106
psc [Tue, 7 Sep 2010 08:36:00 +0000 (08:36 +0000)]
Apply patch for #3106

Fixed problem with wrong display of entries with special
characters in the C&P dialog, by filtering DNs with the LDAP::fix
function

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

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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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