[wpkg-users] wpkg and ad groups problem

Paul McGrath J.P.McGrath at leeds.ac.uk
Mon Feb 17 21:56:49 CET 2014


Hi Adrian,
  with other multi options in attribute matching criteria I've been told before on this list to use pipe | and in brackets for some reason!
This is one I use:
   <variable name="excludelist" value="^(limm-pc4060|limm-pc3171)$"/> <!-- Jo|May -->

       <condition>
	    <check type="logical" condition="not">
            <check type="logical" condition="or">
               <check type="host" condition="hostname" value="%excludelist%"/>          </check>
        </check>
     </condition>


And another I use to NOT install Flash Player ActiveX in Windows 8, only Windows Vista and Windows 7:
    <install os="(6\.\d{1}\.\d{4}|6\.\d{0}\.\d{4})" cmd="msiexec /i "%INSTALLER%" /qn /norestart /L+* "%PROGRAMFILES%\installer.log" ALLUSERS=1" for="install" ><exit code='1722'/></install>

Paul
________________________________________
From: wpkg-users-bounces at lists.wpkg.org [wpkg-users-bounces at lists.wpkg.org] On Behalf Of Adrian Valeanu [Adrian.Valeanu at idiada.com]
Sent: 17 February 2014 16:14
To: wpkg-users at lists.wpkg.org
Subject: [wpkg-users] wpkg and ad groups problem

Hi,
I try to deploy some software packages based on AD group membership.
The computer is member in the groups s_wpkg_managed and s_gimp.
In the hosts.xml I have it configured like this:
 <host name=".+" groups="s_wpkg_managed" profile-id="standard" />
 <host name=".+" groups="s_wpkg_managed,s_gimp" profile-id="gimp" />
The logfile shows me that something goes wrong:
2014-02-17 16:41:47, DEBUG   : Host properties: hostname='wswin7024'|architecture='x64'|os='microsoft windows 7 professional, , sp1, 6.1.7601'|ipaddresses='192.168.10.29'|domain name='notforyou'|groups='Domänencomputer,s_wpkg_managed,s_tightvnc,s_gimp'|lcid='407'|lcidOS='407'
2014-02-17 16:41:47, DEBUG   : Comparing multi-valued attribute 'groups' with value 'Domänencomputer' using expression 's_wpkg_managed'.
2014-02-17 16:41:47, DEBUG   : Comparing multi-valued attribute 'groups' with value 's_wpkg_managed' using expression 's_wpkg_managed'.
2014-02-17 16:41:47, DEBUG   : Match for attribute 'groups' with value 's_wpkg_managed' found.
2014-02-17 16:41:47, DEBUG   : XML node with special host attribute match found: groups=s_wpkg_managed
2014-02-17 16:41:47, DEBUG   : Comparing multi-valued attribute 'groups' with value 'Domänencomputer' using expression 's_wpkg_managed,s_gimp'.
2014-02-17 16:41:47, DEBUG   : Comparing multi-valued attribute 'groups' with value 's_wpkg_managed' using expression 's_wpkg_managed,s_gimp'.
2014-02-17 16:41:47, DEBUG   : Comparing multi-valued attribute 'groups' with value 's_tightvnc' using expression 's_wpkg_managed,s_gimp'.
2014-02-17 16:41:47, DEBUG   : Comparing multi-valued attribute 'groups' with value 's_gimp' using expression 's_wpkg_managed,s_gimp'.
2014-02-17 16:41:47, DEBUG   : No value of 'groups' matched 's_wpkg_managed,s_gimp'. Skipping to next definition.
2014-02-17 16:41:47, DEBUG   : Could not match all attributes of XML node to current host. Skipping to next definition.
2014-02-17 16:41:47, DEBUG   : Profiles applying to the current host:|standard|
2014-02-17 16:41:47, DEBUG   : Getting profiles which apply to this node.
2014-02-17 16:41:47, DEBUG   : Initializing new log file: 'C:\Windows\TEMP\wpkg-wswin7024.log' in append mode.

As you see wpkg.js tries to match against 's_wpkg_managed,s_gimp' .
The groups example at http://wpkg.org/Extended_host_attribute_matching also separates the groups by comma.
What am I doing wrong here? Have I misunderstood the purpose of the groups option?
Bye



More information about the wpkg-users mailing list