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
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to