For some scripts, Marinus searches the Distinguished Name values of certificates. This specifies the Organization values that Marinus will use when searching the Distinguished Name fields.
(mongo_connector, org)
| 285 | |
| 286 | |
| 287 | def add_tls_org(mongo_connector, org): |
| 288 | """ |
| 289 | For some scripts, Marinus searches the Distinguished Name values of certificates. |
| 290 | This specifies the Organization values that Marinus will use when searching the Distinguished Name fields. |
| 291 | """ |
| 292 | config_collection = mongo_connector.get_config_connection() |
| 293 | now = datetime.now() |
| 294 | |
| 295 | print("Adding TLS Org: " + org) |
| 296 | config_collection.update_many( |
| 297 | {}, {"$addToSet": {"SSL_Orgs": org}, "$set": {"updated": now}} |
| 298 | ) |
| 299 | |
| 300 | |
| 301 | def add_dns_admin(mongo_connector, dns_admin): |
no test coverage detected