diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbb3a13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1675acd --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-tw-logonscript +# $Id: Makefile,v 1.1 2020/10/14 07:48:18 brianr Exp $ +NAME := smeserver-tw-logonscript +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 05636c4..5df3f25 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# smeserver-tw-logonscript +# smeserver-tw-logonscript -SMEServer Koozali developed git repo for smeserver-tw-logonscript smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-tw-logonscript smecontribs + +## Wiki +
https://wiki.koozali.org/Tw-logonscript + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-tw-logonscript&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED) + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..58d1937 --- /dev/null +++ b/createlinks @@ -0,0 +1,27 @@ +#!/usr/bin/perl -w +use esmith::Build::CreateLinks qw(:all); +# our event specific for updating with yum without reboot +$event = 'smeserver-tw-logonscript-update'; +#add here the path to your templates needed to expand +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event + +foreach my $file (qw( + /etc/systemd/system-preset/49-koozali.preset + /home/e-smith/files/samba/netlogon/netlogon.bat +)) +{ + templates2events( $file, $event ); +} +#action needed in case we have a systemd unit +event_link('systemd-default', $event, '10'); +event_link('systemd-reload', $event, '50'); +#action specific to this package +#event_link('action', $event, '30'); +#services we need to restart +#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service); +#and Server Manager panel link +panel_link('ibayletters', 'manager'); + +use File::Basename; +#symlink("/etc/e-smith/web/functions/ibayletters","root/etc/e-smith/web/panels/manager/cgi-bin/ibayletters"); +templates2events("/home/e-smith/files/samba/netlogon/netlogon.bat", qw(workgroup-update bootstrap-console-save)); diff --git a/root/etc/e-smith/db/configuration/defaults/smb/LogonScript b/root/etc/e-smith/db/configuration/defaults/smb/LogonScript new file mode 100644 index 0000000..a57c9c2 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/smb/LogonScript @@ -0,0 +1 @@ +/home/e-smith/files/samba/netlogon/logon_script diff --git a/root/etc/e-smith/db/configuration/defaults/twlogonscript/MountPointsPath b/root/etc/e-smith/db/configuration/defaults/twlogonscript/MountPointsPath new file mode 100644 index 0000000..cd9f4bb --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/twlogonscript/MountPointsPath @@ -0,0 +1 @@ +/mnt diff --git a/root/etc/e-smith/db/configuration/defaults/twlogonscript/UserHomeMountPointName b/root/etc/e-smith/db/configuration/defaults/twlogonscript/UserHomeMountPointName new file mode 100644 index 0000000..49d152d --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/twlogonscript/UserHomeMountPointName @@ -0,0 +1 @@ +user_data diff --git a/root/etc/e-smith/db/configuration/defaults/twlogonscript/type b/root/etc/e-smith/db/configuration/defaults/twlogonscript/type new file mode 100644 index 0000000..f92f363 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/twlogonscript/type @@ -0,0 +1 @@ +configuration diff --git a/root/etc/e-smith/events/post-upgrade/templates2expand/home/e-smith/files/samba/netlogon/.gitignore b/root/etc/e-smith/events/post-upgrade/templates2expand/home/e-smith/files/samba/netlogon/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/events/workgroup-update/templates2expand/home/e-smith/files/samba/netlogon/.gitignore b/root/etc/e-smith/events/workgroup-update/templates2expand/home/e-smith/files/samba/netlogon/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..3463e6e --- /dev/null +++ b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + Букви за инфо слот + + + FIRST_PAGE_DESCRIPTION + Позволява асоциирането между инфо слотове и букви за устройства в Windows + + + EDIT_GROUP_BATCH_FILES + Ако искате можете да ползвате %USERNAME%, %SERVER%, %COMPUTERNAME% или всяка друга променлива от обкръжението на Windows]]> + + + FIRST_PAGE_DESC + Тази страница позволява да добавяте или променяте буквите за устройства, асоциирани с инфо слотове. Ако направите промени в Home Drive трябва да Запазите и тогава да изпълните "Презареждане на настройките за Workgroup."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba и другите услуги ще бъдат рестартирани. Искате ли да продължите? + + + RELOAD_WORKGROUP_SETTINGS + Презареждане на настройките за Workgroup + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Настройките за Workgroup бяха променени успешно + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch файла е записан успешно: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + Този файл не съществува. Ще бъде създаден: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + Има грешка при промяната на настройките за Workgroup + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + Избрали сте едно и също устройство повече от веднъж: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Успешно променени букви за устройства + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Основно устройство на потребителя + + + NO_IBAYS_DEFINED + Няма определени инфо слотове + + + CUSTOM_BATCH_FILE + Потребителски batch файл + + + DRIVE_LETTER + Буква на устройство + + + GROUP_LIST_DESCRIPTION + Можете да щракнете на връзката отдолу за да създадете/редактирате batch файлове, които ще се изпълняват по време на процеса по влизане, когато потребителя принадлежи към групата, която се разглежда. + + + + +
diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..4f9465a --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay bogstaver + + + FIRST_PAGE_DESCRIPTION + Tillader sammenkædning mellem I-bays og bogstaver fra mappede windows drev + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba og andre tjenester vil blive genstartet. Ønsker du at fortsætte? + + + RELOAD_WORKGROUP_SETTINGS + Genindlæs indstillinger for arbejdsgruppe + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Indstillinger for arbejdsgruppe er ændret + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch-fil gemt: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + Filen eksisterer ikke. Den vil blive dannet: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + Der opstod en fejl under opdatering af arbejdsgruppeindstillinger + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + Du har valgt det samme drev mere end en gang: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Drev bogstaver er ændret + + + HOME_DRIVE + Hjemme drev + + + USERS_HOME_DRIVE + Brugers hjemme drev + + + NO_IBAYS_DEFINED + Ingen ibays er defineret + + + CUSTOM_BATCH_FILE + Brugerdefineret batch-fil + + + DRIVE_LETTER + Drev bogstav + + + GROUP_LIST_DESCRIPTION + Klik på nedenstående links for at danne eller redigere brugerdefinerede batch-filer der eksekveres ved logon, hvis brugeren tilhører den relevante gruppe. + + + + +
diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..c2c0cc6 --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay-Buchstaben + + + FIRST_PAGE_DESCRIPTION + Erlaubt die Verknüpfung zwischen I-bays und Windows-Laufwerksbuchstaben + + + EDIT_GROUP_BATCH_FILES + Wenn nötig könen Sie %USERNAME%, %SERVER%, %COMPUTERNAME% oder alle anderen Windows-Umgebungsvariablen verwenden ]]> + + + FIRST_PAGE_DESC + Diese Seite erlaubt es Ihnen, mit I-bays verknüpfte Laufwerksbuchstaben zu erstellen oder zu ändern. Falls Sie Änderungen am Home-Laufwerk vornehmen sollten Sie "Speichern" und anschließend "Arbeitsgruppen-Einstellungen neu laden" ausführen."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba und andere Dienste werden neu gestartet. Wollen Sie fortfahren? + + + RELOAD_WORKGROUP_SETTINGS + Arbeitsgruppen-Einstellungen neu laden + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Arbeitsgruppen-Einstellungen erfolgreich geändert + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch-Datei erfolgreich gespeichert: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + Die Datei existiert nicht. Sie wird erzeugt werden: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + Beim Ändern der Arbeitsgruppen-Einstellungen ist ein Fehler aufgetreten + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + Sie haben den selben Laufwerkstbuchstaben mehr als einmal ausgewählt: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Laufwerksbuchstaben erfolgreich geändert + + + HOME_DRIVE + Home-Laufwerk + + + USERS_HOME_DRIVE + Home-Laufwerk der Benutzer + + + NO_IBAYS_DEFINED + Keine I-bays angelegt + + + CUSTOM_BATCH_FILE + eigene Batch-Datei + + + DRIVE_LETTER + Laufwerksbuchstabe + + + GROUP_LIST_DESCRIPTION + Sie können auf die untenstehende Links klicken, um Batch-Dateien zu erzeugen oder zu bearbeiten, die während des Logon-Prozesses ausgeführt werden falls der Benutzer der fraglichen Gruppe angehört. + + + + +
diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..5720498 --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..a102fbd --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,121 @@ + + + + FIRST_PAGE_TITLE + + I-bay letters + + + + FIRST_PAGE_DESCRIPTION + + Allows the association between I-bays and windows drive mapping letters + + + + EDIT_GROUP_BATCH_FILES + + + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables + ]]> + + + + FIRST_PAGE_DESC + + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings." +

