I have successfully gotten LDAP authentication to work in GSA 8.0.1. First I configured the LDAP server, then I added a couple of users who were configured with “LDAP Authentication Only”.
Now I would like to automate this, but I’m unclear how. The recommended way of scripting GVM in general seems to be python-gvm. There are plenty of examples floating around on how to add users, but there’s no CredentialType for LDAP authentication.
As for initially configuring LDAP, I have no clue. There’s definitely nothing in python-gvm. I’d gladly use gvm-cli as a fallback, but I can’t find any hints on how to properly compose an XML command to configure LDAP.
My escape hatch is simply replaying the POST requests the GSA UI makes as curl commands, but that seems like a cop-out.