Re: [wpkg-users] wpkgCreateReport - new release
> > There is a new release (1.9.5) of wpkgCreateReport at > available. This release fixes some minor bugs and introduces a new > template for HTML reports with the ability to dynamically filter report > rows by clicking at the column caption. Which template you use can be > specified via wpkgCreateReport.xml or via command line. Just take a look > at the manual. > > Thanks to Stefan Pendel for contributing ideas and some lines of code. > > Regards, > grubi. I like the dynamic report much better than my clumsy attempt at this. It is much faster and removes the IE limitations. Thanks for this wonderful update. --- Stefan Pendl - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
[wpkg-users] wpkgCreateReport - new release
Hi. There is a new release (1.9.5) of wpkgCreateReport at http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.htm available. This release fixes some minor bugs and introduces a new template for HTML reports with the ability to dynamically filter report rows by clicking at the column caption. Which template you use can be specified via wpkgCreateReport.xml or via command line. Just take a look at the manual. Thanks to Stefan Pendel for contributing ideas and some lines of code. Regards, grubi. - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
Hi, > > New bugfixing release of wpkgCreateReport can be found at: > > http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.htm > > > at first: thanx for this nice work. But, for some of my PCs, I get a S:\install\wpkg\report\createReport.js(881, 7) Laufzeitfehler in Microsoft JScript: 'null' ist Null oder kein Objekt and/or same with (1746,7). The following patch clears the problem for me, perhaps it is not enough for all cases - but you get an idea. If you need the files or more information from me, drop me a line. Best regards, Falko diff -u org/createReport.js createReport.js --- org/createReport.js2009-09-05 18:24:54.0 +0200 +++ createReport.js2009-09-10 13:54:28.0 +0200 @@ -878,6 +878,14 @@ var valB; var length; + if (a == null) + { + return 2; + } + if (b == null) + { + return 3; + } a = a.split("."); b = b.split("."); length = Math.max(a.length, b.length); @@ -1742,7 +1750,8 @@ var i; var ch; var result; - + if (str == null) return result; + str = str.replace(/\&/g, "&"); // ampersands (&) str = str.replace(/\/g, ">"); // greater-thans (>) - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
> > > > > > > > > > > > > > > > > > > > Here is the final version from my point, so to not annoy > > > > > Rainer or Tomasz. > > > > > > > > > > I am not a web nor a JS programmer, I just learn quite fast. > > > > > > > > > > This one lets you define a list of array elements in the > > > > > head, which should be filled by createReport.js, currently it > > > > > only contains some example values. > > > > > > > > > > I would use only the date for the last modified row, since > > > > > the time is changing to much. > > > > > > > > > > Currently applying one filter resets the others, since I > > > > > don't know how to code this. > > > > > > > > > > Attached find the template file only, a working example will > > > > > be posted in a separate message. > > > > > > > > > > > > > Attached find the working example to get your feet wet. > > > > > > > > > > On a second thought, the combo box items could be read from > > > files, since there will be a huge amount list items at some sites. > > > > > > --- > > > > Attached find the template file, which gets the contents of > > the combo boxes from the table cells ;-) > > > > For long lists this will take some time, so make sure you > > have a fast browser in respect of executing JS, not IE. > > > > --- > > Attached find an updated template, which keeps the > alternating background color for odd and even rows. > Attached find the template, which has passed W3C validation, so all my changes are now valid HTML 4.01 ;-) --- Stefan Title: WPKG Client Package Status Report All All All All OK Install Upgrade Downgrade Remove All - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
> > > > > > > > > > > > > > Here is the final version from my point, so to not annoy > > > > Rainer or Tomasz. > > > > > > > > I am not a web nor a JS programmer, I just learn quite fast. > > > > > > > > This one lets you define a list of array elements in the > > > > head, which should be filled by createReport.js, currently it > > > > only contains some example values. > > > > > > > > I would use only the date for the last modified row, since > > > > the time is changing to much. > > > > > > > > Currently applying one filter resets the others, since I > > > > don't know how to code this. > > > > > > > > Attached find the template file only, a working example will > > > > be posted in a separate message. > > > > > > > > > > Attached find the working example to get your feet wet. > > > > > > > On a second thought, the combo box items could be read from > > files, since there will be a huge amount list items at some sites. > > > > --- > > Attached find the template file, which gets the contents of > the combo boxes from the table cells ;-) > > For long lists this will take some time, so make sure you > have a fast browser in respect of executing JS, not IE. > > --- Attached find an updated template, which keeps the alternating background color for odd and even rows. --- Stefan Title: WPKG Client Package Status Report All All All All OK Install Upgrade Downgrade Remove All - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
> > > > > > > > > Here is the final version from my point, so to not annoy > > > Rainer or Tomasz. > > > > > > I am not a web nor a JS programmer, I just learn quite fast. > > > > > > This one lets you define a list of array elements in the > > > head, which should be filled by createReport.js, currently it > > > only contains some example values. > > > > > > I would use only the date for the last modified row, since > > > the time is changing to much. > > > > > > Currently applying one filter resets the others, since I > > > don't know how to code this. > > > > > > Attached find the template file only, a working example will > > > be posted in a separate message. > > > > > > > Attached find the working example to get your feet wet. > > > > On a second thought, the combo box items could be read from > files, since there will be a huge amount list items at some sites. > > --- Attached find the template file, which gets the contents of the combo boxes from the table cells ;-) For long lists this will take some time, so make sure you have a fast browser in respect of executing JS, not IE. --- Stefan Title: WPKG Client Package Status Report All All All All OK Install Upgrade Downgrade Remove All - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
[wpkg-users] wpkgCreateReport LastUpdate
@Simon: I'm aware of the problem with the local wpkg.xml filedate. Maybe the devs of wpkg could add the timestamp when a package is applied as attribute to the tag of the local wpkg file. The workaround you found is possible but IMHO there are to much environmental dependencies (grep, append log files) to make it standard behavour. grubi. - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
> > > > > Here is the final version from my point, so to not annoy > > Rainer or Tomasz. > > > > I am not a web nor a JS programmer, I just learn quite fast. > > > > This one lets you define a list of array elements in the > > head, which should be filled by createReport.js, currently it > > only contains some example values. > > > > I would use only the date for the last modified row, since > > the time is changing to much. > > > > Currently applying one filter resets the others, since I > > don't know how to code this. > > > > Attached find the template file only, a working example will > > be posted in a separate message. > > > > Attached find the working example to get your feet wet. > On a second thought, the combo box items could be read from files, since there will be a huge amount list items at some sites. --- Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
Here is the final version from my point, so to not annoy Rainer or Tomasz. I am not a web nor a JS programmer, I just learn quite fast. This one lets you define a list of array elements in the head, which should be filled by createReport.js, currently it only contains some example values. I would use only the date for the last modified row, since the time is changing to much. Currently applying one filter resets the others, since I don't know how to code this. Attached find the template file only, a working example will be posted in a separate message. --- Stefan Title: WPKG Client Package Status Report All All All All OK Install Upgrade Downgrade Remove All - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
I have changed the script to only walk the table once to change the row display. I am using eval() and the class name as variables to fill an array with the states of the combo boxes. Attached find an updated template. --- Stefan Title: WPKG Client Package Status Report OK Install Upgrade Downgrade Remove - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
This seems to be the last update to the script. There was a problem with not all matching rows being hidden/collapsed. --- Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
Another update to the script, since IE does not support the collapse value of visibility: So users of IE will not have the full advantage, since the rows are only hidden and still occupy the space they used. Firefox and other browsers will just show the rows not collapsed, so the table is only as high as the rows shown. --- Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
> > > > > > @Stefan: > > > > > > It was also my plan to include a hiding functionality for certain rows > > > in HTML via javascript but I did not find > > > the time so far. So if you are doing any similar please post back the > > > result so we maybe can intergate it into the > > > codebase. > > > > > Grubi, > >I will see what I can do, implementing supression by state is no > > problem, but for the other columns, the JS script would have to fill an > > array with the available values to be able to filter by available items. > > I will report back, when I have something. > > > > --- > > Stefan > > > I have added a basic show/hide feature to the HTML template: > > Place at the end of the head: > ---snip > The problem is that all the information gets paced inside the first column > after a row is hidden and shown again, so I will have to investigate in the > correct usage of the display property or if I need to use a different one. > > --- > Stefan > OK, I have fond the solution, you should read the manual before you use code working for divisions for tables. The corrected code that needs to be placed into the head is: So now we can at least hide rows based on install states. --- Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
> > > > @Stefan: > > > > It was also my plan to include a hiding functionality for certain rows > > in HTML via javascript but I did not find > > the time so far. So if you are doing any similar please post back the > > result so we maybe can intergate it into the > > codebase. > > > Grubi, >I will see what I can do, implementing supression by state is no > problem, but for the other columns, the JS script would have to fill an array > with the available values to be able to filter by available items. > I will report back, when I have something. > > --- > Stefan > I have added a basic show/hide feature to the HTML template: Place at the end of the head: Place at the beginning of the body: The problem is that all the information gets paced inside the first column after a row is hidden and shown again, so I will have to investigate in the correct usage of the display property or if I need to use a different one. --- Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
[wpkg-users] wpkgCreateReport - last install date
Hi all, wpkgCreateReport lacks a installation date for each package. The XML file is updated even if there is no installs on the client, thus the "last update" refers to the last time WPKG is executed (which is the last reboot of the PC) I found that the best place to get this is to keep the wpkg.js logs in a central place, LogAppend true, then I can search All logs with grep to find date of installation of each package. For the record if anyone is interested, here's my setup: config.xml: Examples of search: (run this from ClientState directory). grep ERROR *.log > WPKG-errors.log grep Processing *.log > WPKG-installs.log Simon Begin- wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
> > @Stefan: > > It was also my plan to include a hiding functionality for certain rows > in HTML via javascript but I did not find > the time so far. So if you are doing any similar please post back the > result so we maybe can intergate it into the > codebase. > Grubi, I will see what I can do, implementing supression by state is no problem, but for the other columns, the JS script would have to fill an array with the available values to be able to filter by available items. I will report back, when I have something. --- Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
[wpkg-users] wpkgCreateReport
@Andreas: I did not use this feature so I have no idea how it works exactly. If I find some time I will loog at wpkg.js and integrate it into wpkgCreateReport if it is not to complicated. @Simon: The reason is to show the progress of wpkgCreateReport. It's clear that the script pauses on every output if you execute it directly from Explorer because js extensions are registered to WSCRIPT.EXE by default. To avoid this simply call CSCRIPT createReport.js from the comand line or register js extensions to be handled by CSCRIPT.EXE instead. @Stefan: It was also my plan to include a hiding functionality for certain rows in HTML via javascript but I did not find the time so far. So if you are doing any similar please post back the result so we maybe can intergate it into the codebase. Regards grubi. - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
> > > Hi Grubi, > > works perfectly now ;-D > > > > Now we do have a simple report tool, that does not need any additional > > software, like the other one relying on Perl. > > > > > Hello, > > I agree, but I'd like to ask again if it is possible to integrate this > with wpkgWeb/wpkgExpress, i.e. specify a web path to the XML-Files. I > have little to no knowledge of VBScript, but I assume it cannot be that > difficult. > One should be able to use an UNC path without modifying the current script. If you need to use a real HTTP address, there would be a need to check the paths and determine if they are web addresses, then download the files from the server to a local temporary cache, create the report and delete the temporary files. This would need the smallest adjustments, I think. Lets hear, what Grubi thinks about this. --- Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
Pendl Stefan schrieb: >> New bugfixing release of wpkgCreateReport can be found at: >> >> http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.htm >> >> Regards. >> grubi. >> - >> > > Hi Grubi, > works perfectly now ;-D > > Now we do have a simple report tool, that does not need any additional > software, like the other one relying on perl. > > Hello, I agree, but I'd like to ask again if it is possible to integrate this with wpkgWeb/wpkgExpress, i.e. specify a web path to the XML-Files. I have little to no knowledge of VBScript, but I assume it cannot be that difficult. Bye, Andreas - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport
> > New bugfixing release of wpkgCreateReport can be found at: > > http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.htm > > Regards. > grubi. > - Hi Grubi, works perfectly now ;-D Now we do have a simple report tool, that does not need any additional software, like the other one relying on perl. --- Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
[wpkg-users] wpkgCreateReport
Hi. New bugfixing release of wpkgCreateReport can be found at: http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.htm Regards. grubi. - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
[wpkg-users] wpkgCreateReport
@Pendl Stefan Thanks for reporting the issues. Both will be fixed in the next version, which I will release towmorrow. Regards, grubi. - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
> -Original Message- > From: wpkg-users-boun...@lists.wpkg.org > [mailto:wpkg-users-boun...@lists.wpkg.org] On Behalf Of Pendl Stefan > Sent: Tuesday, September 01, 2009 7:41 PM > To: wpkg > Subject: Re: [wpkg-users] wpkgCreateReport Update > > > Grubi, > >there is a problem with the color of the HTML report > (v1.8.1) the following line needs to be changed from: > >this.stateClasses = new Array("pkgStateOk", > "pkgStateInstall", "pkgStateRemove", "pkgStateUpgrade", > "pkgStateDowngrade"); > > to: > >this.stateClasses = new Array("pkgStateOk", > "pkgStateInstall", "pkgStateUpgrade", "pkgStateDowngrade", > "pkgStateRemove"); > > To match the pkgState definition at the start. > > I like the new version very much, it is the thing I needed to > create a simple report as scheduled task. > Grubi, It seems there is a problem with dotted revision numbers of packages, it did not return the upgrade for a package which I changed from 6.0.2.3 to 6.0.2.4 or 5.4.3.0 to 5.4.5.0 (Notepad++). Must the revision check be updated to the one used by WPKG.JS? Thanks in advance, Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
Grubi, there is a problem with the color of the HTML report (v1.8.1) the following line needs to be changed from: this.stateClasses = new Array("pkgStateOk", "pkgStateInstall", "pkgStateRemove", "pkgStateUpgrade", "pkgStateDowngrade"); to: this.stateClasses = new Array("pkgStateOk", "pkgStateInstall", "pkgStateUpgrade", "pkgStateDowngrade", "pkgStateRemove"); To match the pkgState definition at the start. I like the new version very much, it is the thing I needed to create a simple report as scheduled task. Thanks so much. --- Stefan - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
Malte, Thanks for your thorough explanation. I'm running a samba (NT4-style) domain. You've given me some more thing to think about. Mark - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
Hi Mark, Am Samstag, 22. August 2009 20:28:00 schrieb Mark Nienberg: > I tested with the "Execute After" command and could not get it to work > correctly. In my case the share where I need to copy the file is a samba > share and I don't really want to make it world writeable. It appeared from > my testing that wpkg tried to connect using the SYSTEM account, which has > no password and no account on the samba server. The SYSTEM account will use the client's machine account (which does have a password, just one you don't personally know) iff you're using AD. Please refer to my reply to Lukasz' mail. Without an AD, you will have to use some "regular" user account to access the share and configure the clients to use it. The password storage is pretty much as secured as the machine password is with one major drawback: unless you're going to add a separate user account for each client, a compromised machine will force you to change the single password and propagate the change to the remaining clients. With machine authentication, all you need to do is deactivate or delete the machine account and it will no longer be able to access your server(s). > Eventually I decided to do the copy as a wpkg package with "Execute > Always", so the user/password specified in the client is used instead of > SYSTEM. This has the disadvantage that it might be out of date by one > reboot, unless someone can tell me how to make this package execute last. > > Another option might be to use a daily Windows Scheduled job, since you can > specify user/password there. The task scheduler is one option, some others come to mind (not intended to be an exhaustive list): * The connection to the distribution share the WPKG client set up is still connected when the Execute After script is run. You could then have just one subdir writable to the respective user and deposit the XMLs there. This is quite viable and rather secure, only with the bad taste of a storing the password for a most probably shared account. * You could point Execute After to a batch file that sets up its own connection via net use - but this is a lot worse than the above as you'd need to include the password in plain text in the batch file while the WPKG client stores it in the LSA database instead. * You could sandbox the clients' access by creating a subdirectory for each client machine and setting up a share for use with one of the above means or even anonymous, including the machine name in the path via samba's variable expansion, so the share is called e.g. \\setup\reports on every client but in fact points to a dedicated directory like /srv/reports/host1 on the server. This option's security level is basically determined by what variable you use for the path name and what it takes for a rogue client to forge its value. * Instead of a simple copy, you could somehow upload the file to a web server that authenticates the client by other fancy means. Regards, Malte - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
Am Sonntag, 23. August 2009 00:56:29 schrieb Lukasz Zalewski: > Malte Starostik wrote: > > in the client, you can configure a command to execute after wpkg.js > > (Variable, actions -> Execute after). There you can put sth. like > > cmd /c copy /y "%SystemRoot%\system32\wpkg.xml" > > \\host\share\%COMPUTERNAME%.xml > > > > Mybe you need the testing version of the client for that - see > > http://www1.wpkg.org/files/client/beta/test/2009-01-24/ > > Then you need to somehow setup the connection to the share, one IMHO very > > clean way to do this with the above testing version is to check "Path, > > users _> Use computer account and password" and grant the group "Domain > > Computers" read permission on the share(s) containing WPKG and SOFTWARE > > and write permissions on the share referenced in the above copy command. > > This way there is no need to save some user's password for WPKG to run. > > Malte, > Did you managed, or heard anyone being successful in getting computer > authentication working on samba 3.0.X with ldap backend? Hi Lukasz, this is not going to work. The SYSTEM account authenticates to servers using the machine account, but only if both the client and the server are members of an Active Directory domain. I'm running the shares with computer authentication on a samba 3.0.33 server with ACLs like these on the shares' root directories: This is where WPKG resides on, user apache has full access for management purposes: # file: wpkg/ # owner: root # group: domain\040admins user::rwx user:apache:rwx group::rwx group:domain\040computers:r-x mask::rwx other::--- default:user::rwx default:user:apache:rwx default:group::rwx default:group:domain\040computers:r-x default:mask::rwx default:other::--- SOFTWARE share: the computer accounts can install from here, the admins have full acces, but normal users can't take the setup files to where they don't belong: # file: software/ # owner: root # group: domain\040admins user::rwx group::rwx group:domain\040computers:r-x mask::rwx other::--- default:user::rwx default:group::rwx default:group:domain\040computers:r-x default:mask::rwx default:other::--- This is where the clients write their logfiles to: # file: logs # owner: root # group: domain\040admins user::rwx user:apache:rwx group::rwx group:domain\040computers:rwx mask::rwx other::--- default:user::rwx default:user:apache:rwx default:group::rwx default:group:domain\040computers:rwx default:mask::rwx default:other::--- Then there's a "status" share with the same permissions like logs where the wpkg.xml files are copied to. The whole thing could just as well reside in subdirectoruies of just a single share of course. The "logs" and "status" shares could be somewhat more secured with the sticky bit so a client can never mess with the other clients' log files even if someone managed to hook into the WPKG client's execution, I just haven't verified that one yet. The samba server is a member of our AD domain and thus running with security = ads. User mapping is done with winbind. Unfortunately there seems to be no way to apply this scheme to a samba (read: NT) domain as the clients will refuse to authenticate there :-( So, if you want to go for a samba-only setup with no Windows ADC, you'll have to either store credentials on the clients or grant anonymous access to the shares, none of which seems optimal. I haven't had the time to explore samba4 yet, but that should finally close this gap :-) Cheers, Malte - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
Malte Starostik wrote: Hello Mark, Am Freitag, 21. August 2009 20:44:03 schrieb Mark Nienberg: grubi wrote: Download and user manual can be found at: http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.h tm The user manual says: "The prerequisite is that you have copied the wpkg.xml file of every client to a central directory, carrying the name of the computer it originates from. This can easily be achieved by appending something like the following command line at the end of the script file you are calling wpkg from." What is the best way to do this if you are using the wpkg-client service to call wpkg? I'm guessing that maybe it should be listed in the "Advanced" section under "Execute After". In that case, does anyone know which user/passwd combination will be used to execute the command? I'd like to be sure that user actually has write privileges in the share that will hold the xml files. in the client, you can configure a command to execute after wpkg.js (Variable, actions -> Execute after). There you can put sth. like cmd /c copy /y "%SystemRoot%\system32\wpkg.xml" \\host\share\%COMPUTERNAME%.xml Mybe you need the testing version of the client for that - see http://www1.wpkg.org/files/client/beta/test/2009-01-24/ Then you need to somehow setup the connection to the share, one IMHO very clean way to do this with the above testing version is to check "Path, users _> Use computer account and password" and grant the group "Domain Computers" read permission on the share(s) containing WPKG and SOFTWARE and write permissions on the share referenced in the above copy command. This way there is no need to save some user's password for WPKG to run. Malte, Did you managed, or heard anyone being successful in getting computer authentication working on samba 3.0.X with ldap backend? Thx Luk - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
Hi Mark, Mark Nienberg wrote: > I tested with the "Execute After" command and could not get it to work > correctly. In my case the share where I need to copy the file is a > samba share and I don't really want to make it world writeable. It > appeared from my testing that wpkg tried to connect using the SYSTEM > account, which has no password and no account on the samba server. You could specify a cmd script in the "Execute After" setting which maps the share using a specified user/password. It's not really secure unless you protect the script not to be readable by local users. > Eventually I decided to do the copy as a wpkg package with "Execute > Always", so the user/password specified in the client is used instead of > SYSTEM. This has the disadvantage that it might be out of date by one > reboot, unless someone can tell me how to make this package execute last. You might use the latest 1.1.2-RC* release. It includes a change which writes changes to the local settings (wpkg.xml) right after the modification instead of just when wpkg.js exits. As a result if you put an execute=always package at the end of each run it will copy an updated wpkg.xml. In order to run it "at the end" you must specify the lowest priority value for this package. My package simply looks like this: Where the script is as simple as follows: @echo off copy %SYSTEMROOT%\system32\wpkg.xml \\host\share\wpkg-xml\%COMPUTERNAME%.xml /y exit 0 Well, you might add explicit credentials to access the server. br, Rainer - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
Malte Starostik wrote: Am Freitag, 21. August 2009 20:44:03 schrieb Mark Nienberg: What is the best way to do this if you are using the wpkg-client service to call wpkg? I'm guessing that maybe it should be listed in the "Advanced" section under "Execute After". In that case, does anyone know which user/passwd combination will be used to execute the command? I'd like to be sure that user actually has write privileges in the share that will hold the xml files. in the client, you can configure a command to execute after wpkg.js (Variable, actions -> Execute after). There you can put sth. like cmd /c copy /y "%SystemRoot%\system32\wpkg.xml" \\host\share\%COMPUTERNAME%.xml Mybe you need the testing version of the client for that - see http://www1.wpkg.org/files/client/beta/test/2009-01-24/ Then you need to somehow setup the connection to the share, one IMHO very clean way to do this with the above testing version is to check "Path, users _> Use computer account and password" and grant the group "Domain Computers" read permission on the share(s) containing WPKG and SOFTWARE and write permissions on the share referenced in the above copy command. This way there is no need to save some user's password for WPKG to run. I tested with the "Execute After" command and could not get it to work correctly. In my case the share where I need to copy the file is a samba share and I don't really want to make it world writeable. It appeared from my testing that wpkg tried to connect using the SYSTEM account, which has no password and no account on the samba server. Eventually I decided to do the copy as a wpkg package with "Execute Always", so the user/password specified in the client is used instead of SYSTEM. This has the disadvantage that it might be out of date by one reboot, unless someone can tell me how to make this package execute last. Another option might be to use a daily Windows Scheduled job, since you can specify user/password there. -- Mark Nienberg Sent from an invalid address. Please reply to the group. - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
Hello Mark, Am Freitag, 21. August 2009 20:44:03 schrieb Mark Nienberg: > grubi wrote: > > Download and user manual can be found at: > > http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.h > >tm > > The user manual says: > > "The prerequisite is that you have copied the wpkg.xml file of every client > to a central directory, carrying the name of the computer it originates > from. This can easily be achieved by appending something like the following > command line at the end of the script file you are calling wpkg from." > > What is the best way to do this if you are using the wpkg-client service to > call wpkg? I'm guessing that maybe it should be listed in the "Advanced" > section under "Execute After". In that case, does anyone know which > user/passwd combination will be used to execute the command? I'd like to > be sure that user actually has write privileges in the share that will hold > the xml files. in the client, you can configure a command to execute after wpkg.js (Variable, actions -> Execute after). There you can put sth. like cmd /c copy /y "%SystemRoot%\system32\wpkg.xml" \\host\share\%COMPUTERNAME%.xml Mybe you need the testing version of the client for that - see http://www1.wpkg.org/files/client/beta/test/2009-01-24/ Then you need to somehow setup the connection to the share, one IMHO very clean way to do this with the above testing version is to check "Path, users _> Use computer account and password" and grant the group "Domain Computers" read permission on the share(s) containing WPKG and SOFTWARE and write permissions on the share referenced in the above copy command. This way there is no need to save some user's password for WPKG to run. HTH, Malte - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
Re: [wpkg-users] wpkgCreateReport Update
grubi wrote: Download and user manual can be found at: http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.htm The user manual says: "The prerequisite is that you have copied the wpkg.xml file of every client to a central directory, carrying the name of the computer it originates from. This can easily be achieved by appending something like the following command line at the end of the script file you are calling wpkg from." What is the best way to do this if you are using the wpkg-client service to call wpkg? I'm guessing that maybe it should be listed in the "Advanced" section under "Execute After". In that case, does anyone know which user/passwd combination will be used to execute the command? I'd like to be sure that user actually has write privileges in the share that will hold the xml files. Thanks, -- Mark Nienberg Sent from an invalid address. Please reply to the group. - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users
[wpkg-users] wpkgCreateReport Update
Hi. I have released a new version of wpkgCreateReport. What's new: Now creation of Excel and HTML reports. Filtering of report rows depending on package state. Customization via settings file or command line. User Manual. Download and user manual can be found at: http://www.gig-mbh.de/edv/software/wpkgtools/wpkg-create-report-english.htm Regards, grubi - wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ ___ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users