+ ]]> +
+
+ + + SMB_NEEDS_RESTART_PROCEED + + Samba and other services will be restarted. Do you want to proceed? + + + + RELOAD_WORKGROUP_SETTINGS + + Reload Workgroup Settings + + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + + Workgroup settings modified successfully + + + + BATCH_FILE_SAVED_SUCCESSFULLY + + Batch file saved successfully: + + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + + The file does not exist. It will be created: + + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + + There was an error while modifying the Workgroup settings + + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + + You have selected the same drive more than once: + + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + + Successfully modified drive letters + + + + HOME_DRIVE + + Home Drive + + + + USERS_HOME_DRIVE + + Users' home drive + + + + NO_IBAYS_DEFINED + + No I-bays defined + + + + CUSTOM_BATCH_FILE + + Custom Batch file + + + + DRIVE_LETTER + + Drive Letter + + + + GROUP_LIST_DESCRIPTION + + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + + +
diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..e017053 --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Archivo por Lotes + + + DRIVE_LETTER + Letra Unidad + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..a01eaab --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..6870506 --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + Lettres des I-bays + + + FIRST_PAGE_DESCRIPTION + Autoriser l'association des I-bays avec les lecteurs réseaux Windows + + + EDIT_GROUP_BATCH_FILES + Si besoin vous pouvez utiliser %USERNAME%, %SERVER%, %COMPUTERNAME% ou n'importe quelle variable d'environnement Windows ]]> + + + FIRST_PAGE_DESC + Cette page vous permet d'ajouter ou de modifier des lettres de lecteur associées avec les ibays. Si vous réalisez des modifications au lecteur Home, vous devriez sauvegarder et ensuite lancer un "Recharger Les réglages du Groupe de Travail."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba et d'autres services vont être redémarrés. Voulez-vous continuer ? + + + RELOAD_WORKGROUP_SETTINGS + Recharger les paramètres du groupe de travail + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Les paramètres du groupe de travail ont été modifiés avec succès + + + BATCH_FILE_SAVED_SUCCESSFULLY + Fichier batch sauvegardé avec succès: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + Ce fichier n'existe pas. Il sera créé + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + Il ya eu une erreur durant la modification des paramètres du Groupe de Travail + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + Vous avez choisi le même lecteur plus d'une fois: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Modifications des lettres de lecteur réussies + + + HOME_DRIVE + Lecteur Home + + + USERS_HOME_DRIVE + Lecteur personnel de l'utilisateur + + + NO_IBAYS_DEFINED + Aucune I-bay définie + + + CUSTOM_BATCH_FILE + Fichier Batch personnalisé + + + DRIVE_LETTER + Lettre de lecteur + + + GROUP_LIST_DESCRIPTION + Vous pouvez cliquer sur les liens ci-dessous pour créer/modifier les fichiers batch qui seront exécutés durant le processus de connexion lorsqu'un utilisateur appartient au groupe en question. + + + + +
diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..2d0c5a0 --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..fb3f56a --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..1ce4d7b --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..3fb78ff --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + Lettere I-bay + + + FIRST_PAGE_DESCRIPTION + Permette di associare le i-Bays alla lettere di unità di Windows. + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba ed altri servizi saranno riavviati. Procedi ? + + + RELOAD_WORKGROUP_SETTINGS + Ricarica Impostazioni Workgroup + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Impostazioni Workgroup salvate con successo + + + BATCH_FILE_SAVED_SUCCESSFULLY + File batch salvato con successo: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + Il file non esiste. Sarà creato. + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + Si è verificato un errore modificato le impostazioni Workgroup + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + E' stato selezionato lo stesso disco più di una volta: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Lettere di unità modificate con successo + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Home drive dell'utente + + + NO_IBAYS_DEFINED + Nessuna I-bay definita + + + CUSTOM_BATCH_FILE + File Batch personalizzato + + + DRIVE_LETTER + Letetra di unità + + + GROUP_LIST_DESCRIPTION + Faccendo click sui link sotto riportati si possono creare/modificare i file batch che verranno eseguiti durante il processo di logon quando l'utente appartiene al gruppo indicato. + + + + +
diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..318b905 --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..ed69274 --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..15a17c6 --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + Informatie-baai letters + + + FIRST_PAGE_DESCRIPTION + Laat koppelingen toe tussen informatie-baaien en Windows netwerkstation letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba en andere diensten worden herstart. Wilt U doorgaan? + + + RELOAD_WORKGROUP_SETTINGS + Werkgroep Instellingen Herladen + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Werkgroep instellingen met succes aangepast + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch-bestand met succes opgeslagen: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + Het bestand bestaat niet. Het zal worden aangemaakt: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + Er was een fout tijdens het aanpassen van de werkgroep instellingen + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + U heeft hetzelfde netwerkstation meer dan een keer gekozen: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Netwerkstation letters met succes aangepast + + + HOME_DRIVE + Thuis Netwerkstation + + + USERS_HOME_DRIVE + Gebruikers thuis netwerkstation + + + NO_IBAYS_DEFINED + Er zijn geen informatie-baaien gedefinieerd + + + CUSTOM_BATCH_FILE + Speciaal batch-bestand + + + DRIVE_LETTER + Netwerkstation letter + + + GROUP_LIST_DESCRIPTION + Voor het aanmaken of aanpassen van batch bestanden die uitgevoerd worden tijdens het inlog proces wanneer de gebruiker tot de groep in kwestie behoort, kunt U op de onderstaande verbindingen klikken. + + + + +
diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..ad065fb --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..596eddb --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + Letras de Compartilhamento + + + FIRST_PAGE_DESCRIPTION + Permite a associação entre Compartilhamentos e letras de drive para mapeamento no Windows + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba e outros serviços serão reiniciados. Você deseja continuar? + + + RELOAD_WORKGROUP_SETTINGS + Recarregar Configurações de Grupo de Trabalho + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Configurações de Grupo de Trabalho modificadas com sucesso + + + BATCH_FILE_SAVED_SUCCESSFULLY + Arquivo batch salvo com sucesso: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + O arquivo não existe. Ele será criado: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + Aconteceu um erro enquanto modificando as configurações de Grupo de Trabalho + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + Você selecionou o mesmo drive mais do que uma vez: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Modificação das letras de drive efetuada com sucesso + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + Nenhum Compartilhamento definido + + + CUSTOM_BATCH_FILE + Arquivo de batch customizado + + + DRIVE_LETTER + Letra para o Drive + + + GROUP_LIST_DESCRIPTION + Você pode clicar nos links abaixo para criar/editar os arquivos batch que serão executados durante o processo de logon quando o usuário pertencer ao grupo em questão. + + + + +
diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..4c58487 --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..7cc4c05 --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..58c132f --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..8cab553 --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..e78539b --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay bokstäver + + + FIRST_PAGE_DESCRIPTION + Möjliggör association mellan I-bays och Windows enhetsbokstäver + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba och andra tjänster kommer att startas om. Vill du fortsätta? + + + RELOAD_WORKGROUP_SETTINGS + Ladda arbetsgruppens inställningar + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Arbetsgruppens inställningar ändrades + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batchfilen sparades: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + Filen finns inte. Den kommer att skapas: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + Ett fel uppstod vid ändringen av inställningarna för arbetsgruppen + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + Du har valt samma enhet mer än en gång: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Enhetsbokstäverna ändrade + + + HOME_DRIVE + Hemenheten + + + USERS_HOME_DRIVE + Användarnas hemenhet + + + NO_IBAYS_DEFINED + Inga I-bays definierade + + + CUSTOM_BATCH_FILE + Egenskapad Batch-fil + + + DRIVE_LETTER + Enhetsbokstav + + + GROUP_LIST_DESCRIPTION + Du kan klicka på länkarna nedan för att skapa/ändra batch-filer som körs vid inloggning för användaren i aktuell grupp. + + + + +
diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..3b0695f --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..53db2b6 --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + Allows the association between I-bays and windows drive mapping letters + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba and other services will be restarted. Do you want to proceed? + + + RELOAD_WORKGROUP_SETTINGS + Reload Workgroup Settings + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + Workgroup settings modified successfully + + + BATCH_FILE_SAVED_SUCCESSFULLY + Batch file saved successfully: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + The file does not exist. It will be created: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + There was an error while modifying the Workgroup settings + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + You have selected the same drive more than once: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + Successfully modified drive letters + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + No I-bays defined + + + CUSTOM_BATCH_FILE + Custom Batch file + + + DRIVE_LETTER + Drive Letter + + + GROUP_LIST_DESCRIPTION + You can click on the links below to create/edit batch files that will be executed during the logon process when the user belong to the group in question. + + + + +
diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..40d9835 --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay letters + + + FIRST_PAGE_DESCRIPTION + 允许信息港与Windows磁盘映射表相关联 + + + EDIT_GROUP_BATCH_FILES + If you need you can refer to %USERNAME%, %SERVER%, %COMPUTERNAME% or any other Windows environment variables ]]> + + + FIRST_PAGE_DESC + This page allows you to add or modify drive letters associated with I-bays. If you make changes to the Home Drive you should Save and then run "Reload Workgroup Settings."

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba 和其它服务将被重启。是否继续? + + + RELOAD_WORKGROUP_SETTINGS + 重新载入工作组设置 + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + 工作组设置已修改 + + + BATCH_FILE_SAVED_SUCCESSFULLY + 批处理文件已保存: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + 该文件不存在。将要创建: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + 修改工作组设置时出现错误 + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + 您选择了同一个的磁盘: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + 驱动器编号已经修改 + + + HOME_DRIVE + Home Drive + + + USERS_HOME_DRIVE + Users' home drive + + + NO_IBAYS_DEFINED + 尚未定义信息港 + + + CUSTOM_BATCH_FILE + 定制批处理文件 + + + DRIVE_LETTER + 驱动器编号 + + + GROUP_LIST_DESCRIPTION + 可以点击下面的链接,创建或编辑用户登陆失败时执行的批处理。 + + + + +
diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/ibayletters new file mode 100644 index 0000000..89970a2 --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,79 @@ + + + + FIRST_PAGE_TITLE + I-bay代號 + + + FIRST_PAGE_DESCRIPTION + 允許I-bays與Windows磁碟機代號映射相關聯 + + + EDIT_GROUP_BATCH_FILES + 倘若需要,您可參考 %USERNAME%, %SERVER%, %COMPUTERNAME% 或其它Windows環境變數]]> + + + FIRST_PAGE_DESC + 此頁允許您添加或修正與I-bays有關的磁碟機代號。倘若您改變了家磁碟,您應該儲存然後執行"重載工作群組設定。"

]]>
+
+ + + SMB_NEEDS_RESTART_PROCEED + Samba 和其它服務將被重啟。是否繼續? + + + RELOAD_WORKGROUP_SETTINGS + 重載群組設定 + + + WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL + 群組設定已修正成功 + + + BATCH_FILE_SAVED_SUCCESSFULLY + 批次檔已儲存成功: + + + FILE_DOES_NOT_EXIT_WILL_BE_CREATED + 該檔案不存在。即將建立: + + + WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL + 修正群組設定時發生錯誤 + + + DRIVE_LETTER_SELECTED_MORE_THAN_ONCE + 您選擇了相同的磁碟機: + + + DRIVE_LETTERS_SUCCESSFULLY_MODIFIED + 成功修正磁碟機代號 + + + HOME_DRIVE + 家磁碟機 + + + USERS_HOME_DRIVE + 使用者家磁碟機 + + + NO_IBAYS_DEFINED + I-bays尚未界定 + + + CUSTOM_BATCH_FILE + 客製批次檔 + + + DRIVE_LETTER + 磁碟機代號 + + + GROUP_LIST_DESCRIPTION + 您可點選下方連結以建立/編輯批次檔,該檔將執行於屬於問題群組使用者的登入程序中。 + + + + +
diff --git a/root/etc/e-smith/templates.metadata/home/e-smith/files/samba/netlogon/netlogon.bat b/root/etc/e-smith/templates.metadata/home/e-smith/files/samba/netlogon/netlogon.bat new file mode 100644 index 0000000..6bbf39b --- /dev/null +++ b/root/etc/e-smith/templates.metadata/home/e-smith/files/samba/netlogon/netlogon.bat @@ -0,0 +1 @@ +PERMS=0755 diff --git a/root/etc/e-smith/templates/etc/smb.conf/61netlogonshare-logonscript b/root/etc/e-smith/templates/etc/smb.conf/61netlogonshare-logonscript new file mode 100644 index 0000000..6532350 --- /dev/null +++ b/root/etc/e-smith/templates/etc/smb.conf/61netlogonshare-logonscript @@ -0,0 +1,5 @@ +{ + return "" unless $smb{LogonScript}; + $OUT.="root preexec = perl $smb{LogonScript} %u %m %a %I\r\n"; +} + diff --git a/root/etc/e-smith/templates/home/e-smith/files/samba/netlogon/netlogon.bat/00netlogon b/root/etc/e-smith/templates/home/e-smith/files/samba/netlogon/netlogon.bat/00netlogon new file mode 100644 index 0000000..b5ad347 --- /dev/null +++ b/root/etc/e-smith/templates/home/e-smith/files/samba/netlogon/netlogon.bat/00netlogon @@ -0,0 +1,35 @@ +{ + $OUT.="\@echo off\r\n"; + $OUT.="rem --- Do not modify this file, if for any reason you need to run extra commands use the custom batch files groupname.bat under the custom folder or modify the custom-template under /etc/e-smith/templates-custom/home/e-smith/files/samba/netlogon/netlogon.bat ---\r\n"; + $OUT.="rem --- general logon script at TechnologyWise for Linux/Samba PDC functionality ---\r\n"; + + use esmith::ConfigDB; + my $db = esmith::ConfigDB->open_ro(); + my $smb = $db->get("smb"); + my $server_name = $smb->prop("ServerName"); + my $logon_drive = $smb->prop("LogonDrive") || H; + my @letters = ('G'..'Y'); + + $OUT.= "set SERVER=$server_name\r\n"; + $OUT.= "set LOGONDRIVE=$logon_drive\r\n\r\n\r\n"; + + $OUT.="net time \\\\%SERVER% /set /yes\r\n\r\n\r\n"; + $OUT.="rem --- general stuff i.e. drive mappings for all users ---\r\n"; + $OUT.="rem --- %username%.bat has been generated earlier\r\n"; + $OUT.="rem --- (see smb.conf, netlogon share, preexec statement)\r\n"; + $OUT.="rem --- to be able to assign drive mappings due to group membership\r\n"; + + if(ref(@letters) eq 'ARRAY'){ + foreach my $letter (@letters){ + if(($letter ne $logon_drive) and ($letter ne "Z")){ + $OUT.="if exist $letter: net use $letter: /del /y\r\n"; + } + } + } + + $OUT.="call \\\\%SERVER%\\netlogon\\users\\%USERNAME%.bat\r\n"; + $OUT.="rem --- Vista does not map the home drive automatically ---\r\n"; + $OUT.="IF NOT EXIST %LOGONDRIVE% NET USE %LOGONDRIVE%: \\\\%SERVER%\\%USERNAME%\r\n"; + $OUT.="if exist Z: net use Z: /del /y\r\n"; + $OUT.="rem --- eof netlogon.bat ---\r\n"; +} diff --git a/root/etc/e-smith/templates/home/e-smith/files/samba/netlogon/netlogon.bat/template-begin b/root/etc/e-smith/templates/home/e-smith/files/samba/netlogon/netlogon.bat/template-begin new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/e-smith/web/functions/ibayletters b/root/etc/e-smith/web/functions/ibayletters new file mode 100755 index 0000000..d8075c1 --- /dev/null +++ b/root/etc/e-smith/web/functions/ibayletters @@ -0,0 +1,107 @@ +#!/usr/bin/perl -wT + +# vim: ft=xml ts=4 sw=4 et: +#---------------------------------------------------------------------- +# heading : Collaboration +# description : I-bay letters +# navigation : 2000 2500 +# +# Copyright (c) 2001 Mitel Networks Corporation +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Technical support for this program is available from e-smith, inc. +# Please visit our web site www.e-smith.com for details. +#---------------------------------------------------------------------- + +use strict; +use esmith::FormMagick::Panel::ibayletters; + +my $f = esmith::FormMagick::Panel::ibayletters->new(); +$f->display(); +=pod + +=head1 NAME + +ibay-letters -- assign letters to ibays + +=head2 DESCRIPTION + +This screen allows the administrator to manage associations between i-bays and windows drive mapping letters + +=begin testing + +use esmith::FormMagick::Tester; +use esmith::TestUtils; +use esmith::TestUtils; +use esmith::ConfigDB; +use esmith::AccountsDB; + +my $panel = $Original_File; +my $ua = esmith::FormMagick::Tester->new(); + +my $c = esmith::ConfigDB->open(); +my $a = esmith::AccountsDB->open(); + +is (mode($panel), '4750', "Check permissions on script"); +ok ($ua->get_panel($panel), "ABOUT TO RUN L10N TESTS"); +is ($ua->{status}, 200, "200 OK"); +#like($ua->{content}, qr/FORM_TITLE/, "Saw untranslated form title"); +ok ($ua->set_language("en"), "Set language to English"); +ok ($ua->get_panel($panel), "Get panel"); +is ($ua->{status}, 200, "200 OK"); +like($ua->{content}, qr/Information bays/, "Saw translated form title"); + +ok ($ua->get_panel($panel), "ABOUT TO TEST CREATING IBAY"); +ok ($ua->follow("Click here"), "Follow 'create ibay' link"); +is ($ua->{status}, 200, "200 OK"); +like($ua->{content}, qr/Create a new information bay/, "Saw page title"); +like($ua->{content}, qr/Brief description/, "Saw description field"); +like($ua->{content}, qr/Group/, "Saw group field"); +like($ua->{content}, qr/User access via file/, "Saw user access field"); +like($ua->{content}, qr/Public access via/, "Saw Public access field"); +like($ua->{content}, qr/Add/, "Saw add button"); + +SKIP: { + + skip 10, "Unsafe!" unless destruction_ok(); + + ok ($ua->follow("Click here"), "ACTUALLY ADDING A NETWORK"); + $ua->field(); + $ua->click("Add"); + like($ua->{content}, qr/Successfully added ibay/, "Saw success message"); + + ok ($ua->follow("Remove"), "REMOVING NETWORK"); + like($ua->{content}, qr/Are you sure/, "Saw confirmation message"); + $ua->click("Remove"); + like($ua->{content}, qr/Successfully deleted/, "Saw success message"); + +} + + +=cut + +__DATA__ +
+ + FIRST_PAGE_DESCRIPTION + + + + + EDIT_GROUP_BATCH_FILES + + +
diff --git a/root/etc/e-smith/web/panels/manager/cgi-bin/.gitignore b/root/etc/e-smith/web/panels/manager/cgi-bin/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/root/home/e-smith/files/samba/netlogon/custom/.gitignore b/root/home/e-smith/files/samba/netlogon/custom/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/root/home/e-smith/files/samba/netlogon/logon_script b/root/home/e-smith/files/samba/netlogon/logon_script new file mode 100755 index 0000000..32c449b --- /dev/null +++ b/root/home/e-smith/files/samba/netlogon/logon_script @@ -0,0 +1,83 @@ +#!/usr/bin/perl + + use esmith::AccountsDB; + use esmith::ConfigDB; + +# get username and current PC name from arguments + my $username=$ARGV[0]; + my $currentpc=$ARGV[1]; + my $arch=$ARGV[2]; + my $ip_address=$ARGV[3]; + +# open accounts and config DBs + my $db = esmith::ConfigDB->open_ro(); + my $adb = esmith::AccountsDB->open_ro(); + + +# get samba server name + my $smb = $db->get("smb"); + my $server_name = $smb->prop("ServerName"); + +#get current date and time + ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); + $month = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')[$mon]; + + my $netlogon_root = "/home/e-smith/files/samba/netlogon"; + + + open LOG, ">>/var/log/netlogon.log"; + print LOG "$month $mday $hour:$min:$sec\t$username logged into $currentpc ($arch) - $ip_address\n"; + +# get groups user belongs to + setgrent(); + while (@grline=getgrent()) { + (@users)=split(' ',$grline[3]); + if (grep(/^$username$/,@users)) { + push(@groups,$grline[0]); + } + } + +# create drive mapping files for users + my $logonscriptdb = $db->get("twlogonscript"); + my $mount_point_path = $logonscriptdb->prop("MountPointsPath"); + my $user_home_mount_point_name = $logonscriptdb->prop("UserHomeMountPointName"); + open LOGON, ">$netlogon_root/users/$username.bat"; + mkdir "$netlogon_root/users/$username"; + open PAMCONF, ">$netlogon_root/users/$username/.pam_mount.conf.xml"; + print PAMCONF "\n"; + print PAMCONF "\n"; + print PAMCONF "\n"; + print PAMCONF "\n"; + + foreach my $ibay ($adb->ibays) + { + $ibay_name = $ibay->key; + $ibay_group = $ibay->prop('Group'); + $ibay_useraccess = $ibay->prop('UserAccess'); + $ibay_drive_letter = $ibay->prop('DriveLetter') || "NONE"; + if ($ibay_drive_letter ne "NONE") { + if (grep(/^$ibay_group$/,@groups) || ($ibay_useraccess eq "wr-group-rd-everyone")){ + print LOGON "NET USE $ibay_drive_letter: \\\\$server_name\\".$ibay_name."\r\n"; + print PAMCONF "\n"; + } + } + } + + + print LOGON "rem Custom group and user related scripts\r\n"; + foreach my $group (@groups) + { + if (-e "$netlogon_root/custom/$group.bat"){ + print LOGON "CALL \\\\$server_name\\netlogon\\custom\\$group.bat\r\n"; + } + + } + if (-e "$netlogon_root/custom/$username.bat"){ + print LOGON "CALL \\\\$server_name\\netlogon\\custom\\$username.bat\r\n"; + } + + print PAMCONF "\n"; + close PAMCONF; + close LOGON; + chmod(0755, "$netlogon_root/users/$username.bat"); + close LOG; diff --git a/root/home/e-smith/files/samba/netlogon/users/.gitignore b/root/home/e-smith/files/samba/netlogon/users/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/root/usr/lib/.gitignore b/root/usr/lib/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/ibayletters.pm b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/ibayletters.pm new file mode 100644 index 0000000..d9d826a --- /dev/null +++ b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/ibayletters.pm @@ -0,0 +1,297 @@ +#!/usr/bin/perl -w + +# +# $Id: ibayletters.pm,v 1.8 2005/09/06 05:49:52 apc Exp $ +# + +package esmith::FormMagick::Panel::ibayletters; + +use strict; +use warnings; +use esmith::FormMagick; +use esmith::AccountsDB; +use esmith::ConfigDB; +use esmith::DomainsDB; +use esmith::cgi; +use esmith::util; +use File::Basename; +use Exporter; +use Carp; +use Data::Dumper; +our @ISA = qw(esmith::FormMagick Exporter); +#we can not have the same subroutine declared two time +#use CGI::Carp qw(warningsToBrowser fatalsToBrowser); +our @EXPORT = qw( + print_ibay_table + wherenext + reload_settings_button + save_info +); + +our $VERSION = sprintf '%d.%03d', q$Revision: 1.8 $ =~ /: (\d+).(\d+)/; + +our $accountdb = esmith::AccountsDB->open(); +our $configdb = esmith::ConfigDB->open(); + +sub new +{ + my $proto = shift; + my $class = ref($proto) || $proto; + my $self = esmith::FormMagick::new($class); + $self->{calling_package} = (caller)[0]; + return $self; +} + +sub genSelect { + my $selectname = shift; + my $selected = shift; + my $names = shift; + my $values = shift; + my $OUT; + $OUT = "\n"; + return $OUT; + +} + +sub get_group_list { + my $self = shift; + my @groups = $accountdb->groups(); + my %groups = (); + foreach my $g (@groups) { + $groups{$g->key()} = $g->prop('Description')." (". + $g->key.")"; + } + return %groups; +} + + +*wherenext = \&CGI::FormMagick::wherenext; + +sub print_group_table { + my $self = shift; + my $q = $self->{cgi}; + my $group = $self->localise('Group'); + + my %groups = get_group_list(); + print $q->br(); + print $q->br(); + print $self->localise('GROUP_LIST_DESCRIPTION'); + print $q->br(); + print $q->br(); + print $q->end_table,"\n"; + print $q->start_table({-CLASS => "sme-border"}),"\n"; + print $q->Tr ( + esmith::cgi::genSmallCell($q, $group,"header"), + esmith::cgi::genSmallCell($q, $self->localise('CUSTOM_BATCH_FILE'),"header")),"\n"; + foreach my $group_name (keys %groups){ + print $q->Tr ( + esmith::cgi::genSmallCell($q, $groups{$group_name}), + esmith::cgi::genSmallCell($q, "$group_name.bat","normal")); + + } + print $q->end_table,"\n"; + return ""; +} + +sub print_ibay_table { + my $self = shift; + my $q = $self->{cgi}; + my $name = $self->localise('NAME'); + my $description = $self->localise('DESCRIPTION'); + my $drive_letter = $self->localise('DRIVE_LETTER'); + my $group = $self->localise('Group'); + my @ibays = $accountdb->ibays(); + my @names = ('F'..'Z','NONE'); + my @values = ('F'..'Z','NONE'); + my %group_list = get_group_list(); + unless ( scalar @ibays ) + { + print $q->Tr($q->td($self->localise('NO_IBAYS_DEFINED'))); + return ""; + } + + print $q->start_table({-CLASS => "sme-border"}),"\n"; + print $q->Tr ( + esmith::cgi::genSmallCell($q, $name,"header"), + esmith::cgi::genSmallCell($q, $description,"header"), + esmith::cgi::genSmallCell($q, $group,"header"), + esmith::cgi::genSmallCell($q, $drive_letter,"header")),"\n"; + my $scriptname = basename($0); + + foreach my $i (@ibays) + { + my $ibayname = $i->key(); + my $ibaydesc = $i->prop('Name'); + my $ibaygroup = $i->prop('Group'); + my $driveletter = $i->prop('DriveLetter') || 'NONE'; + + print $q->Tr ( + esmith::cgi::genSmallCell($q, $ibayname,"normal"), + esmith::cgi::genSmallCell($q, $ibaydesc,"normal"), + esmith::cgi::genSmallCell($q, $group_list{$ibaygroup}|| $ibaygroup,"normal"), + esmith::cgi::genSmallCell($q, genSelect("$ibayname","$driveletter",\@names,\@values),"normal")); + } + + my $db = esmith::ConfigDB->open_ro(); + my $smb = $db->get("smb"); + my $logon_drive = $smb->prop("LogonDrive"); + + + print $q->Tr ( + esmith::cgi::genSmallCell($q, $self->localise('HOME_DRIVE'),"normal"), + esmith::cgi::genSmallCell($q, $self->localise('USERS_HOME_DRIVE'),"normal"), + esmith::cgi::genSmallCell($q, "","normal"), + esmith::cgi::genSmallCell($q, genSelect("logondrive","$logon_drive",\@names,\@values),"normal")); + + print $q->end_table,"\n"; + print $q->hidden (-name => 'IbayLettersSave', -override => 1, -default => 1); + print $q->hidden (-name => 'WorkgroupSave', -id => 'WorkgroupSave', -override => 1, -default => 0); + print $q->submit (-name => 'sendbutton', -value => $self->localise('SAVE') ); + print "

