It might be required to perform the setup of the AD-Connector e.g. using CLI or automated jobs. For this purpose, the following API Commands are available:
$ grep @simple_response -R /usr/lib/python3/dist-packages/univention/management/console/modules/adconnector/__init__.py -A1
@simple_response
def service(self, action):
--
@simple_response
def check_domain(self, username, password, ad_server_address, mode):
--
@simple_response(with_progress=True)
def admember_join(self, username, password, ad_server_address, progress):
--
@simple_response
def enable_ssl(self):
--
@simple_response
def password_sync_service(self, enable=True):
--
@simple_response
def check_dcmaster_srv_rec(self):
The individual endpoints can simply be called using the umc-command cli tool by passing the corresponding options, e.g.:
umc-command -U ${USER?} -P ${PASS?} adconnector/check_domain -o username=aduser -o password=adpass -o ad_server_address=ad.univention.intranet