[wpkg-users] Antw: Re: wpkg and ad groups problem

Adrian Valeanu Adrian.Valeanu at idiada.com
Wed Feb 19 11:29:20 CET 2014


Hi,
thank you for your answer. It helped me a lot.
Best regards.

>>> Paul McGrath <J.P.McGrath at leeds.ac.uk> 17.02.2014 21:56 >>>
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
-------------------------------------------------------------------------
Hotel discounts, best prices:
http://www.booking.com/index.html?aid=366545
-------------------------------------------------------------------------
wpkg-users mailing list archives >>
http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20140219/1eee775d/attachment-0003.html>


More information about the wpkg-users mailing list