Open MuesliMjamjam opened 6 years ago
I also noticed the same missing param for iLO4.
>>> ilo.mod_dir_config(dir_generic_ldap_enabled="True") Traceback (most recent call last): File "<input>", line 1, in <module> ilo.mod_dir_config(dir_generic_ldap_enabled="True") TypeError: mod_dir_config() got an unexpected keyword argument 'dir_generic_ldap_enabled'
function mod_dir_config should contain an (bool) argument "dir_generic_ldap_enabled" which, according to HP Ilo 5 1.20 User Guide, has to be set to true in order to use Ilo with openldap authentication. See https://support.hpe.com/hpsc/doc/public/display?docId=a00039434en_us on page 264. Point Number 4.
Try: myilo = hpilo.Ilo('myilohost',login='user',password='pass',ssl_context=my_ssl_context); myilo.get_dir_config(); {'dir_kerberos_kdc_port': 88, 'dir_enable_grp_acct': True, 'dir_kerberos_enabled': False, 'dir_authentication_enabled': True, 'dir_user_context_10': '', 'dir_user_context_11': '', 'dir_user_context_12': '', 'dir_user_context_13': '', 'dir_user_context_14': '', 'dir_user_context_15': '', 'dir_server_port': 636, 'dir_kerberos_kdc_address': '', 'dir_local_user_acct': True, 'dir_object_dn': '', 'dir_grpacct1_sid': '', 'dir_user_context_2': '', 'dir_user_context_3': '', 'dir_user_context_1': 'ou=myusergroup,dc=myserv,dc=com', 'dir_user_context_6': '', 'dir_user_context_7': '', 'dir_user_context_4': '', 'dir_user_context_5': '', 'dir_grpacct1_name': 'cn=CommonNameGroup,ou=OUnit,dc=myserv,dc=com', 'dir_user_context_8': '', 'dir_user_context_9': '', 'dir_server_address': '', 'dir_grpacct1_priv': '1,2,3,4', 'dir_generic_ldap_enabled': True, 'dir_kerberos_realm': ''}
but
myilo.mod_dir_config(dir_generic_ldap_enabled=True) Traceback (most recent call last): File "", line 1, in
TypeError: mod_dir_config() got an unexpected keyword argument 'dir_generic_ldap_enabled'
The respective argument is missing in function declaration. With this, constallations where Ilo shall be used with authentication via openldap will not work. At least it did not in my configuration.
i suggest to slightly change method mod_dir_config like this:
In file hpilo.py:
...
...
EOF
So just add argument "dir_generic_ldap_enabled=None" to function declaration.