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
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20900 594d385d-05f5-0310-b6e9-bd551577e9d8
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
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20898 594d385d-05f5-0310-b6e9-bd551577e9d8
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
- 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
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
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20896 594d385d-05f5-0310-b6e9-bd551577e9d8
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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
- 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
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
- 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
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
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
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
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
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
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
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
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
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
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
Fix invalid character encoding
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20589 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20589 594d385d-05f5-0310-b6e9-bd551577e9d8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19760 594d385d-05f5-0310-b6e9-bd551577e9d8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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
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
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
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
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
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
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
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
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19498 594d385d-05f5-0310-b6e9-bd551577e9d8
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
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
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
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
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
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
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
- 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
Fix an translation error
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18156 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18156 594d385d-05f5-0310-b6e9-bd551577e9d8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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
- 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
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
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
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
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
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
- 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
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
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
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
- 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
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
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
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
- 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
Fix: Close all table tags
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16905 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16905 594d385d-05f5-0310-b6e9-bd551577e9d8
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
- 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
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
- 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
* 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
+ 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
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
- 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
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
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
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
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
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
- 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
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
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
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
- 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
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
- 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
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
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
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
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
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
- 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
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
- 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
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
- 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
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
- 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
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
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
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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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
- 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
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
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