The reference manual I was working from didn't include this, I've downloaded 
the most recent ... thanks. 

On Mar 24, 2011, at 10:44 AM, Mark Burgess wrote:

> 
> See the required syntax in
> 
> http://www.cfengine.org/manuals/cf3-reference.html#module-in-commands
> 
> On 03/24/2011 06:35 PM, Michael Stevens wrote:
>> I need to create local homedirs for ldap users. I can't use the built-in 
>> ldap functions, as we don't permit anonymous binding, so I've written a 
>> module that queries the ldap server and returns a list of users and enables 
>> the class "ldap_users." It works fine, however, it returns a scaler and I 
>> need an slist. I've tried a few things based on what's done in 
>> "unit_module_exec" examples, but haven't been able to get anything to work. 
>> What's the trick?
>> 
>> 
>> bundle agent homedirs
>> {
>> commands:
>> 
>>    testhost:: 
>> 
>>        "/var/cfengine/inputs/modules/get_ldap_users"
>>             module     =>  "true";
>> 
>> reports:
>> 
>>    ldap_users::
>> 
>>        "Test: $(get_ldap_users.ldapusers)";
>> 
>> }
>> 
>> 
>> This returns;
>> 
>> R: Test: user1 user2 user3 user4 <etc>
>> 
>> 
>> 
>> _______________________________________________
>> Help-cfengine mailing list
>> Help-cfengine@cfengine.org
>> https://cfengine.org/mailman/listinfo/help-cfengine
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to