mirror of
https://github.com/altlinux/admc.git
synced 2025-03-25 10:50:13 +03:00
add new AD functions to AdConnection
This commit is contained in:
parent
3692fc57ff
commit
5da5663e1d
adldap
@ -101,10 +101,22 @@ char** AdConnection::get_attribute(const char *dn, const char *attribute) {
|
||||
return ad_get_attribute(ldap_connection, dn, attribute);
|
||||
}
|
||||
|
||||
int AdConnection::rename(const char *dn, const char *new_name) {
|
||||
return ad_mod_rename(ldap_connection, dn, new_name);
|
||||
}
|
||||
|
||||
int AdConnection::rename_user(const char *dn, const char *new_username) {
|
||||
return ad_rename_user(ldap_connection, dn, new_username);
|
||||
}
|
||||
|
||||
int AdConnection::rename_group(const char *dn, const char *new_name) {
|
||||
return ad_rename_group(ldap_connection, dn, new_name);
|
||||
}
|
||||
|
||||
int AdConnection::move(const char *current_dn, const char *new_container) {
|
||||
return ad_move(ldap_connection, current_dn, new_container);
|
||||
}
|
||||
|
||||
int AdConnection::move_user(const char *current_dn, const char *new_container) {
|
||||
return ad_move_user(ldap_connection, current_dn, new_container);
|
||||
}
|
||||
|
@ -51,7 +51,10 @@ public:
|
||||
int mod_replace_binary(const char *dn, const char *attribute, const char *data, int data_length);
|
||||
int mod_delete(const char *dn, const char *attribute, const char *value);
|
||||
char **get_attribute(const char *dn, const char *attribute);
|
||||
int rename(const char *dn, const char *new_name);
|
||||
int rename_user(const char *dn, const char *new_username);
|
||||
int rename_group(const char *dn, const char *new_name);
|
||||
int move(const char *current_dn, const char *new_container);
|
||||
int move_user(const char *current_dn, const char *new_container);
|
||||
int group_create(const char *group_name, const char *dn);
|
||||
int group_add_user(const char *group_dn, const char *user_dn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user