".$self->localise('SMB_NEEDS_RESTART_PROCEED')."

"; + print "localise('RELOAD_WORKGROUP_SETTINGS')."\">"; + return ""; +} + + +sub get_batch_contents(){ + + my ($self) = @_; + my $group_name = $self->cgi->param('groupname'); + + my $batchfileName = "/home/e-smith/files/samba/netlogon/custom/$group_name.bat"; + my @batchfileTemp; + my $batchfileContents=""; + my $returnValue; + my $q = $self->{cgi}; + + if ( -f $batchfileName) { + open(BATCHFILE,"<$batchfileName") or print $self->localise('FILE_DOES_NOT_EXIT_WILL_BE_CREATED')." $batchfileName"; + while(){ + push(@batchfileTemp,$_); + } + close(BATCHFILE); + + $batchfileContents .= join ("",@batchfileTemp); + } + $returnValue ='
'; + $returnValue .= $q->hidden (-name => 'saveBatchFile', -override => 1, -default => 1); + $returnValue .= $q->hidden (-name => 'save', -override => 1, -default => 1); + $returnValue .= $q->hidden (-name => 'group_name', -override => $group_name, -default => $group_name); + $returnValue .= $q->submit (-name => 'sendbutton', -value => 'Save'); + + return $returnValue; + +} + + +sub save_info { + my ($self) = @_; + + if( defined $self->cgi->param('wherenext') && $self->cgi->param('wherenext') eq "CustomBatchGroup"){ + $self->wherenext('CustomBatchGroup'); + return; + } + + if( defined $self->cgi->param('saveBatchFile') && $self->cgi->param('saveBatchFile') eq "1"){ + + my $group_name = $self->cgi->param('groupname'); + + # Untainting the variable, not sure why it all of a sudden started doing that. + if($group_name =~ /^(\w{1,4})$/) { + $group_name = $1; + } + + if(!getgrnam($group_name)){ + my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); + open LOG, ">>/var/log/netlogon_error.log"; + print LOG ($year+1900)."-$mon-$mday at $hour:$min:$sec someone tried to create arbritrary files. Details below:\n"; + foreach my $key (sort(keys(%ENV))) { + print LOG "$key = $ENV{$key}\n"; + } + print LOG "----------------------------------------------\n"; + die('hacking attempt'); + } + + + my $batchfileName = "/home/e-smith/files/samba/netlogon/custom/$group_name.bat"; + + + my $batchContents = $self->cgi->param('batchfilecontents'); + open BATCHFILE,">$batchfileName"; + print BATCHFILE "$batchContents"; + close(BATCHFILE); + chmod(0755, "$batchfileName"); + $self->success($self->localise('BATCH_FILE_SAVED_SUCCESSFULLY')." $batchfileName"); + $self->wherenext('First'); + return; + + } + if( $self->cgi->param('WorkgroupSave') eq "1"){ + if (system ("/sbin/e-smith/signal-event", "workgroup-update") == 0){ + $self->success($self->localise('WORKGROUP_SETTINGS_MODIFICATION_SUCCESSFULL')); + }else { + $self->error($self->localise('WORKGROUP_SETTINGS_MODIFICATION_UNSUCESSFULL')); + } + $self->wherenext('First'); + return; + } + + + + if( $self->cgi->param('IbayLettersSave') eq "1"){ + my @ibays = $accountdb->ibays(); + my $smb = $configdb->get("smb"); + my @check = (); + + foreach my $i (@ibays){ + if($self->cgi->param($i->key()) ne "NONE"){ + push(@check, $self->cgi->param($i->key()) ); + } + } + push(@check, $self->cgi->param('logondrive') ); + my %counts = (); + + for (@check){ + $counts{$_}++; + } + my $error = 0; + my $error_msg; + foreach my $keys (keys %counts) { + if ($counts{$keys} >1 ){ + $error =1 ; + $error_msg.= $self->localise('DRIVE_LETTER_SELECTED_MORE_THAN_ONCE')." $keys
"; + } + } + if($error eq 1){ + $self->error($error_msg); + $self->wherenext('First'); + return; + } + foreach my $i (@ibays){ + my $ibayname = $i->key(); + my $acct = $accountdb->get($ibayname); + if ($acct->prop('type') eq 'ibay') { + $acct->merge_props(DriveLetter => $self->cgi->param("$ibayname")); + } + } + $smb->merge_props(LogonDrive => $self->cgi->param('logondrive')); + $self->success($self->localise('DRIVE_LETTERS_SUCCESSFULLY_MODIFIED')); + $self->wherenext('First'); + return; + } + $self->wherenext('First'); + return; +} + diff --git a/smeserver-tw-logonscript.spec b/smeserver-tw-logonscript.spec new file mode 100644 index 0000000..cb5836a --- /dev/null +++ b/smeserver-tw-logonscript.spec @@ -0,0 +1,166 @@ +# $Id: smeserver-tw-logonscript.spec,v 1.9 2024/09/06 10:46:51 terryfage Exp $ +# Authority: chriscosta +# Name: Christian Costa + +%define name smeserver-tw-logonscript +%define version 1.5 +%define release 13 +Summary: TechnologyWise Windows/Linux logon script for Samba +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +Source: smeserver-tw-logonscript-%{version}.tar.xz +License: GNU GPL version 2 +Group: Networking/Daemons +BuildArchitectures: noarch +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot +BuildRequires: e-smith-devtools +Provides: perl-esmith-FormMagick-Panel-ibayletters + + +%description +TechnologyWise Windows/Linux logon script for Samba + +%prep +%setup + +%build +perl createlinks + +%install +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + > %{name}-%{version}-filelist + +%clean +cd .. +rm -rf %{name} + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root) + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 1.5-13.sme +- Roll up patches and move to git repo [SME: 12338] + +* Sat Sep 07 2024 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Fri Sep 06 2024 Terry Fage 1.5-12.sme +- apply locale 2024-09-06.patch + +* Sun Oct 02 2022 John Crisp 1.5-11.sme +- Add Provides [SME: 12203] + +* Wed Aug 24 2022 John Crisp 1.5-10.sme +- Revert button removal and update to the onclick [SME: 12154] + +* Tue Aug 24 2021 Terry Fage 1.5-9.sme +- apply locale 2021-08-24 patch + +* Sun Apr 18 2021 Jean-Philippe Pialasse 1.5-8.sme +- fix pannel warnings and errors [SME: 11039] +- Incorrect file premission netlogon *.bat [SME: 6511] +- add metadata for main netlogon.bat + +* Mon Mar 29 2021 Brian Read 1.5-6.sme +- Add Update event to createlinks [SME: 11038] + +* Mon Mar 29 2021 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Wed Oct 14 2020 Brian Read 1.5-5.sme +- Initial import to SME10 tree [SME: 11038] + +* Wed Mar 09 2016 JP Pialasse 1.5-4.sme +- apply locale 2016-03-09 patch + +* Tue Sep 08 2015 stephane de Labrusse 1.5-3.sme +- Initial release to contribs9 [SME: 9047] +- added smeserver-tw-logonscript-1.5.bz9047.Carp_declared_2_times.patch + +* Sun Jul 14 2013 JP Pialasse 1.3-21.sme +- apply locale 2013-07-14 patch + +* Tue Mar 20 2012 SME Translation Server 1.3-20.el6 +- apply locale 2012-03-20 patch + +* Wed Apr 27 2011 SME Translation Server 1.3-19.sme +- apply locale 2011-04-27 patch + +* Sun Mar 06 2011 SME Translation Server 1.3-18.sme +- apply locale 2011-03-06 patch + +* Sun May 23 2010 SME Translation Server 1.3-17.sme +- apply locale 2010-05-23 patch + +* Tue Mar 02 2010 SME Translation Server 1.3-16.sme +- apply locale 2010-03-02 patch + +* Thu Jan 28 2010 Christian Costa 1.3-15 +- Removed %pre %preun from spec file +- Added new files under etc/e-smith/db/configuration/defaults/twlogonscript/ +- Change to the main script so that it will comply with the new db name + +* Wed Jan 27 2010 Christian Costa 1.3-14 +- Created a new configuration database for tw-logonscript. Two properties MountPointsPath and UserHomeMountPointName have been added. +- Changed the spec file to set the default properties automatically + +* Tue Dec 1 2009 Christian Costa 1.3-13 +- Changed event name on createlinks to bootstrap-console-save instead of post-upgrade. + +* Tue Dec 1 2009 Christian Costa 1.3-12 +- Changed the createlinks script to correctly set up the templates to expand so that netlogon.bat will be expanded with workgroup-update and post-upgrade + +* Thu Nov 19 2009 Christian Costa 1.3-11 +- Changes to the netlogon.bat template. If no drive letters were associate to I-bays it generated errors. Also defaulted the home drive to H: in case none is set. +- Added two missing files to the workgroup-update and post-upgrade events. + +* Mon Nov 16 2009 Christian Costa 1.3-10 +- Changes to the SME Server panel. Now it displays a list with all groups that allows custom group batch files to be edited/created for all groups not only the ones associated with i-bays. +- Added a new lexicon to the en_us file + +* Wed Nov 4 2009 Christian Costa 1.3-9 +- Fixed a security problem that would allow the creation of arbitrary files on the system. + +* Thu Oct 29 2009 Christian Costa 1.3-8 +- Added additional pam_mount options to the .pam_mount.xml generation routine +- Changed the user's home dir mount point name from home to win_home + +* Tue Oct 27 2009 SME Translation Server 1.3-7.sme +- apply locale 2009-10-27 patch + +* Wed Oct 21 2009 SME Translation Server 1.3-6.sme +- apply locale 2009-10-21 patch +- cleanup changelog to be more readable + +* Tue Oct 20 2009 Christian Costa 1.3-5 +- Added e-smith-devtools as a build requirement + +* Tue Oct 20 2009 Christian Costa 1.3-04 +- Removed a blank space from the source code for testing purposes +* Thu Oct 8 2009 Christian Costa +- Added localisation support +- Added server-manager embedded custom group batch file editing +- Fixed a bug with user custom scripts that were being executed more than once + +* Thu Sep 3 2009 Christian Costa +- New specs file, new version number + +* Mon Aug 10 2009 Christian Costa +- Branched out from the 61netlogonshare custom script and added a new db property for smb called LogonScript + +* Wed Jul 8 2009 Christian Costa +- Added .pam_mount.conf.xml generation for Linux clients using libpam-mount. + +* Tue Jul 29 2008 Christian Costa + Wed Jul 29 2008 --> Wed Jul 23 2008 or Tue Jul 29 2008 or Wed Jul 30 2008 or .... +- Added a feature that maps the drive if all users are allowed to read an I-bay. +- Extended the drive letter range from F to Z. + +* Wed Jul 9 2008 Christian Costa +- Added the server-manager web interface to the package.