Blame library/adenroll.h

Packit Service 6d40f9
/*
Packit Service 6d40f9
 * adcli
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * Copyright (C) 2012 Red Hat Inc.
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * This program is free software; you can redistribute it and/or modify
Packit Service 6d40f9
 * it under the terms of the GNU Lesser General Public License as
Packit Service 6d40f9
 * published by the Free Software Foundation; either version 2.1 of
Packit Service 6d40f9
 * the License, or (at your option) any later version.
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * This program is distributed in the hope that it will be useful, but
Packit Service 6d40f9
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 6d40f9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 6d40f9
 * Lesser General Public License for more details.
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * You should have received a copy of the GNU Lesser General Public
Packit Service 6d40f9
 * License along with this program; if not, write to the Free Software
Packit Service 6d40f9
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
Packit Service 6d40f9
 * MA 02110-1301 USA
Packit Service 6d40f9
 *
Packit Service 6d40f9
 * Author: Stef Walter <stefw@gnome.org>
Packit Service 6d40f9
 */
Packit Service 6d40f9
Packit Service 6d40f9
#ifndef ADENROLL_H_
Packit Service 6d40f9
#define ADENROLL_H_
Packit Service 6d40f9
Packit Service 6d40f9
#include "adconn.h"
Packit Service 6d40f9
Packit Service 6d40f9
typedef enum {
Packit Service 6d40f9
	ADCLI_ENROLL_NO_KEYTAB = 1 << 1,
Packit Service 6d40f9
	ADCLI_ENROLL_ALLOW_OVERWRITE = 1 << 2,
Packit Service 6d40f9
	ADCLI_ENROLL_PASSWORD_VALID = 1 << 3,
Packit Service 37369a
	ADCLI_ENROLL_ADD_SAMBA_DATA = 1 << 3,
Packit Service 6d40f9
} adcli_enroll_flags;
Packit Service 6d40f9
Packit Service 6d40f9
typedef struct _adcli_enroll adcli_enroll;
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_enroll_prepare                 (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         adcli_enroll_flags flags);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_enroll_load                    (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_enroll_join                    (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         adcli_enroll_flags join_flags);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_enroll_update                  (adcli_enroll *enroll,
Packit Service 6d40f9
		                                         adcli_enroll_flags flags);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_enroll_delete                  (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         adcli_enroll_flags delete_flags);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_result       adcli_enroll_password                (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         adcli_enroll_flags password_flags);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_enroll *     adcli_enroll_new                     (adcli_conn *conn);
Packit Service 6d40f9
Packit Service 6d40f9
adcli_enroll *     adcli_enroll_ref                     (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_unref                   (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_host_fqdn           (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_host_fqdn           (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_computer_name       (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_computer_name       (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_computer_password   (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_computer_password   (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *host_password);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_reset_computer_password (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_domain_ou           (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_domain_ou           (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_computer_dn         (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_computer_dn         (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service 6d40f9
const char **      adcli_enroll_get_service_names       (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_service_names       (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char **value);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_add_service_name        (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service 6d40f9
const char **      adcli_enroll_get_service_principals  (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_service_principals  (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char **value);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_user_principal      (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_user_principal      (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_auto_user_principal     (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
unsigned int       adcli_enroll_get_computer_password_lifetime (adcli_enroll *enroll);
Packit Service 6d40f9
void               adcli_enroll_set_computer_password_lifetime (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         unsigned int lifetime);
Packit Service 6d40f9
Packit Service 6d40f9
krb5_kvno          adcli_enroll_get_kvno                (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_kvno                (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         krb5_kvno value);
Packit Service 6d40f9
Packit Service 6d40f9
krb5_keytab        adcli_enroll_get_keytab              (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_keytab_name         (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_keytab_name         (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service 6d40f9
krb5_enctype *     adcli_enroll_get_keytab_enctypes     (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_keytab_enctypes     (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         krb5_enctype *enctypes);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_os_name             (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_os_name             (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_os_version          (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_os_version          (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service 6d40f9
const char *       adcli_enroll_get_os_service_pack     (adcli_enroll *enroll);
Packit Service 6d40f9
Packit Service 6d40f9
void               adcli_enroll_set_os_service_pack     (adcli_enroll *enroll,
Packit Service 6d40f9
                                                         const char *value);
Packit Service 6d40f9
Packit Service a61006
void               adcli_enroll_set_samba_data_tool     (adcli_enroll *enroll,
Packit Service a61006
                                                         const char *value);
Packit Service a61006
Packit Service a61006
const char *       adcli_enroll_get_samba_data_tool     (adcli_enroll *enroll);
Packit Service a61006
Packit Service 6d40f9
#endif /* ADENROLL_H_ */