Re: [wpkg-users] AD -> WPKG xml files

2009-11-12 Thread Pendl Stefan
>
> Finally, I've programmed it, using Windows cmd-line tools like DSQuery:
>
---snip
>
> Note that I add the "default" profile to all users, this one contains default 
> applications every PC has installed.
>
> This script I can share, however as I am no JS expert, it's done in xHarbour 
> for now (xBase compiler)
>

There should be some JS scripts available as patches through bugzilla and in 
the message archives.

I remember one, that creates the hosts file through ADS.

---
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] AD -> WPKG xml files

2009-11-11 Thread simon . begin
Finally, I've programmed it, using Windows cmd-line tools like DSQuery:

Here's how:
-
dsquery group OU=chrg,DC=CHRG,DC=(...) -name "G WPKG*" > ad-wpkg-1.txt
del ad-wpkg-2.txt

for /f "tokens=*" %%i in (ad-wpkg-1.txt) do dsget group %%i -members >> 
ad-wpkg-2.txt
--
This creates 2 files looking like this:
1st one has all group names starting with "G WPKG":
--
"CN=G WPKG Test2,OU=Computers,OU=CHRG,DC=..."
"CN=G WPKG tstpkg,OU=Computers,OU=CHRG,DC=..."
--

The Second file has members of respective groups:

"CN=pc97199,OU=Computers,OU=CHRG,DC=..."
"CN=IT-TEST7,OU=Computers,OU=CHRG,DC=..."
"CN=PC98045,OU=Computers,OU=CHRG Admin,DC=..."

"CN=IT-TEST7,OU=Computers,OU=CHRG,DC=..."
"CN=PC98045,OU=Computers,OU=CHRG Admin,DC=..."
---

Next a script to "sort" this and put it into a special section of 
hosts.xml 

 
 
   
  
  
   
   
  
   
   
  
  
   
  


Note that I add the "default" profile to all users, this one contains 
default applications every PC has installed.

This script I can share, however as I am no JS expert, it's done in 
xHarbour for now (xBase compiler)
-
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] AD -> WPKG xml files

2009-11-10 Thread simon . begin
Anyone has scripts for integrating AD groups into Hosts / Profiles.xml ?

I look into making a filter, ex: all groups starting by "G WPKG ..."

With that info the script could modify XML files like this 

(hosts.xml)











Thanks,
Simon-
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